:root {
  --bg: #0a0b0f;
  --bg-elev: #12141b;
  --bg-elev-2: #191c26;
  --border: #262a36;
  --text: #eef0f5;
  --text-dim: #9aa1b4;
  --text-faint: #676e83;
  --accent: #7c5cff;
  --accent-2: #ff6b9d;
  --accent-3: #35e3c8;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  --radius: 16px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, rgba(255,107,157,0.12), transparent 60%),
    radial-gradient(40% 40% at 50% 100%, rgba(53,227,200,0.08), transparent 60%);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0 0 12px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: #0a0b0f;
}
.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero-sub em { color: var(--text); font-style: normal; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual: sequence card */
.hero-visual { display: flex; justify-content: center; }

.sequence-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}

.seq-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.seq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.seq-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  flex: 1;
  animation: float 4s ease-in-out infinite;
}
.node-b { animation-delay: 0.6s; }
.node-c { animation-delay: 1.2s; border-color: var(--accent-3); }

.node-emoji { font-size: 22px; }
.node-tag { font-size: 11px; color: var(--text-faint); }

.seq-arrow {
  color: var(--text-faint);
  padding: 0 8px;
  font-size: 14px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.seq-bars {
  display: flex;
  gap: 20px;
}
.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.bar-track {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: flex-end;
}
.bar span {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}
.bar-win span {
  background: var(--grad);
  border: none;
}
.bar em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 88px 28px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 68ch;
}

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 36px;
  align-items: start;
}

.problem-text p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 56ch;
}
.problem-text strong { color: var(--text); }

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-line { margin-bottom: 20px; }
.stat-line span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.fill { height: 100%; border-radius: 999px; }
.fill-flat {
  width: 45%;
  background: var(--text-faint);
}
.fill-decay {
  width: 22%;
  background: var(--accent-2);
}

.stat-caption {
  font-size: 13px;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* Solution */
.example-card {
  margin-top: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.example-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.example-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ex-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
}
.ex-step-win {
  border-color: var(--accent-3);
  color: var(--accent-3);
}
.ex-emoji { font-size: 20px; }
.ex-arrow { color: var(--text-faint); }

.example-note {
  margin: 24px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}
.example-note em { color: var(--text); font-style: normal; }

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.how-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.how-index {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.how-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Contact */
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card h2 { max-width: none; }
.contact-card .section-lead { margin: 0 auto 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}
