:root {
  --bg: #0a0810;
  --bg-raised: #14111c;
  --bg-card: #16131f;
  --border: #2a2438;
  --text: #f3f0fa;
  --text-dim: #a89fc0;
  --text-faint: #6f6785;
  --violet: #7c6cf0;
  --violet-bright: #9d8cff;
  --blue: #5a7dfa;
  --amber: #f5b942;
  --font-display: "Fraunces", serif;
  --font-body: "Sora", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- atmosphere --- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(90px);
}
.glow--hero {
  top: -180px; left: 50%; width: 900px; height: 620px; transform: translateX(-38%);
  background: radial-gradient(circle, rgba(124,108,240,0.35) 0%, rgba(90,125,250,0.12) 45%, transparent 70%);
}

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6vw;
  background: rgba(10,8,16,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.94rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet-bright), var(--blue));
  color: #0a0810;
  box-shadow: 0 8px 30px -8px rgba(124,108,240,0.55);
}
.btn-primary svg { color: #0a0810; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(124,108,240,0.7); }
.btn-nav { padding: 9px 18px; font-size: 0.88rem; }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; width: 100%; justify-content: center; }
.btn-outline:hover { border-color: var(--violet-bright); background: rgba(124,108,240,0.08); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* --- reveal animation --- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.8s cubic-bezier(.16,.84,.44,1) forwards; }
.pre-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.pre-reveal.in-view { opacity: 1; transform: translateY(0); }
.hero-copy .eyebrow.reveal { animation-delay: 0.05s; }
.hero-copy h1.reveal { animation-delay: 0.16s; }
.hero-sub.reveal { animation-delay: 0.30s; }
.hero-cta.reveal { animation-delay: 0.42s; }
.hero-visual.reveal { animation-delay: 0.36s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* --- hero --- */
.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4vw; align-items: center;
  padding: 9vh 6vw 11vh;
  max-width: 1320px; margin: 0 auto;
}
.eyebrow { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-bright); font-weight: 600; margin-bottom: 18px; }
.eyebrow.center { text-align: center; }
h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 22px;
}
.accent { color: var(--violet-bright); font-style: italic; }
.hero-sub { color: var(--text-dim); font-size: 1.12rem; max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { color: var(--text-faint); font-size: 0.85rem; }

/* --- hero visual mock --- */
.hero-visual { display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 360px; border-radius: 18px; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
}
.mock-titlebar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: #2e2840; }
.mock-body { padding: 30px 26px 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mock-ring { position: relative; width: 140px; height: 140px; }
.mock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--border); stroke-width: 8; }
.ring-fill { fill: none; stroke: url(#none); stroke: var(--violet-bright); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 92; }
.mock-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mock-ring-label strong { font-family: var(--font-display); font-size: 1.7rem; }
.mock-ring-label span { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.mock-row { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-dim); padding: 9px 12px; border-radius: 8px; background: var(--bg-card); }
.mock-row .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mock-row.blocked .dot { background: #e5636e; }
.mock-row.active .dot { background: #5fd898; }

/* --- problem --- */
.problem {
  position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 4vh 6vw 14vh; text-align: left;
}
.problem h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.25; margin-bottom: 24px; }
.problem-body { color: var(--text-dim); font-size: 1.08rem; max-width: 68ch; }

/* --- features --- */
.features { position: relative; z-index: 2; padding: 8vh 6vw; max-width: 1240px; margin: 0 auto; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 50px; }
h2.center { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { border-color: rgba(157,140,255,0.4); transform: translateY(-4px); box-shadow: 0 20px 50px -24px rgba(124,108,240,0.4); }
.feature-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 34px; }
.feature-card-copy p { max-width: 60ch; }
.feature-icon { width: 46px; height: 46px; color: var(--violet-bright); margin-bottom: 16px; }
.feature-card--wide .feature-icon { margin-bottom: 0; width: 54px; height: 54px; }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.94rem; }
.card-link { display: inline-block; margin-top: 12px; color: var(--violet-bright); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: gap 0.2s; }
.card-link:hover { text-decoration: underline; }

/* --- how it works --- */
.how { position: relative; z-index: 2; padding: 8vh 6vw; max-width: 1080px; margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 20px; position: relative; }
.steps li { position: relative; padding-top: 8px; }
.step-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--text-faint); display: block; margin-bottom: 14px; }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 10px; }
.steps p { color: var(--text-dim); font-size: 0.95rem; }

/* --- pricing --- */
.pricing { position: relative; z-index: 2; padding: 8vh 6vw 10vh; max-width: 1000px; margin: 0 auto; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 780px; margin: 0 auto; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 38px 34px;
  display: flex; flex-direction: column; position: relative;
}
.price-card--pro { border-color: rgba(157,140,255,0.5); background: linear-gradient(165deg, rgba(124,108,240,0.1), var(--bg-card) 55%); }
.price-badge {
  position: absolute; top: -13px; right: 30px; background: var(--amber); color: #2a1c00;
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; letter-spacing: 0.03em;
}
.price-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.price-tag { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; margin-bottom: 26px; }
.price-tag span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.price-card ul { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.price-card li { color: var(--text-dim); font-size: 0.92rem; padding: 8px 0; padding-left: 24px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.04); }
.price-card li::before { content: "+"; position: absolute; left: 0; color: var(--violet-bright); font-weight: 700; }

/* --- final cta --- */
.final-cta { position: relative; z-index: 2; text-align: center; padding: 10vh 6vw 14vh; }
.final-cta h2 { max-width: 720px; margin: 0 auto 38px; text-align: center; line-height: 1.2; }

/* --- faq --- */
.faq { position: relative; z-index: 2; padding: 8vh 6vw; max-width: 860px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--violet); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-bright); font-size: 1.4rem; font-weight: 400; margin-left: 16px; flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 2px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }

/* --- footer --- */
.site-footer {
  position: relative; z-index: 2; border-top: 1px solid var(--border);
  padding: 40px 6vw; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; color: var(--text-dim); }
.footer-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--text-faint); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; color: var(--text-faint); font-size: 0.8rem; text-align: center; margin-top: 6px; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6vh; }
  .hero-visual { order: -1; margin-bottom: 2rem; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; grid-template-columns: 1fr; text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .hero-cta { align-items: stretch; }
  .btn-primary { justify-content: center; }
}
