/* Wayn website. Brand tokens: branding/colors/tokens.json. Fonts: Alexandria (display), Readex Pro (text). */
:root {
  --indigo: #3B2BEE;
  --indigo-400: #6A5BFF;
  --indigo-200: #BAB3FF;
  --indigo-50: #EEEDFF;
  --gold: #FFB21A;
  --night: #0E0C2B;
  --night-2: #16143A;
  --ink: #0E0C2B;
  --muted-on-light: #4E4B6B;
  --muted-on-dark: #C9C7DB;
  --line-dark: rgba(255, 255, 255, 0.12);
  --surface: #F7F7FB;
  --white: #FFFFFF;

  --font-display: "Alexandria", "Readex Pro", system-ui, sans-serif;
  --font-text: "Readex Pro", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --radius-phone: 44px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-scene: 0;
  --z-content: 1;
  --z-header: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: var(--z-header); padding-block: 18px; transition: background-color 300ms var(--ease-out), backdrop-filter 300ms; }
.site-header.scrolled { background: rgba(14, 12, 43, 0.9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 38px; width: auto; }
.lang { font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.lang:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- hero: 3D city, scroll drives the camera ---------- */
.hero { position: relative; height: 240svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
#city { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-scene); display: block; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-scene); }
.has-3d .hero-map { display: none; }
.hero-map .road { stroke: #2C2B44; fill: none; stroke-linecap: round; }
.hero-map .river { stroke: #0B2A4A; fill: none; stroke-linecap: round; }
.hero-map .route { stroke: var(--indigo-400); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-map .dest { fill: var(--gold); stroke: var(--night); }
.hero-stage::after {
  content: ""; position: absolute; inset: 0; z-index: var(--z-scene); pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 12, 43, 0.7) 0%, rgba(14, 12, 43, 0) 28%, rgba(14, 12, 43, 0) 62%, var(--night) 100%),
    linear-gradient(to var(--fade-to), rgba(14, 12, 43, 0.85) 0%, rgba(14, 12, 43, 0.35) 45%, rgba(14, 12, 43, 0) 70%);
}
[dir="rtl"] .hero-stage::after { --fade-to: left; }
[dir="ltr"] .hero-stage::after { --fade-to: right; }

.hero-copy { position: absolute; inset: 0; z-index: var(--z-content); display: grid; align-items: center; pointer-events: none; }
.hero-copy .wrap > * { pointer-events: auto; }
.hero-a { max-width: 640px; }
.hero h1 { font-size: clamp(3.25rem, 10vw, 6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.02; }
.hero h1 .q { color: var(--gold); display: inline-block; }
.hero .lede { margin-top: 22px; max-width: 34ch; font-size: clamp(1.125rem, 2vw, 1.35rem); color: var(--muted-on-dark); line-height: 1.75; }
.hero .lede strong { color: var(--white); font-weight: 600; }
.hero-b { position: absolute; inset-inline: 0; bottom: clamp(48px, 10vh, 96px); text-align: center; opacity: 0; }
.hero-b p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4.6vw, 3.25rem); line-height: 1.2; text-wrap: balance; }
.hero-b .gold { color: var(--gold); }
.scroll-cue { position: absolute; inset-inline: 0; bottom: 28px; display: grid; justify-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted-on-dark); z-index: var(--z-content); }
.scroll-cue i { width: 2px; height: 36px; border-radius: 2px; background: linear-gradient(var(--white), transparent); animation: cue 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding-block: 10px; padding-inline: 18px 22px; background: var(--white); color: var(--ink); text-decoration: none; border-radius: 16px; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.2; }
.store small { font-size: 0.78rem; color: var(--muted-on-light); }
.store b { font-size: 1.05rem; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.store-note { margin-top: 14px; font-size: 0.95rem; color: var(--muted-on-dark); }

/* ---------- phone ---------- */
.phone { position: relative; width: min(100%, 300px); aspect-ratio: 460 / 1000; border-radius: var(--radius-phone); padding: 10px; background: #050416; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 50px 90px -24px rgba(0, 0, 0, 0.65); transform-style: preserve-3d; }
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: calc(var(--radius-phone) - 10px); }
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-phone) - 10px); pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%); }
.persp { perspective: 1400px; display: grid; justify-items: center; }

/* ---------- voice: pinned, words arrive with the scroll ---------- */
.voice { background: var(--indigo); overflow: hidden; }
.voice-pin { min-height: 100svh; display: grid; align-items: center; padding-block: clamp(96px, 12vh, 140px); }
.voice-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.voice .phone { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22), 0 50px 90px -24px rgba(10, 6, 80, 0.75); }
.prompt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.1; letter-spacing: -0.01em; }
.prompt .w { display: inline-block; }
.prompt .dist { color: var(--gold); }
.voice h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 600; margin-top: 40px; }
.voice p.body { margin-top: 12px; max-width: 46ch; color: var(--indigo-50); font-size: 1.125rem; }
.wave { display: flex; align-items: center; gap: 5px; height: 40px; margin-bottom: 28px; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--white); height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: 0.15s; } .wave i:nth-child(3n) { animation-delay: 0.3s; } .wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }

/* ---------- traffic: pinned story, three screens ---------- */
.traffic { background: var(--surface); color: var(--ink); }
.traffic-pin { min-height: 100svh; display: grid; align-items: center; padding-block: clamp(96px, 12vh, 140px); }
.traffic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.traffic h2, .reports h2, .closing h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 20px; transition: background-color 400ms var(--ease-out), opacity 400ms var(--ease-out); }
.js .steps li { opacity: 0.45; }
.js .steps li.on { opacity: 1; background: var(--white); box-shadow: 0 18px 40px -22px rgba(14, 12, 43, 0.35); }
.steps .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); background: var(--indigo-50); color: var(--indigo); transition: background-color 400ms, color 400ms; }
.steps li.on .num { background: var(--indigo); color: var(--white); }
.steps b { display: block; font-weight: 600; font-size: 1.125rem; }
.steps span { color: var(--muted-on-light); }
.screens { position: relative; }
.screens .phone { box-shadow: 0 0 0 1.5px rgba(14, 12, 43, 0.12), 0 50px 80px -28px rgba(14, 12, 43, 0.5); }
.js .screens .phone img + img { opacity: 0; }
.chip { position: absolute; inset-inline-end: -8%; top: 16%; background: var(--white); color: var(--ink); border-radius: 16px; padding: 12px 18px; box-shadow: 0 20px 44px -14px rgba(14, 12, 43, 0.4); font-weight: 600; display: flex; gap: 10px; align-items: center; white-space: nowrap; transform: translateZ(60px); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: #1FAE6B; flex: none; }
.js .chip { opacity: 0; }

/* ---------- reports ---------- */
.reports { padding-block: clamp(96px, 13vw, 160px); background: var(--night-2); overflow: hidden; }
.reports-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.reports .copy > p { margin-top: 20px; max-width: 46ch; color: var(--muted-on-dark); font-size: 1.125rem; }
.kinds { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; max-width: 520px; perspective: 900px; }
.kinds li { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 0.98rem; color: var(--muted-on-dark); }
.kinds .disc { width: 68px; height: 68px; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 18px 30px -10px var(--c); }
.kinds .disc::before { content: ""; width: 32px; height: 32px; background: var(--white); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* ---------- trust ---------- */
.trust { padding-block: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.trust h3 { font-size: 1.375rem; font-weight: 600; }
.trust h3::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 18px; background: var(--gold); }
.trust p { margin-top: 10px; color: var(--muted-on-dark); }

/* ---------- closing ---------- */
.closing { padding-block: clamp(96px, 13vw, 170px); text-align: center; position: relative; overflow: hidden; }
.closing .symbol-wrap { perspective: 800px; display: grid; justify-items: center; margin-bottom: 36px; }
.closing .symbol { width: 112px; height: auto; filter: drop-shadow(0 24px 40px rgba(59, 43, 238, 0.45)); }
.closing p { margin: 18px auto 0; max-width: 40ch; color: var(--muted-on-dark); font-size: 1.125rem; }
.closing .stores { justify-content: center; }
.closing .glow { position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(closest-side, rgba(59, 43, 238, 0.45), rgba(59, 43, 238, 0)); pointer-events: none; z-index: -1; }

.site-footer { border-top: 1px solid var(--line-dark); padding-block: 32px 40px; font-size: 0.95rem; color: var(--muted-on-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { height: 200svh; }
  .hero-copy { align-items: start; padding-top: 112px; }
  .hero-stage::after { background: linear-gradient(to bottom, rgba(14, 12, 43, 0.92) 0%, rgba(14, 12, 43, 0.55) 45%, rgba(14, 12, 43, 0.1) 70%, var(--night) 100%); }
  .voice-grid, .traffic-grid, .reports-grid { grid-template-columns: 1fr; }
  .voice-grid .persp { order: 2; }
  .phone { width: min(70%, 260px); }
  .chip { inset-inline-end: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .kinds { gap: 22px 8px; }
  .kinds .disc { width: 58px; height: 58px; }
  .steps li { padding: 12px 14px; }
}
@media (max-width: 420px) {
  .store { flex: 1 1 100%; justify-content: center; }
  .logo img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-b { position: relative; opacity: 1; padding-bottom: 48px; }
  .js .steps li { opacity: 1; }
  .js .chip { opacity: 1; }
}
