/*
  SyneMaze landing
  Theme: dark-locked on purpose (cinematic brand, logo lives on aubergine).
  Palette: aubergine off-black neutrals + one gold accent taken from the logo.
  Shape rule: buttons & chips = full pill, cards/media = 16px, inputs = 10px.
  Z-index scale: nav 20, mobile menu 19, skip link 30.
*/

:root {
  --bg: #0f0b13;
  --bg-2: #150f1b;
  --surface: #1b1422;
  --surface-2: #231a2c;
  --line: rgb(255 240 255 / 0.09);
  --line-strong: rgb(255 240 255 / 0.16);
  --text: #f1ecf4;
  --muted: #b3a8bd;
  --faint: #8a7f95;
  --accent: #eab93f;
  --accent-ink: #1d1406;
  --accent-soft: rgb(234 185 63 / 0.12);
  --plum: #3a1f47;

  --r-card: 16px;
  --r-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-lead { color: var(--muted); max-width: 58ch; margin-top: 18px; font-size: 1.0625rem; }

section { padding: clamp(72px, 10vw, 128px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #f3c85a; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgb(255 255 255 / 0.03); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn i { font-size: 1.1em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(15 11 19 / 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 0.9375rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); color: var(--text);
  width: 42px; height: 42px; border-radius: 999px; font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-menu {
  display: grid; gap: 4px; padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 0; color: var(--muted); font-size: 1.0625rem; }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Hero */
.hero {
  max-width: 1400px; margin: 0 auto;
  min-height: min(calc(100dvh - 68px), 920px);
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.1875rem; margin-top: 24px; max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__media {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 100px -40px rgb(58 31 71 / 0.9), inset 0 0 0 1px var(--line);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 55%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-strong);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero__media { aspect-ratio: 16 / 11; }
}

/* Film */
.film { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }
.film__frame {
  max-width: 1400px; margin: 48px auto 0; padding: 0 var(--gutter);
}
.film__frame video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card);
  background: #000; box-shadow: inset 0 0 0 1px var(--line);
}

/* Flow: horizontal scroll-snap track */
.flow { background: var(--bg-2); padding-bottom: clamp(56px, 8vw, 96px); }
.flow__track {
  list-style: none; margin: 48px 0 0; padding: 4px 0 20px;
  padding-inline: max(16px, calc(50vw - 580px));
  scroll-padding-inline: max(16px, calc(50vw - 580px));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  counter-reset: step;
}
.flow__step {
  scroll-snap-align: start;
  position: relative;
  padding: 28px 24px 26px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.flow__step::before {
  content: ""; position: absolute; top: -4px; left: 24px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.flow__step i { font-size: 26px; color: var(--accent); }
.flow__step h3 { margin-top: 18px; }
.flow__step p { color: var(--muted); margin-top: 8px; font-size: 0.9375rem; }

/* Platform bento */
.bento {
  margin-top: 56px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d f"
    "e e e f";
}
.bento > :nth-child(1) { grid-area: a; }
.bento > :nth-child(2) { grid-area: b; }
.bento > :nth-child(3) { grid-area: c; }
.bento > :nth-child(4) { grid-area: d; }
.bento > :nth-child(5) { grid-area: e; }
.bento > :nth-child(6) { grid-area: f; }

.tile {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.3s var(--ease);
}
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.tile > i, .tile__body > i { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 0.9375rem; }
.tile--tint { background: linear-gradient(160deg, var(--plum), var(--surface) 70%); }
.tile--accent { background: radial-gradient(120% 140% at 100% 0%, rgb(234 185 63 / 0.16), transparent 55%), var(--surface); }
.tile--accent:nth-child(5) { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 20px; }
.tile--accent:nth-child(5) p { flex-basis: 100%; max-width: 60ch; }
.tile__tag {
  align-self: flex-start;
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px;
}
.tile--image { padding: 0; justify-content: flex-end; min-height: 320px; }
.tile--image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile--image:hover img { transform: scale(1.04); }
.tile--image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(15 11 19 / 0.95) 12%, rgb(15 11 19 / 0.35) 55%, transparent);
}
.tile__body { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile__body p { color: #d4cadb; max-width: 44ch; }

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b c" "d f" "e f";
  }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .tile--image { min-height: 280px; }
}

/* SPP */
.spp { background: var(--bg-2); }
.spp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.spp__media { margin: 0; }
.spp__media img { border-radius: var(--r-card); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.spp__media figcaption { color: var(--faint); font-size: 0.875rem; margin-top: 14px; }

.compare { margin: 36px 0 0; display: grid; gap: 22px; }
.compare div { display: grid; gap: 6px; }
.compare dt { font-weight: 600; }
.compare dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.compare .old { color: var(--faint); text-decoration: line-through; text-decoration-color: rgb(179 168 189 / 0.5); }
.compare .new { color: var(--text); }
.compare .new::before { content: "→ "; color: var(--accent); }

.chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.875rem;
}
.chips i { color: var(--accent); font-size: 16px; }

@media (max-width: 900px) {
  .spp__grid { grid-template-columns: 1fr; }
  .spp__media img { aspect-ratio: 16 / 11; }
}

/* R&D */
.stats {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.stat__num { font-size: clamp(2.2rem, 3.8vw, 3.25rem); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.9375rem; max-width: 22ch; }
.trust {
  margin-top: 72px; padding: 32px;
  border-radius: var(--r-card); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.trust div { display: flex; gap: 14px; align-items: flex-start; }
.trust i { font-size: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trust p { color: var(--muted); font-size: 0.9375rem; }
.trust strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--bg-2); }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  padding: 28px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
}
.plan--featured {
  background: linear-gradient(170deg, var(--plum), var(--surface) 75%);
  box-shadow: inset 0 0 0 1px rgb(234 185 63 / 0.45);
}
.plan__price { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; margin-top: 18px; line-height: 1.1; }
.plan__price span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__for { color: var(--faint); font-size: 0.9375rem; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.9375rem; }
.plan li i { color: var(--accent); margin-top: 4px; }

@media (max-width: 1024px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* Demo */
.demo { position: relative; overflow: hidden; isolation: isolate; }
.demo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(15 11 19 / 0.96) 30%, rgb(15 11 19 / 0.78) 65%, rgb(15 11 19 / 0.6));
}
.demo__grid { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.form {
  padding: 32px; border-radius: var(--r-card);
  background: rgb(27 20 34 / 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgb(255 255 255 / 0.06);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: #ddd4e3; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-input); padding: 12px 14px;
  transition: border-color 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #f07a7a; }
.field__error { color: #f59a9a; font-size: 0.8125rem; }
.form__success { display: flex; gap: 10px; align-items: center; color: var(--text); background: var(--accent-soft); padding: 12px 14px; border-radius: var(--r-input); }
.form__success[hidden] { display: none; }
.form__success i { color: var(--accent); font-size: 20px; }

@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; }
  .demo::before { background: rgb(15 11 19 / 0.9); }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer__brand p { color: var(--faint); font-size: 0.875rem; margin-top: 12px; max-width: 40ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--muted); font-size: 0.9375rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; color: var(--faint); font-size: 0.8125rem; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }

/* Motion: reveal on enter + slow hero push-in. Only when the user allows motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__media img { animation: pushIn 18s var(--ease) both; }
  @keyframes pushIn { from { transform: scale(1.12); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
