:root {
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-rgb: 34, 197, 94;
  --bg: #07090c;
  --text: #eef2f6;
  --muted: #9aa4b2;
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.grad {
  background: linear-gradient(120deg, var(--accent), #6ee7b7 60%, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== BACKGROUND ===== */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #0d1420, #05070a 70%); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 85%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.orb-1 { width: 620px; height: 620px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(34,197,94,0.9), transparent 65%); }
.orb-2 { width: 560px; height: 560px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(56,189,248,0.75), transparent 65%); }
.orb-3 { width: 640px; height: 640px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(16,185,129,0.8), transparent 65%); }
.orb-4 { width: 480px; height: 480px; right: 20%; bottom: 5%; background: radial-gradient(circle, rgba(139,92,246,0.6), transparent 65%); }
.bg-noise { position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* content sits above background */
.nav, .hero, .section, .versions, .glass-show, .download, .footer { position: relative; z-index: 2; }

/* ===== liquid glass (pure CSS — clean Apple look, no WebGL ghosting) ===== */
.liquidGL {
  position: relative;
  background: linear-gradient(158deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(175%) brightness(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(175%) brightness(1.08);
  box-shadow:
    0 20px 55px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 2px 3px 8px rgba(120,200,255,0.10),
    inset -2px -3px 8px rgba(255,150,220,0.08);
}
/* bright top specular edge */
.liquidGL::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(150% 80% at 50% -18%, rgba(255,255,255,0.28), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.16), transparent 16%);
  -webkit-mask: linear-gradient(#000, transparent 58%);
  mask: linear-gradient(#000, transparent 58%);
}
/* keep panel content above the specular sheen */
.liquidGL > * { position: relative; z-index: 1; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1080px, calc(100% - 36px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; z-index: 50; border-radius: 18px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #04120a; font-weight: 700; padding: 9px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 20px rgba(var(--accent-rgb),0.4); }
.nav-cta:hover { filter: brightness(1.08); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 40px; padding: 150px 8vw 80px; max-width: 1400px; margin: 0 auto;
}
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2.5px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.hero-title { font-size: clamp(48px, 8vw, 108px); font-weight: 900; line-height: 0.95; letter-spacing: -3px; }
.hero-title .line { display: block; }
.hero-sub { margin: 26px 0 34px; font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 520px; line-height: 1.55; }
.hero-sub em { color: var(--text); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 14px; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04120a; box-shadow: 0 10px 30px rgba(var(--accent-rgb),0.45); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn.big { padding: 18px 34px; font-size: 17px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats b { display: block; font-size: 34px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.hc-row { display: flex; gap: 7px; }
.hc-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hc-title { font-weight: 800; font-size: 20px; margin-top: 6px; }
.hc-pill { align-self: flex-start; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,0.08); font-size: 13px; font-weight: 600; }
.hc-play { margin-top: 4px; padding: 15px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04120a; font-weight: 800; font-size: 16px; cursor: pointer; }
.hc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: auto; }
.hc-grid span { height: 54px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }

/* ===== SECTIONS ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 8vw; }
.sec-title { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 50px; }
.sec-title.center { text-align: center; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 30px; }
.feat-ic { width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: rgba(var(--accent-rgb),0.16); color: var(--accent); margin-bottom: 18px; }
.feat h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ===== VERSIONS ===== */
.versions { padding: 90px 0; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-size: 28px; font-weight: 800; padding: 14px 26px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--muted); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== GLASS SHOWCASE ===== */
.glass-show { height: 220vh; }
.gs-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 8vw; }
.gs-text h2 { font-size: clamp(34px, 5vw, 66px); font-weight: 900; letter-spacing: -2px; margin: 18px 0; line-height: 1; }
.gs-text p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 420px; }
.gs-stage { position: relative; height: 460px; }
.gs-glass { position: absolute; }
.gs-glass[data-gs="1"] { width: 300px; height: 220px; left: 30px; top: 40px; border-radius: 28px; }
.gs-glass.pill { width: 340px; height: 96px; right: 10px; top: 210px; border-radius: 48px; }
.gs-glass.circle { width: 150px; height: 150px; left: 10px; bottom: 10px; border-radius: 50%; }

/* ===== DOWNLOAD ===== */
.download { display: grid; place-items: center; padding: 120px 8vw; }
.dl-card { text-align: center; padding: 60px 50px; max-width: 620px; width: 100%; }
.dl-card h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -1.5px; }
.dl-card p { color: var(--muted); margin: 14px 0 32px; }
.dl-hint { display: block; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ===== FOOTER ===== */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 40px 8vw; border-top: 1px solid rgba(255,255,255,0.06); color: var(--muted); font-size: 14px; max-width: 1400px; margin: 0 auto; }
.footer span:first-child { font-weight: 800; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-card { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .gs-sticky { grid-template-columns: 1fr; }
  .gs-stage { display: none; }
  .nav-links { display: none; }
}

/* ===== initial anim state (GSAP reveals) ===== */
[data-anim] { opacity: 0; }
