/* ==========================================================================
   EloDev — styles
   ========================================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-ext.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JBMono";
  src: url("../fonts/mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f3ff;
  --muted: #a3a1c2;
  --faint: #6d6b8c;
  --indigo: #6366f1;
  --violet: #a855f7;
  --pink: #fb7185;
  --sun: #fde68a;
  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #fb7185 100%);
  --grad-text: linear-gradient(100deg, #a5a0ff 0%, #e879f9 50%, #fda4af 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; }

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Ambient background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55;
}
.aurora::before {
  width: 720px; height: 720px; left: -180px; top: -260px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.75), transparent 65%);
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 640px; height: 640px; right: -200px; top: 120px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.5), transparent 65%);
  animation: drift 26s var(--ease) infinite alternate-reverse;
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 42%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 58% 86%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 92%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 46% 30%, rgba(255,255,255,.3), transparent 60%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(80px, 60px, 0) scale(1.12); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 550;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta a.btn { display: inline-flex; padding: 0 18px; color: #fff; border-radius: 999px; }
.nav-links .nav-cta a.btn:hover { background: var(--grad); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: rgba(9, 9, 18, 0.97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 650 15.5px/1 var(--font); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(168, 85, 247, 0.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 110px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.eyebrow .dot {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.14);
}
.eyebrow .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -0.045em; line-height: 1.02; font-weight: 780;
}
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border); max-width: 620px;
}
.hero-meta div { font-size: 14px; color: var(--faint); line-height: 1.4; }
.hero-meta strong { display: block; font-size: 20px; color: var(--text); letter-spacing: -0.02em; margin-bottom: 2px; }

/* Hero visual */
.hero-visual { position: relative; height: 560px; }
.orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.1); transform: translate(-50%, -50%);
}
.orbit-1 { width: 440px; height: 440px; animation: spin 60s linear infinite; }
.orbit-2 { width: 300px; height: 300px; border-style: solid; border-color: rgba(255,255,255,.06); animation: spin 40s linear infinite reverse; }
.orbit-1::after, .orbit-2::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 18px var(--sun);
}
.orbit-2::after { background: var(--pink); box-shadow: 0 0 18px var(--pink); top: auto; bottom: -5px; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.phone {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 510px;
  transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a2a40, #121220);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.15);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(-6deg) translateY(-14px); }
}
.phone-screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(99,102,241,.55), transparent 60%),
    radial-gradient(100% 60% at 80% 100%, rgba(217,70,239,.45), transparent 60%),
    #0b0b1c;
  display: flex; flex-direction: column; align-items: center; padding: 46px 18px 20px;
}
.phone-screen::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 20px; background: #000;
}
.phone-app-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); }
.phone-title { margin-top: 16px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.phone-sub { font-size: 12.5px; color: var(--muted); }
.peaks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 26px; width: 100%; }
.card-mini {
  aspect-ratio: 5 / 7; border-radius: 6px; background: #fff; color: #111;
  font: 700 12px/1 var(--font); display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6);
}
.card-mini.red { color: #e11d48; }
.card-mini.back { background: var(--grad); }
.phone-bar {
  margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.phone-bar b { color: var(--text); font-size: 15px; }

.float-card {
  position: absolute; z-index: 2;
  background: rgba(16, 16, 30, 0.78); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
}
.code-card { left: -36px; bottom: 70px; padding: 14px 18px 16px; white-space: nowrap; font: 500 12.5px/1.75 var(--mono); animation: float2 8s ease-in-out infinite; }
.code-card .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.code-card .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a55; }
.code-card .dots i:nth-child(1) { background: #fb7185; }
.code-card .dots i:nth-child(2) { background: #fde68a; }
.code-card .dots i:nth-child(3) { background: #4ade80; }
.tok-k { color: #c4b5fd; } .tok-f { color: #7dd3fc; } .tok-s { color: #fda4af; } .tok-c { color: #6d6b8c; }
.stat-card { right: -14px; top: 64px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; animation: float2 9s ease-in-out infinite reverse; }
.stat-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(74,222,128,.14); color: #4ade80; }
.stat-card .ic svg { width: 22px; height: 22px; }
.stat-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.stat-card b { font-size: 16px; letter-spacing: -0.01em; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero-visual { height: 470px; }
  .phone { width: 220px; height: 450px; }
  .orbit-1 { width: 340px; height: 340px; }
  .orbit-2 { width: 250px; height: 250px; }
  .code-card { left: 0; bottom: 20px; font-size: 10.5px; }
  .stat-card { right: 0; top: 20px; }
  .hero-meta { gap: 22px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 16px;
  font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em;
  color: #c4b5fd;
}
.section h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.04em; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Trust strip */
.strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.strip { padding: 22px 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; color: var(--faint); font-weight: 600; font-size: 15px; white-space: nowrap; }
.marquee-group span { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.marquee-group span:hover { color: var(--text); }
.marquee-group svg { width: 20px; height: 20px; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.16), transparent 45%);
}
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service .icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(217,70,239,.18));
  border: 1px solid rgba(168,85,247,.28); color: #ddd6fe;
}
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; margin: 0; }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }
@media (max-width: 1060px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Apps */
.app-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(99,102,241,.35), transparent 55%),
    radial-gradient(60% 90% at 90% 100%, rgba(217,70,239,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.app-copy { padding: 56px 52px; }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-head img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); }
.app-head h3 { font-size: 30px; letter-spacing: -0.03em; }
.app-head span { color: var(--muted); font-size: 15px; }
.app-copy > p { color: var(--muted); font-size: 17px; }
.features { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.features svg { flex: none; width: 20px; height: 20px; color: #a78bfa; margin-top: 1px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.22);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.45); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 10.5px; line-height: 1.1; color: #cfcfe0; letter-spacing: .02em; }
.store b { display: block; font-size: 17px; line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #c4b5fd; font-weight: 600; font-size: 15px; margin-left: 6px; }
.text-link:hover { color: #fff; }
.text-link svg { width: 16px; height: 16px; }

.app-art { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.app-art .big-icon {
  width: 220px; height: 220px; border-radius: 52px; transform: rotate(8deg);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
}
.fan { position: absolute; display: flex; bottom: -30px; left: 50%; transform: translateX(-50%); }
.fan .card-mini { width: 74px; font-size: 22px; border-radius: 10px; margin: 0 -14px; }
.fan .card-mini:nth-child(3) { transform: translateY(-2px); }

.next-apps {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 28px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: rgba(255,255,255,.02);
}
.next-apps p { margin: 0; color: var(--muted); }
.next-apps strong { color: var(--text); }

@media (max-width: 920px) {
  .app-feature { grid-template-columns: 1fr; }
  .app-art { min-height: 320px; order: -1; }
  .app-art .big-icon { width: 170px; height: 170px; border-radius: 40px; }
  .app-copy { padding: 36px 26px 40px; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  font: 600 13px/1 var(--mono); color: var(--faint); display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.step-num::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 5px rgba(168,85,247,.15);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-card {
  position: relative; border-radius: 30px; padding: 40px; overflow: hidden;
  background: linear-gradient(160deg, rgba(99,102,241,.2), rgba(217,70,239,.08) 60%, transparent), var(--bg-2);
  border: 1px solid var(--border-strong);
}
.about-card .mono-mark { width: 84px; height: 84px; margin-bottom: 26px; }
.about-card blockquote { margin: 0; font-size: 22px; line-height: 1.45; letter-spacing: -0.02em; font-weight: 600; }
.about-card cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 15px; }
.about-card cite b { color: var(--text); display: block; font-size: 16px; }
.values { display: grid; gap: 14px; margin-top: 30px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: #c4b5fd; }
.value .icon svg { width: 20px; height: 20px; }
.value h4 { font-size: 17px; margin: 0 0 3px; letter-spacing: -0.01em; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 920px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact-wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--bg-2);
}
.contact-info {
  padding: 52px 46px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, rgba(99,102,241,.35), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(251,113,133,.22), transparent 60%);
  border-right: 1px solid var(--border);
}
.contact-info h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; margin-bottom: 16px; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: border-color .2s, background .2s;
}
.contact-list a:hover { border-color: var(--border-strong); background: rgba(255,255,255,.08); }
.contact-list .icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #ddd6fe; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12.5px; color: var(--faint); line-height: 1.3; }
.contact-list span { font-weight: 600; font-size: 15.5px; word-break: break-word; }

.contact-form { padding: 52px 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #d6d4ee; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--font); color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a1c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field select option { background: #15152a; color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(168,85,247,.7); background: rgba(168,85,247,.06);
  box-shadow: 0 0 0 4px rgba(168,85,247,.16);
}
.field [aria-invalid="true"] { border-color: rgba(251,113,133,.8); box-shadow: 0 0 0 4px rgba(251,113,133,.14); }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.chips label {
  cursor: pointer; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); transition: all .2s;
}
.chips label:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chips input:checked + label { color: #fff; background: linear-gradient(135deg, rgba(99,102,241,.5), rgba(217,70,239,.4)); border-color: rgba(196,181,253,.6); }
.chips input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--faint); margin: 0; max-width: 360px; line-height: 1.5; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: #86efac; min-height: 1px; }
@media (max-width: 920px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--border); padding: 40px 26px; }
  .contact-form { padding: 36px 26px 40px; }
}
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  position: relative; text-align: center; padding: 80px 32px; border-radius: 32px; overflow: hidden;
  background: var(--grad);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.04em; color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; margin: 16px auto 32px; max-width: 520px; }
.btn-white { background: #fff; color: #1b1035; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.btn-white:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 56px 0 40px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: var(--faint); font-size: 14.5px; max-width: 300px; }
.footer-grid h4 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13.5px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Legal / sub pages ---------- */
.page-hero { padding: 64px 0 34px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.045em; margin-top: 10px; }
.page-hero p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.prose {
  max-width: 780px; padding: 44px 48px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border);
}
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #c9c7e2; font-size: 16px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 4px; }
.prose a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.prose address { font-style: normal; color: #c9c7e2; margin-bottom: 1em; }
.prose .muted { color: var(--faint); font-size: 14px; }
@media (max-width: 600px) { .prose { padding: 28px 22px; } }

/* Brand page */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.brand-tile { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.brand-tile .preview { height: 220px; display: grid; place-items: center; padding: 32px; }
.brand-tile .preview.light { background: #f7f7fb; }
.brand-tile .preview.dark { background: #0b0b19; }
.brand-tile .preview.grad { background: var(--grad); }
.brand-tile .preview img { max-height: 96px; width: auto; }
.brand-tile .preview img.mark { max-height: 120px; }
.brand-tile .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.brand-tile .meta b { font-size: 15px; }
.brand-tile .meta small { display: block; color: var(--faint); font-size: 13px; }
.brand-tile .meta .dl { display: flex; gap: 8px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.swatch { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.swatch div { height: 96px; }
.swatch p { margin: 0; padding: 12px 14px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.swatch p b { display: block; font-family: var(--font); color: var(--text); font-size: 14px; }
@media (max-width: 820px) { .brand-grid { grid-template-columns: 1fr; } .swatches { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Motion ----------
   Reveal uses the individual translate/scale properties so it never fights
   with hover/tilt transforms on the same element. JS adds .in (+ .seen, which
   stays) when an element scrolls into view and removes .reveal afterwards. */
.reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal[data-delay="1"] { --i: 1; }
.reveal[data-delay="2"] { --i: 2; }
.reveal[data-delay="3"] { --i: 3; }
.reveal[data-anim="scale"] { translate: 0 24px; scale: .94; }
.reveal[data-anim="left"] { translate: -48px 0; }
.reveal[data-anim="right"] { translate: 48px 0; }
.reveal[data-anim="blur"] { translate: 0 18px; filter: blur(10px); }
.reveal.in { opacity: 1; translate: 0 0; scale: 1; filter: none; }
.no-js .reveal { opacity: 1; translate: none; scale: none; filter: none; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(168, 85, 247, .7);
}

/* Shimmering gradient text */
.gradient-text {
  background-image: linear-gradient(100deg, #a5a0ff 0%, #e879f9 25%, #fda4af 50%, #e879f9 75%, #a5a0ff 100%);
  background-size: 200% auto;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

/* Kicker line grows in */
.kicker::before {
  content: ""; display: inline-block; vertical-align: middle; width: 26px; height: 1px; margin: -3px 12px 0 0;
  background: currentColor; transition: width .8s var(--ease) .25s, margin .8s var(--ease) .25s;
}
.js-anim .reveal:not(.in) .kicker::before { width: 0; margin-right: 0; }

/* Animated gradient border on cards */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.service::after, .step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 55%, #6366f1 70%, #e879f9 82%, #fb7185 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s; animation: spin-angle 4s linear infinite;
}
.service:hover::after, .step:hover::before { opacity: 1; }
@keyframes spin-angle { to { --angle: 360deg; } }

/* Tilt: transform is driven from JS (data-tilt) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.step { transition: transform .35s var(--ease), border-color .35s, background .35s; }
.step:hover { border-color: var(--border-strong); background: var(--surface-2); }
.about-card { transition: transform .4s var(--ease); }

/* Service icons: lift on hover, draw-in once seen */
.service .icon { transition: transform .45s var(--ease), box-shadow .45s; }
.service:hover .icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); box-shadow: 0 12px 26px -10px rgba(168,85,247,.7); }
.js-anim .service .icon svg * { stroke-dasharray: 1; }
.js-anim .service.seen .icon svg * { animation: draw 1.4s var(--ease) calc(var(--i, 0) * 110ms + .35s) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Tags pop in one after another */
.js-anim .service.seen li { animation: pop .55s var(--ease) both; }
.js-anim .service.seen li:nth-child(1) { animation-delay: calc(var(--i, 0) * 110ms + .55s); }
.js-anim .service.seen li:nth-child(2) { animation-delay: calc(var(--i, 0) * 110ms + .63s); }
.js-anim .service.seen li:nth-child(3) { animation-delay: calc(var(--i, 0) * 110ms + .71s); }
.js-anim .service.seen li:nth-child(4) { animation-delay: calc(var(--i, 0) * 110ms + .79s); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
.service li { transition: border-color .25s, color .25s; }
.service:hover li { border-color: rgba(196,181,253,.3); color: #ddd6fe; }

/* Process: gradient line sweeps across each card, dot pops */
.step::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--grad); transform-origin: 0 50%;
}
.js-anim .step.seen::after { animation: sweep 1.1s var(--ease) calc(var(--i, 0) * 160ms + .3s) both; }
.js-anim .step.seen .step-num::before { animation: dot-pop .7s var(--ease) calc(var(--i, 0) * 160ms + .2s) both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dot-pop {
  0% { transform: scale(0); box-shadow: 0 0 0 0 rgba(168,85,247,.5); }
  60% { transform: scale(1.35); box-shadow: 0 0 0 10px rgba(168,85,247,.0); }
  100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(168,85,247,.15); }
}

/* App feature: icon lands, cards fan out */
.fan .card-mini:nth-child(1) { --r: -24deg; --y: 20px; }
.fan .card-mini:nth-child(2) { --r: -12deg; --y: 4px; }
.fan .card-mini:nth-child(3) { --r: 0deg; --y: -2px; }
.fan .card-mini:nth-child(4) { --r: 12deg; --y: 4px; }
.fan .card-mini:nth-child(5) { --r: 24deg; --y: 20px; }
.fan .card-mini { transform: rotate(var(--r)) translateY(var(--y)); transition: transform .4s var(--ease); }
.app-feature:hover .fan .card-mini { transform: rotate(calc(var(--r) * 1.25)) translateY(calc(var(--y) - 10px)); }
.js-anim .app-feature.seen .fan .card-mini { animation: fan-out 1s var(--ease) both; }
.js-anim .app-feature.seen .fan .card-mini:nth-child(1) { animation-delay: .45s; }
.js-anim .app-feature.seen .fan .card-mini:nth-child(2) { animation-delay: .52s; }
.js-anim .app-feature.seen .fan .card-mini:nth-child(3) { animation-delay: .59s; }
.js-anim .app-feature.seen .fan .card-mini:nth-child(4) { animation-delay: .66s; }
.js-anim .app-feature.seen .fan .card-mini:nth-child(5) { animation-delay: .73s; }
@keyframes fan-out { from { opacity: 0; transform: translateY(120px) rotate(0); } to { opacity: 1; transform: rotate(var(--r)) translateY(var(--y)); } }
.app-art .big-icon { animation: bob 6s ease-in-out infinite; }
.js-anim .app-feature.seen .big-icon { animation: land 1.1s var(--ease) .2s both, bob 6s ease-in-out 1.3s infinite; }
@keyframes land { from { opacity: 0; scale: .7; rotate: -14deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes bob { 50% { translate: 0 -12px; } }
.app-head img { transition: transform .5s var(--ease); }
.app-feature:hover .app-head img { transform: rotate(-8deg) scale(1.06); }

/* Staggered lists inside revealed blocks */
.js-anim .seen .values .value,
.js-anim .seen .contact-list li,
.js-anim .seen .features li { animation: rise .7s var(--ease) both; }
.js-anim .seen .values .value:nth-child(1), .js-anim .seen .contact-list li:nth-child(1), .js-anim .seen .features li:nth-child(1) { animation-delay: .35s; }
.js-anim .seen .values .value:nth-child(2), .js-anim .seen .contact-list li:nth-child(2), .js-anim .seen .features li:nth-child(2) { animation-delay: .45s; }
.js-anim .seen .values .value:nth-child(3), .js-anim .seen .contact-list li:nth-child(3), .js-anim .seen .features li:nth-child(3) { animation-delay: .55s; }
.js-anim .seen .features li:nth-child(4) { animation-delay: .65s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.value .icon { transition: transform .4s var(--ease), background .3s, color .3s; }
.value:hover .icon { transform: scale(1.1) rotate(-6deg); background: rgba(168,85,247,.18); color: #fff; }

/* Hero: typing cursor + pointer parallax (translate set from JS) */
.typer { border-right: 2px solid #fda4af; padding-right: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.code-card, .stat-card, .phone-screen { transition: translate .6s var(--ease); }

/* Buttons: light sweep on primary */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  translate: -120% 0; transition: translate .8s var(--ease);
}
.btn-primary:hover::after { translate: 120% 0; }

/* Contact form: chips bounce when chosen */
.chips input:checked + label { animation: chip .45s var(--ease); }
@keyframes chip { 40% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; scale: none; filter: none; }
  .marquee-track { animation: none; }
}
