
/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:         #080909;
  --surface:    #0f1012;
  --surface-2:  #161719;
  --border:     #1e2025;
  --border-hi:  #2a2d35;
  --text:       #e8e9ec;
  --text-2:     #7c8090;
  --text-muted: #3a3d47;
  --accent:     #7c6ff7;
  --green:      #3dd68c;
  --amber:      #f5a623;
  --red:        #f25c5c;
  --p1: #ff6b47; --p2: #ff9447; --p3: #e8ff47;
  --p4: #3dd68c; --p5: #47a8ff; --p6: #b347ff;
  --font-d: 'Syne', sans-serif;
  --font-m: 'Geist Mono', monospace;
  --font-b: 'DM Sans', sans-serif;
  --max-w: 1120px;
  --gap: clamp(20px, 5vw, 64px);
}

/* ── Base ────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }

/* Noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022; pointer-events: none; z-index: 1000;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px var(--gap);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(8,9,9,0.88);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-m); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px;
}
.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-m); font-size: 12px; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-m); font-size: 12px; font-weight: 600;
  padding: 8px 18px; background: var(--accent); color: #fff;
  border-radius: 6px; letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}
.nav-cta:hover { opacity: 0.9; }
.nav-cta:active { transform: scale(0.97); }
.nav-mob { display: none; flex-direction: column; gap: 4px; padding: 4px; }
.nav-mob span { display: block; width: 20px; height: 1.5px; background: var(--text-2); border-radius: 2px; transition: all 0.2s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 140px var(--gap) 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 20%; left: 50%;
  transform: translate(-50%, -50%); width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,111,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 11px; color: var(--text-2);
  border: 1px solid var(--border-hi); background: var(--surface);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 28px;
  letter-spacing: 0.06em; opacity: 0; animation: fadeUp 0.6s 0.1s ease forwards;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

h1.hl {
  font-family: var(--font-d); font-size: clamp(44px, 7vw, 88px);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 24px; opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}
h1.hl em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #a08cff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-2); max-width: 540px;
  line-height: 1.7; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.7s 0.3s ease forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.btn-dl {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--accent); color: #fff;
  font-family: var(--font-m); font-size: 13px; font-weight: 600;
  border-radius: 8px; letter-spacing: 0.04em; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-dl::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,111,247,0.4); }
.btn-dl:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border: 1px solid var(--border-hi); color: var(--text-2);
  font-family: var(--font-m); font-size: 13px; border-radius: 8px;
  background: var(--surface); letter-spacing: 0.04em; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.plat-tabs {
  margin-top: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.5s ease forwards;
}
.plat-tab {
  font-family: var(--font-m); font-size: 11px; color: var(--text-muted);
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px;
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.plat-tab:hover { border-color: var(--border-hi); color: var(--text-2); }
.plat-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(124,111,247,0.08); }

/* ── App preview ─────────────────────────────────────────────── */
.hero-preview {
  margin-top: 80px; position: relative;
  opacity: 0; animation: fadeUp 0.9s 0.6s ease forwards;
}
.preview-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 200px;
  background: radial-gradient(ellipse, rgba(124,111,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.preview-frame {
  border: 1px solid var(--border-hi); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}
.prev-chrome {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.ch-dots { display: flex; gap: 6px; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; }
.prev-body { display: flex; height: 460px; }
.prev-rail {
  width: 56px; border-right: 1px solid var(--border); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 8px;
}
.rail-d { width: 32px; height: 32px; border-radius: 8px; background: var(--border); opacity: 0.5; }
.rail-d.on { background: rgba(124,111,247,0.18); border: 1px solid var(--accent); opacity: 1; }
.prev-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.prev-toolbar {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; background: var(--surface);
}
.t-pill { height: 28px; border-radius: 6px; background: var(--border); }
.prev-steps { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.s-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  opacity: 0; animation: sIn 0.4s ease forwards;
}
.s-row:nth-child(1){animation-delay:1.2s}
.s-row:nth-child(2){animation-delay:1.4s}
.s-row:nth-child(3){animation-delay:1.6s;border-color:rgba(61,214,140,0.4)}
.s-row:nth-child(4){animation-delay:1.8s;animation-name:sInFaint}
@keyframes sIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
@keyframes sInFaint { from{opacity:0} to{opacity:0.32} }
.s-badge {
  font-family: var(--font-m); font-size: 9px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.s-line { flex: 1; height: 8px; border-radius: 4px; background: var(--border-hi); }
.prev-right {
  width: 220px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; background: var(--surface);
}
.pr-header {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--font-m); font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.pr-log { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.log-l {
  display: flex; gap: 6px; font-family: var(--font-m); font-size: 10px;
  opacity: 0; animation: fi 0.3s ease forwards;
}
.log-l:nth-child(1){animation-delay:1.5s}
.log-l:nth-child(2){animation-delay:1.9s}
.log-l:nth-child(3){animation-delay:2.3s}
.log-l:nth-child(4){animation-delay:2.6s;color:var(--green)}
@keyframes fi { from{opacity:0} to{opacity:1} }

/* ── Stats ───────────────────────────────────────────────────── */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-row { display: flex; }
.stat { flex: 1; padding: 28px 32px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--font-d); font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.stat-l { font-family: var(--font-m); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 4px; }

/* ── Sections ────────────────────────────────────────────────── */
.sec { padding: clamp(60px, 8vw, 120px) var(--gap); }
.sec-label {
  font-family: var(--font-m); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--text-muted); }
h2.sec-title {
  font-family: var(--font-d); font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: #fff; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 16px;
}
.sec-sub { font-size: 16px; color: var(--text-2); max-width: 480px; line-height: 1.7; margin-bottom: 56px; }

/* ── How it works — step list ────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.how-card {
  background: var(--surface); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s; position: relative; overflow: hidden;
}
.how-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.how-card.p1::before{background:var(--p1)} .how-card.p2::before{background:var(--p2)}
.how-card.p3::before{background:var(--p3)} .how-card.p4::before{background:var(--p4)}
.how-card.p5::before{background:var(--p5)} .how-card.p6::before{background:var(--p6)}
.how-card:hover { background: var(--surface-2); }
.how-num { font-family: var(--font-m); font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; }
.how-icon-row { display: flex; align-items: center; gap: 10px; }
.how-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-name { font-family: var(--font-d); font-size: 17px; font-weight: 700; color: #fff; }
.how-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Highlighted badge on card */
.how-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px; width: fit-content;
}

/* ── Features grid ───────────────────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.feat-card {
  background: var(--surface); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px; transition: background 0.2s;
}
.feat-card:hover { background: var(--surface-2); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feat-title { font-family: var(--font-d); font-size: 17px; font-weight: 700; color: #fff; }
.feat-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── AI block ────────────────────────────────────────────────── */
.ai-block {
  background: linear-gradient(135deg, rgba(179,71,255,0.06) 0%, transparent 60%);
  border: 1px solid rgba(179,71,255,0.15); border-radius: 16px;
  padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden;
}
.ai-block::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(179,71,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 11px; color: #b347ff;
  border: 1px solid rgba(179,71,255,0.3); background: rgba(179,71,255,0.08);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; letter-spacing: 0.06em;
}
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; max-width: 720px; margin-top: 36px; }
.ai-col-label { font-family: var(--font-m); font-size: 11px; color: #b347ff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.ai-col-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── Download ────────────────────────────────────────────────── */
.dl-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dl-inner { display: grid; grid-template-columns: 1fr 1fr; }
.dl-text { padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px); border-right: 1px solid var(--border); }
.dl-plats { padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.plat-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border: 1px solid var(--border-hi); border-radius: 10px; background: var(--surface-2);
  transition: all 0.2s; text-align: left;
}
.plat-btn:hover { border-color: var(--accent); background: rgba(124,111,247,0.06); transform: translateX(2px); }
.plat-btn:active { transform: translateX(0); }
.plat-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plat-info { flex: 1; }
.plat-name { font-family: var(--font-m); font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.plat-detail { font-family: var(--font-m); font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }
.plat-arrow { color: var(--text-muted); transition: color 0.2s; }
.plat-btn:hover .plat-arrow { color: var(--accent); }
.priv-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-m); font-size: 11px; color: var(--text-muted); }
.priv-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── Copyright / Legal ───────────────────────────────────────── */
.legal-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 24px var(--gap);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.legal-text { font-family: var(--font-m); font-size: 11px; color: var(--text-muted); line-height: 1.7; }
.legal-text strong { color: var(--text-2); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 36px var(--gap);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border);
}
.ft-logo { font-family: var(--font-m); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; }
.ft-links { display: flex; gap: 24px; list-style: none; }
.ft-links a { font-family: var(--font-m); font-size: 11px; color: var(--text-muted); transition: color 0.2s; }
.ft-links a:hover { color: var(--text-2); }
.ft-copy { font-family: var(--font-m); font-size: 11px; color: var(--text-muted); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 58px; left: 0; right: 0; padding: 24px var(--gap);
    background: rgba(8,9,9,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); gap: 20px; z-index: 99;
  }
  .nav-mob { display: flex; }
  .nav-cta { display: none; }
  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .dl-inner { grid-template-columns: 1fr; }
  .dl-text { border-right: none; border-bottom: 1px solid var(--border); }
  .prev-right { display: none; }
  .prev-body { height: 360px; }
  .how-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .ft-links { flex-wrap: wrap; justify-content: center; }
  .legal-strip { flex-direction: column; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .btn-dl, .btn-ghost { width: 100%; justify-content: center; }
  .how-grid { grid-template-columns: 1fr; }
}