/* MKAIZ — dark studio, keep Syne/Manrope + text hierarchy */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #0b0e11;
  --bg-soft: #10141a;
  --surface: #141a20;
  --ink: #f4f6f8;
  --muted: rgba(244, 246, 248, 0.64);
  --line: rgba(244, 246, 248, 0.12);
  --line-strong: rgba(244, 246, 248, 0.22);
  --accent: #2fd4a8;
  --accent-soft: rgba(47, 212, 168, 0.14);
  --max: 1120px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --topbar-h: 64px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }

.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #07090b; transition: opacity .55s, visibility .55s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4rem); letter-spacing: -0.06em;
}
.loader__bar { width: 96px; height: 2px; margin: 1rem auto 0; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--accent); animation: slide 1s ease-in-out infinite; }

/* Full-width strip — not floating pill */
.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  padding: 0 max(1.2rem, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .25s, border-color .25s;
}
.topbar.is-solid {
  background: rgba(11, 14, 17, 0.92);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.04em; white-space: nowrap;
}
.topbar__links {
  display: flex; gap: 1.35rem; color: var(--muted); font-size: .9rem;
}
.topbar__links a:hover { color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: .45rem; }
.nav-toggle { display: none; border: 0; background: transparent; width: 40px; height: 40px; padding: 0; }
.nav-toggle span { display: block; height: 2px; margin: 7px 9px; background: currentColor; }

.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 17, 0.96);
}
.nav__inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav .brand span { font-weight: 500; opacity: .55; margin-left: .35rem; font-size: .85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .85rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #06120e; }
.btn--primary:hover { background: #5ee4bc; }
.btn--ghost {
  border-color: rgba(255,255,255,.28);
  background: transparent;
  color: #fff;
}
.btn--ghost:hover { border-color: rgba(255,255,255,.5); }
.btn--dark { background: var(--ink); color: #0b0e11; }
.btn--dark:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn--xl { min-height: 54px; padding: 1rem 1.6rem; }
.btn--block { width: 100%; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .7s cubic-bezier(.16,1,.3,1),
    transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0a1014;
}
.hero__stage { position: absolute; inset: 0; }
.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    url('../assets/hero-poster.jpg') center / cover no-repeat,
    #0a1014;
  filter: brightness(.55) saturate(.85);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
  filter: brightness(.5) saturate(.85);
}
.hero.has-video .hero__video { opacity: 1; }
.hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,11,.5) 0%, rgba(7,9,11,.28) 42%, rgba(7,9,11,.78) 100%),
    linear-gradient(90deg, rgba(7,9,11,.55) 0%, transparent 58%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 4rem;
  max-width: min(1120px, 100%);
}
.hero__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  width: 100%;
  margin: 0 0 1.35rem;
}
.hero__left {
  display: grid;
  gap: .55rem;
  min-width: 0;
}
.hero__agency {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(.78rem, 1.4vw, .95rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise .85s ease .5s forwards;
}
.hero__slogan {
  margin: 0 0 .35rem;
  display: inline-flex;
  align-items: baseline;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: rgba(244, 246, 248, 0.9);
  text-align: right;
  max-width: 12ch;
  opacity: 0;
  animation: rise .85s ease .2s forwards;
}
.hero__slogan i {
  font-style: normal;
  font-size: 1.15em;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 16vw, 8.5rem);
  letter-spacing: -0.07em;
  line-height: .84;
  display: flex;
}
.hero__brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(45%) rotate(5deg);
  animation: letterIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__brand span:nth-child(1) { animation-delay: .12s; }
.hero__brand span:nth-child(2) { animation-delay: .2s; }
.hero__brand span:nth-child(3) { animation-delay: .28s; }
.hero__brand span:nth-child(4) { animation-delay: .36s; }
.hero__brand span:nth-child(5) { animation-delay: .44s; }
.hero h1 {
  margin: 0 0 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  line-height: 1.18;
  opacity: 0;
  animation: rise .9s ease .55s forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  animation: rise .9s ease .8s forwards;
}
.hero__hint {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  bottom: 1.5rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  opacity: 0;
  animation: rise .9s ease 1s forwards;
}

/* Dark video chapters */
.scene {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--bg);
}
.scene__media { position: absolute; inset: 0; z-index: 0; }
.scene__fallback {
  position: absolute; inset: 0;
  background:
    url('../assets/work-poster.jpg') center / cover no-repeat,
    #0a1014;
  filter: brightness(.38) saturate(.9);
}
.scene--b .scene__fallback,
.scene--d .scene__fallback {
  background-image: url('../assets/hero-poster.jpg');
}
.scene__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s ease;
  filter: brightness(.38) saturate(1) contrast(1.05);
}
.scene.has-video .scene__video { opacity: 1; }
.scene__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,11,.58) 0%, rgba(7,9,11,.42) 40%, rgba(7,9,11,.9) 100%),
    linear-gradient(105deg, rgba(7,9,11,.5) 0%, transparent 58%);
}

.scene__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 6.5rem 0 5.5rem;
}
.scene__head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}
.scene__head h2 {
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: #fff;
}
.scene__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* Rows instead of glass cards */
.offer-grid,
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.offer, .doc-card {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: .2rem;
  align-items: start;
  text-align: left;
  width: 100%;
  padding: 1.15rem .2rem 1.15rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  transition: padding-left .25s ease, background .25s ease;
}
.doc-card { text-decoration: none; }
.offer:hover, .doc-card:hover {
  padding-left: .55rem;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.offer b, .doc-card b {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .04em;
  padding-top: .2rem;
}
.offer strong, .doc-card strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.offer em, .doc-card em {
  font-style: normal;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.flow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.flow-grid li {
  display: grid;
  align-content: start;
  gap: .55rem;
  text-align: left;
  padding: 1.4rem 1.2rem 1.4rem 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.flow-grid li:last-child { border-right: 0; }
.flow-grid b {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .04em;
}
.flow-grid strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.flow-grid em {
  font-style: normal;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.final.scene { min-height: auto; }
.final__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0;
}
.final__inner h2 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.045em;
  max-width: 14ch;
  color: #fff;
}
.final__inner p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}
.final__inner a { color: var(--accent); font-weight: 700; }

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  background: var(--bg);
}
.footer__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.footer strong { color: var(--ink); font-family: var(--font-display); }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal.is-open { display: grid; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(5,8,10,.74);
}
.modal__dialog {
  position: relative; z-index: 1; width: min(520px, 100%);
  max-height: min(90svh, 860px); overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #12171c;
  padding: 1.35rem 1.35rem 1.2rem;
  transform: translateY(12px); opacity: 0;
  transition: transform .3s ease, opacity .25s;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: .65rem; right: .75rem; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius); background: rgba(255,255,255,.06); color: var(--ink); font-size: 1.35rem;
}
.modal__head { margin-bottom: 1rem; padding-right: 2rem; }
.modal__head h2 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.45rem; }
.modal__head p { margin: 0; color: var(--muted); }
body.modal-open { overflow: hidden; }

.lead-steps { display: flex; gap: .4rem; margin: 0 0 1rem; }
.lead-steps i {
  flex: 1; height: 2px; border-radius: 0; background: rgba(255,255,255,.12);
}
.lead-steps i.is-on { background: var(--accent); }
.lead-steps i.is-done { background: rgba(47,212,168,.45); }
.lead-pane { display: none; }
.lead-pane.is-on { display: block; animation: rise .35s ease; }

.need-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: 1rem;
}
.need-card { cursor: pointer; }
.need-card:last-child { grid-column: 1 / -1; }
.need-card input { position: absolute; opacity: 0; pointer-events: none; }
.need-card span {
  min-height: 54px; padding: .8rem .9rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(0,0,0,.22); font-weight: 600; font-size: .9rem;
  display: grid; place-items: center; text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.need-card:hover span,
.need-card input:focus-visible + span { border-color: rgba(47,212,168,.45); }
.need-card input:checked + span {
  border-color: rgba(47,212,168,.65);
  background: rgba(47,212,168,.14);
  color: #fff;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.field { display: grid; gap: .3rem; margin-bottom: .85rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.78); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; background: rgba(0,0,0,.25);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: .2rem 0 1rem; }
.check a { color: var(--accent); text-decoration: underline; }
.form__note { margin: .85rem 0 0; font-size: .82rem; color: var(--muted); }
.form__error { margin: 0 0 .8rem; color: #ff8f8f; font-size: .86rem; }
.lead-nav { display: flex; gap: .65rem; }
.lead-nav .btn--primary { flex: 1; }
.lead-direct {
  display: inline-block; margin-top: .9rem; color: var(--accent); font-weight: 700; font-size: .9rem;
}

.cookie {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 50; max-width: 420px;
  background: #151a20; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; display: none; gap: .8rem; align-items: center;
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; font-size: .84rem; color: var(--muted); }
.cookie a { color: var(--accent); }

.legal-page { padding: 5rem 0 4rem; background: var(--bg); min-height: 70vh; }
.legal-page .wrap { max-width: 760px; }
.legal-page .meta { color: var(--muted); margin-bottom: 2rem; }
.legal-page h1, .legal-page h2 { font-family: var(--font-display); }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.legal-page p, .legal-page li { color: rgba(244,246,248,.78); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes letterIn {
  to { opacity: 1; transform: none; }
}
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(280%); } }

@media (max-width: 920px) {
  .topbar {
    height: auto; min-height: 60px;
    padding: .65rem 1rem;
    flex-wrap: wrap;
  }
  .topbar.is-solid,
  .topbar.is-open {
    background: rgba(11, 14, 17, 0.96);
    border-bottom-color: var(--line);
  }
  .topbar__links { display: none; }
  .nav-toggle { display: block; }
  .topbar.is-open .topbar__links {
    display: flex; flex-basis: 100%;
    flex-direction: column; gap: .75rem;
    padding: .4rem .3rem .55rem;
    border-top: 1px solid var(--line);
    margin-top: .2rem;
  }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid li:nth-child(2) { border-right: 0; }
  .flow-grid li:nth-child(1),
  .flow-grid li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .final__inner { flex-direction: column; align-items: flex-start; }
  .hero__hint { display: none; }
}

@media (max-width: 560px) {
  .need-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar__actions .btn--ghost { display: none; }
  .lead-nav { flex-direction: column; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }
  .flow-grid li:last-child { border-bottom: 0; }
  .scene__inner { width: min(1120px, calc(100% - 1.6rem)); padding: 5rem 0 4.2rem; }
  .hero__content { padding: 5.2rem 0 3rem; }
  .hero__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero__slogan {
    text-align: left;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__agency, .hero__slogan, .hero__brand span, .hero h1, .hero__actions, .hero__hint,
  .loader__bar i, .lead-pane.is-on {
    animation: none !important;
  }
  .hero__agency, .hero__slogan, .hero__brand span, .hero h1, .hero__actions, .hero__hint {
    opacity: 1; transform: none;
  }
  .reveal {
    opacity: 1; transform: none; transition: none;
  }
}
