:root {
  --bg: #0b0616;
  --bg-2: #130a26;
  --bg-3: #1b0f33;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3effc;
  --muted: #b3a9cc;
  --purple: #8a3ffc;
  --purple-2: #5b21b6;
  --accent: #ff8a3d;
  --accent-2: #ffb347;
  --good: #4ade80;
  --bad: #fb7185;
  --radius: 16px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.kicker, .card-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(36px, 6vw, 64px); max-width: 900px; margin: 20px auto 20px; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(138, 63, 252, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(138, 63, 252, 0.5); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: var(--surface); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 6, 22, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo-tld { color: var(--accent); }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--muted); }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(138, 63, 252, 0.28), transparent 60%),
    linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}
#mesh { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Stats */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num {
  display: block; font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #c79bff, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Sections */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin-top: 14px; font-size: 18px; }
.section .center { margin-top: 48px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}
.card:hover { transform: translateY(-4px); border-color: rgba(138, 63, 252, 0.5); }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 20px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 15px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}

/* Problems */
.problems { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-list { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; }
.problem-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.problem, .solution {
  padding: 22px 24px; border-radius: 12px; border: 1px solid var(--border);
  font-weight: 600; font-size: 16px; line-height: 1.5;
}
.problem { background: rgba(251, 113, 133, 0.05); color: var(--muted); }
.solution { background: rgba(74, 222, 128, 0.06); color: var(--text); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; margin-right: 8px;
}
.tag-bad { background: rgba(251, 113, 133, 0.15); color: var(--bad); }
.tag-good { background: rgba(74, 222, 128, 0.15); color: var(--good); }
.problem .tag, .solution .tag { display: block; width: max-content; }

/* Case study */
.case-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.case-copy h2 { margin-bottom: 18px; }
.case-copy p { font-size: 17px; margin-bottom: 28px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 20px; text-align: center;
}

/* How it works */
.how { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 34px 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-num {
  display: block; font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.step h3 { margin-bottom: 10px; }

/* Verticals */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip-row li {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 15px; font-weight: 600;
}

/* FAQ */
.accordion details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  margin-bottom: 12px; overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17px;
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--accent); font-weight: 400; transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 24px 22px; font-size: 16px; }

/* CTA */
.cta {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(138, 63, 252, 0.35), transparent 65%),
    var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}
.cta h2 { margin-bottom: 18px; }
.cta .lead { margin-bottom: 36px; }
.cta-note { margin-top: 22px; font-size: 15px; }
.cta-note a { color: var(--accent); font-weight: 600; }
.cta .center { margin-top: 0; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 8px; font-size: 14px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.footer-legal a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 70px 0 100px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; text-align: left; }
.legal .updated { font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .card-grid, .steps { grid-template-columns: 1fr; }
  .case-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 72px 0; }
  .problem-row { grid-template-columns: 1fr; gap: 8px; }
  .problem-list { gap: 20px; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
