/* ============================================================
   WYOM — ANPR / LPR Platform
   Light theme · 3D scroll · hover physics
   ============================================================ */

:root {
  --bg: #f7f8fd;
  --surface: #ffffff;
  --surface-2: #eef0fa;
  --ink: #0b1220;
  --ink-2: #3d4657;
  --ink-3: #6b7484;
  --line: #e3e7f2;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%);
  --ok: #059669;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .14);
  --shadow-lg: 0 30px 60px -20px rgba(79, 70, 229, .28);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: rgba(79, 70, 229, .18); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Cursor glow */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 20%), rgba(124, 58, 237, .07), transparent 60%);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .68rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform .35s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(99, 60, 237, .55);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(99, 60, 237, .65); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: .6rem .9rem; }
.btn-ghost:hover { color: var(--brand); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px rgba(99, 60, 237, .6);
  transition: transform .4s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.nav-links { display: flex; gap: .2rem; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .93rem;
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: rgba(79, 70, 229, .07); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.nav-cta .btn { font-size: .88rem; padding: .55rem 1.1rem; }
.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero { position: relative; padding: 160px 0 90px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 520px; height: 520px; background: #c7d2fe; top: -160px; right: -80px; animation: drift 14s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; background: #e9d5ff; bottom: -180px; left: -100px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  background: rgba(79, 70, 229, .07); border: 1px solid rgba(79, 70, 229, .15);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(5,150,105,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(5,150,105,0); } 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); } }

.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.13rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero-stats { display: flex; gap: 2.2rem; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.hero-stats dd { margin: 0; font-size: .82rem; color: var(--ink-3); }

/* Hero 3D plate card */
.hero-visual { perspective: 1200px; }
.tilt-scene { position: relative; transform-style: preserve-3d; }
.plate-card {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, #f2f4ff);
  border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-14deg) rotateX(8deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.plate-scanline {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.plate-scanline::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, .12), transparent);
  animation: scan 3.4s var(--ease-out) infinite;
}
@keyframes scan { 0% { top: -35%; } 60%, 100% { top: 105%; } }

.plate-frame {
  background: #fdfdff; border: 3px solid var(--ink); border-radius: 12px;
  padding: .9rem 1.2rem .75rem; text-align: center;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--ink);
}
.plate-top { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .28em; color: var(--ink-3); }
.plate-number {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: .08em; color: var(--ink);
}
.plate-bottom { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; color: var(--ink-3); }
.plate-country { color: var(--brand); font-weight: 700; }

.plate-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.1rem; }
.plate-meta div {
  background: var(--surface-2); border-radius: 12px; padding: .6rem .7rem;
  display: flex; flex-direction: column;
}
.plate-meta span { font-size: .68rem; color: var(--ink-3); }
.plate-meta b { font-family: var(--font-mono); font-size: .92rem; color: var(--ink); }
.plate-chip {
  position: absolute; top: -16px; right: -14px; transform: translateZ(50px);
  background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0;
  font-size: .78rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px;
  box-shadow: var(--shadow-md); animation: floaty 5s ease-in-out infinite reverse;
}
.plate-shadow {
  width: 70%; height: 26px; margin: 26px auto 0; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15,23,42,.22), transparent 70%);
  filter: blur(4px); animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.86); opacity: .6; } }

.scroll-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ink-3); border-radius: 14px; opacity: .55; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--brand); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Trusted ============ */
.trusted { padding: 2.2rem 0 3rem; }
.trusted-label { text-align: center; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.2rem; }
.trusted-logos {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem;
  margin: 0; padding: 0;
}
.trusted-logos li {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #9aa3b5;
  transition: color .3s, transform .3s var(--ease-spring); cursor: default;
}
.trusted-logos li:hover { color: var(--ink); transform: translateY(-3px); }

/* ============ Sections ============ */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #fff, var(--bg)); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-sub { color: var(--ink-2); font-size: 1.05rem; }

/* ============ Cards / features ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out), border-color .3s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(124,58,237,.08), transparent 45%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.35); }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.35rem; background: var(--surface-2); margin-bottom: 1.1rem;
  transition: transform .45s var(--ease-spring), background .3s;
}
.card:hover .card-icon { transform: scale(1.12) rotate(-6deg); background: linear-gradient(135deg, #eef2ff, #f5e8ff); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ============ Steps ============ */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 0; padding: 0; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.7rem; position: relative;
  transition: transform .45s var(--ease-spring), box-shadow .45s;
}
.step:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ============ Playground ============ */
.playground {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-md);
}
.pg-feed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #101426; display: flex; flex-direction: column; }
.pg-feed-header {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; color: #9fb0d8;
  padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); background: #171c33;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; animation: pulse 1.6s infinite; }
.pg-scene { position: relative; flex: 1; min-height: 300px; overflow: hidden;
  background: linear-gradient(180deg, #1a2140 0%, #232c52 55%, #2b3560 100%); }
.pg-road { position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, #313a63, #262e50); }
.pg-road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 4px;
  background: repeating-linear-gradient(90deg, #e8ecff 0 42px, transparent 42px 84px);
  opacity: .5; animation: roadMove 1.1s linear infinite;
}
@keyframes roadMove { to { background-position: -84px 0; } }
.pg-car { position: absolute; left: 50%; bottom: 14%; translate: -50% 0; width: 300px; }
.pg-car-body {
  height: 86px; border-radius: 22px 22px 10px 10px;
  background: linear-gradient(180deg, #cfd6ea, #8d99c0);
  box-shadow: 0 22px 30px -12px rgba(0,0,0,.55);
}
.pg-car-body::before {
  content: ""; position: absolute; top: -34px; left: 42px; right: 42px; height: 46px;
  border-radius: 16px 16px 4px 4px; background: linear-gradient(180deg, #aeb8d8, #7c89b3);
}
.pg-plate {
  position: absolute; left: 50%; bottom: -12px; translate: -50% 0;
  background: #f8fafc; border: 2px solid #0b1220; border-radius: 6px;
  padding: .18rem .8rem; font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .1em; color: #0b1220; white-space: nowrap;
}
.pg-scan {
  position: absolute; left: -8%; right: -8%; top: -40px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 24px 4px rgba(34, 211, 238, .5);
  opacity: 0;
}
.pg-scan.run { animation: scanRun 1.5s var(--ease-out) 1; }
@keyframes scanRun { 0% { top: -40px; opacity: 1; } 85% { opacity: 1; } 100% { top: 60px; opacity: 0; } }
.pg-bbox { position: absolute; border: 2px solid #22d3ee; border-radius: 8px; opacity: 0;
  box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 0 30px rgba(34,211,238,.25); transition: opacity .3s, all .5s var(--ease-out); }
.pg-bbox i { position: absolute; width: 12px; height: 12px; border: 3px solid #22d3ee; }
.pg-bbox i:nth-child(1) { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.pg-bbox i:nth-child(2) { top: -3px; right: -3px; border-left: 0; border-bottom: 0; }
.pg-bbox i:nth-child(3) { bottom: -3px; left: -3px; border-right: 0; border-top: 0; }
.pg-bbox i:nth-child(4) { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.pg-bbox.show { opacity: 1; }

.pg-controls { display: flex; flex-direction: column; padding: .4rem .2rem; }
.pg-controls label { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.pg-input-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.pg-input-row input {
  flex: 1; min-width: 130px; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .08em; padding: .7rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.pg-input-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.pg-hint { font-size: .8rem; color: var(--ink-3); margin: .6rem 0 1.2rem; }

.pg-result {
  background: var(--surface-2); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .65rem; min-height: 210px;
}
.pg-result-row { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.pg-result-row > span { width: 88px; color: var(--ink-3); flex-shrink: 0; }
.pg-result-row b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.conf-bar { flex: 1; height: 8px; border-radius: 99px; background: #dde2f0; overflow: hidden; }
.conf-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-3), var(--ok)); transition: width 1s var(--ease-out); }
.pg-result.busy { opacity: .45; pointer-events: none; }
.pg-result.done { animation: popIn .5s var(--ease-spring); }
@keyframes popIn { from { transform: scale(.97); opacity: .4; } }

/* ============ API section ============ */
.api-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.4rem; align-items: start; }
.code-window {
  position: relative; background: #0d1122; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform .45s var(--ease-spring), box-shadow .45s;
}
.code-window:hover { transform: translateY(-6px); }
.code-tabs { display: flex; gap: 2px; background: #151a30; padding: .55rem .7rem 0; }
.code-tab {
  font-family: var(--font-mono); font-size: .8rem; color: #8b96bd; background: transparent;
  border: 0; border-radius: 9px 9px 0 0; padding: .5rem .95rem; cursor: pointer;
  transition: background .25s, color .25s;
}
.code-tab:hover { color: #dbe3ff; }
.code-tab.active { background: #0d1122; color: #fff; }
.code-pane { display: none; margin: 0; padding: 1.4rem 1.5rem 2.2rem; overflow-x: auto; }
.code-pane.active { display: block; animation: fadeSlide .35s var(--ease-out); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(6px); } }
.code-pane code, .api-response pre code { font-family: var(--font-mono); font-size: .85rem; line-height: 1.75; color: #dbe3ff; white-space: pre; }
.c-str { color: #86efac; } .c-kw { color: #c4b5fd; } .c-com { color: #64748b; } .c-key { color: #93c5fd; }
.copy-btn {
  position: absolute; top: 3.6rem; right: 1rem;
  font-family: var(--font-mono); font-size: .72rem; color: #aeb8dc;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: .35rem .8rem; cursor: pointer; transition: all .25s;
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.copy-btn.copied { color: #6ee7b7; border-color: rgba(110,231,183,.4); }

.api-response { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.api-response-head { font-family: var(--font-mono); font-size: .75rem; color: var(--ok); background: #ecfdf5; border-bottom: 1px solid var(--line); padding: .65rem 1.2rem; }
.api-response pre { margin: 0; padding: 1.3rem 1.4rem; background: #0d1122; overflow-x: auto; }
.api-points { list-style: none; margin: 0; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.api-points li { font-size: .92rem; color: var(--ink-2); padding-left: 1.3rem; position: relative; }
.api-points li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.api-points b { color: var(--ink); }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; position: relative;
  transition: transform .45s var(--ease-spring), box-shadow .45s, border-color .3s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.35); }
.price-card.featured {
  border: 2px solid transparent; background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-10px); }
.badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(99,60,237,.7);
}
.price-card h3 { font-size: 1.1rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.price { margin: .2rem 0 1.3rem; }
.price-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ink); }
.price-card ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.price-card li { font-size: .93rem; color: var(--ink-2); padding-left: 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.about-copy p { color: var(--ink-2); }
.about-values { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.about-values li { padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); font-size: .95rem; transition: transform .35s var(--ease-spring), border-color .3s; }
.about-values li:hover { transform: translateX(8px); border-color: rgba(124,58,237,.4); }
.about-values b { color: var(--ink); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; text-align: center;
  transition: transform .45s var(--ease-spring), box-shadow .45s;
}
.stat-tile:hover { transform: translateY(-7px) rotateX(4deg); box-shadow: var(--shadow-md); }
.stat-tile b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-tile span { font-size: .82rem; color: var(--ink-3); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq-item:hover { border-color: rgba(124,58,237,.35); }
.faq-item[open] { border-color: rgba(124,58,237,.45); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1rem; color: var(--ink);
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  background: var(--brand); border-radius: 2px; transition: transform .35s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2.4px; }
.faq-icon::after { width: 2.4px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-2); font-size: .95rem; animation: fadeSlide .35s var(--ease-out); }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.contact-copy > p { color: var(--ink-2); }
.contact-info { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-info li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; transition: transform .35s var(--ease-spring), border-color .3s; }
.contact-info li:hover { transform: translateX(8px); border-color: rgba(124,58,237,.4); }
.contact-info b { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.contact-info a, .contact-info span { color: var(--ink); font-weight: 600; }
.contact-info a:hover { color: var(--brand); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .88rem; }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: .75rem .95rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.form-status { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ok); min-height: 1.2em; }

/* ============ Footer ============ */
.site-footer { background: #0d1122; color: #aab3d0; padding: 4.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 1rem 0 0; font-size: .92rem; max-width: 22rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: #aab3d0; font-size: .93rem; padding: .28rem 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.6rem; font-size: .85rem; color: #7b85a8; }
.footer-bottom p { margin: 0; }
.footer-tag .grad-text { font-weight: 600; }

/* ============ Reveal / 3D scroll animations ============
   Animations only apply when JS is active — content is fully
   visible to crawlers & no-JS users (SSR-equivalent). */
html.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }

.tilt-section { perspective: 1400px; }
.tilt-inner { transform-style: preserve-3d; transition: transform .1s linear; will-change: transform; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .card-grid, .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .playground, .api-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-10px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: .5rem; margin-left: auto;
  }
  .nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 5%; gap: .2rem; box-shadow: var(--shadow-md);
  }
  .card-grid, .steps, .pricing-grid, .about-stats { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem 2rem; }
  .section { padding: 4.5rem 0; }
  .pg-input-row .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}
