:root {
  color-scheme: dark;
  --bg: #060812;
  --surface: rgba(13, 20, 36, 0.86);
  --surface-muted: rgba(20, 31, 54, 0.92);
  --ink: #f3f7ff;
  --muted: #a8b5c7;
  --line: rgba(164, 206, 255, 0.16);
  --line-strong: rgba(71, 196, 255, 0.38);
  --accent: #08bdf2;
  --accent-2: #6ee7a8;
  --accent-soft: rgba(8, 189, 242, 0.1);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
  --font-body: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(8, 189, 242, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(110, 231, 168, 0.1), transparent 28rem),
    linear-gradient(90deg, rgba(139, 205, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 205, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #050611 0%, #0b1020 48%, #060812 100%);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  font-family: var(--font-body);
}

.js-enabled body {
  height: 100%;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
}

section {
  scroll-margin-top: 110px;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 40;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(18px);
}

.page-deck {
  position: relative;
  width: 100%;
}

.js-enabled .page-deck {
  height: 100svh;
  overflow: hidden;
}

.js-enabled .deck-section {
  position: absolute;
  top: 92px;
  bottom: 48px;
  left: 50%;
  width: min(calc(100% - 40px), var(--max));
  margin: 0;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(-50%, 28px, 0) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    visibility 520ms ease;
}

.js-enabled .deck-section::-webkit-scrollbar {
  display: none;
}

.js-enabled .deck-section.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand img {
  width: 178px;
  height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 760;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 820;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: end;
  min-height: calc(100svh - 78px);
  padding: clamp(72px, 9vw, 132px) 0 64px;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "// ";
  color: var(--accent-2);
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 76px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: #c9d6e8;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-actions {
  display: grid;
  align-items: stretch;
  max-width: 360px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #031421;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(8, 189, 242, 0.18);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 26, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-logo {
  width: min(100%, 340px);
  margin: 0 auto 42px;
  padding: 20px 26px;
}

.panel-logo img {
  width: 100%;
  height: auto;
}

.hero-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.hero-panel ul {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

.proof-strip {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

.proof-strip span,
.tech-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #dbe8f9;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 760;
}

.proof-strip span:nth-child(3n + 1),
.tech-grid span:nth-child(3n + 1) {
  border-color: rgba(8, 189, 242, 0.32);
}

.proof-strip span:nth-child(3n + 2),
.tech-grid span:nth-child(3n + 2) {
  border-color: rgba(110, 231, 168, 0.3);
}

.proof-strip span:nth-child(3n + 3),
.tech-grid span:nth-child(3n + 3) {
  border-color: rgba(255, 191, 105, 0.28);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(86px, 10vw, 136px) 0 0;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-intro h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-intro p:not(.section-kicker),
.contact-panel p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-item span,
.process-step span {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-item h3,
.project-card h3,
.process-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.service-item p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.project-card,
.process-step,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.project-card:hover,
.process-step:hover {
  border-color: var(--line-strong);
  background: rgba(18, 29, 52, 0.9);
}

.project-card p,
.process-step p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.section-technologies {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.tech-grid span:nth-child(4n + 1) {
  background: var(--accent-soft);
  border-color: rgba(8, 189, 242, 0.32);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 460px;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 1px solid rgba(164, 206, 255, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(8, 189, 242, 0.12), rgba(110, 231, 168, 0.08)),
    rgba(2, 6, 14, 0.64);
  overflow: hidden;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-shot.is-missing img {
  display: none;
}

.project-shot.is-missing::after {
  content: "Screenshot projektu";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  margin-top: 24px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 850;
  text-decoration: none;
}

.text-link::after {
  content: "->";
  margin-left: 9px;
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30px;
  height: 1px;
  background: var(--line);
}

.process-step {
  position: relative;
  padding: 24px;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 28px;
  width: 13px;
  height: 13px;
  border: 3px solid #060812;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.process-step span {
  display: block;
  margin-bottom: 42px;
  padding-left: 28px;
}

.process-step h3 {
  font-size: clamp(20px, 1.75vw, 27px);
}

.process-step p {
  font-size: 16px;
  line-height: 1.58;
}

.contact-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(90px, 10vw, 140px) 0 42px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
  padding: clamp(30px, 6vw, 68px);
  background:
    linear-gradient(135deg, rgba(8, 189, 242, 0.16), rgba(110, 231, 168, 0.12)),
    rgba(10, 18, 33, 0.92);
}

.contact-panel h2 {
  max-width: 900px;
}

.contact-panel p:not(.section-kicker) {
  max-width: 620px;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 18, 0.44);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row-wide {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-row textarea {
  min-height: 148px;
  resize: vertical;
}

.form-row select {
  appearance: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(8, 189, 242, 0.1);
}

.inquiry-form .button {
  grid-column: 1 / -1;
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 760;
}

.js-enabled .hero.deck-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  min-height: auto;
  padding: clamp(18px, 4vh, 42px) 0 0;
}

.js-enabled .hero.deck-section .proof-strip {
  grid-column: 1 / -1;
  width: 100%;
  margin: clamp(14px, 3vh, 28px) 0 0;
  padding: clamp(14px, 2vh, 22px) 0 0;
}

.js-enabled .section.deck-section {
  padding: clamp(22px, 5vh, 54px) 0;
}

.js-enabled .section-services.deck-section,
.js-enabled .section-technologies.deck-section,
.js-enabled .section-projects.deck-section,
.js-enabled .section-process.deck-section {
  display: grid;
  align-content: center;
}

.js-enabled .section-technologies.deck-section {
  align-items: center;
}

.js-enabled .deck-section .section-intro {
  margin-bottom: clamp(20px, 3.2vh, 34px);
}

.js-enabled .deck-section .service-item {
  padding: clamp(18px, 2.7vh, 28px) 0;
}

.js-enabled .deck-section .project-card {
  min-height: clamp(390px, 56vh, 500px);
}

.js-enabled .deck-section .process-step {
  padding: clamp(18px, 1.8vw, 24px);
}

.js-enabled .contact-section.deck-section {
  display: grid;
  align-items: center;
  padding: clamp(18px, 4vh, 42px) 0;
}

.js-enabled .contact-section.deck-section .contact-panel {
  padding: clamp(22px, 4vw, 48px);
}

.js-enabled .contact-section.deck-section .contact-actions {
  margin-top: 24px;
}

.js-enabled .contact-section.deck-section .inquiry-form {
  gap: 12px;
  padding: clamp(16px, 2.5vw, 24px);
}

.js-enabled .contact-section.deck-section .form-row textarea {
  min-height: 116px;
}

.contact-billing {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-billing h3 {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-billing dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-billing dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-billing dt {
  margin: 0;
  color: rgba(168, 181, 199, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-billing dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    min-height: 82px;
    padding: 12px 14px;
  }

  .js-enabled .deck-section {
    top: 82px;
    bottom: 46px;
  }

  .site-nav {
    position: fixed;
    top: 90px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 8, 18, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .section-technologies,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .brand img {
    width: 150px;
    height: 48px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .section,
  .contact-section,
  .proof-strip {
    width: min(calc(100% - 28px), var(--max));
  }

  .js-enabled .deck-section {
    width: min(calc(100% - 28px), var(--max));
    bottom: 74px;
  }

  .contact-billing dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .project-list,
  .process-list,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .project-card,
  .process-step {
    border-radius: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
