:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --ink: #12141a;
  --ink-2: #2a2e39;
  --grey: #6b7280;
  --grey-2: #9aa0ab;
  --line: #e8e9ee;
  --orange: #ff6a1a;
  --orange-2: #ff8a3d;
  --orange-ink: #b5410a;
  --tint: rgba(255, 106, 26, 0.08);
  --shadow: 0 18px 50px -20px rgba(24, 28, 40, 0.22);
  --shadow-soft: 0 10px 30px -18px rgba(24, 28, 40, 0.28);
  --r: 18px;
  --maxw: 1160px;
  --grad: linear-gradient(120deg, var(--orange), var(--orange-2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* three.js backdrop */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.9; }
.bg-wash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(255, 106, 26, 0.10), transparent 70%),
    radial-gradient(50% 40% at 12% 4%, rgba(120, 130, 150, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 42%, #ffffff 92%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 11px 20px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap; border: 1px solid transparent;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 106, 26, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(255, 106, 26, 0.7); }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-ink); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(24,28,40,0.5);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 800; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(255,106,26,0.7); }
.brand-name { font-size: 19px; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--grey); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: 68px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,0.7);
  border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-soft); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--tint); }
h1 { font-size: clamp(42px, 8vw, 78px); font-weight: 800; margin: 26px 0 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; max-width: 620px; font-size: clamp(16px, 2.4vw, 19px); color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.micro { margin-top: 18px; font-size: 13px; color: var(--grey-2); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--orange); animation: scrolldot 1.5s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(6px); } }

/* Trust */
.trust { text-align: center; padding: 30px 24px 10px; }
.kicker { font-size: 12px; letter-spacing: 2px; color: var(--grey-2); font-weight: 600; }
.kicker.orange { color: var(--orange-ink); }
.trust-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 42px; margin-top: 22px; }
.trust-icons svg { width: 30px; height: 30px; fill: none; stroke: var(--grey-2); stroke-width: 1.4; stroke-linejoin: round; opacity: .8; transition: stroke .2s, transform .2s; }
.trust-icons svg:hover { stroke: var(--orange); transform: translateY(-3px); }

/* Sections shared */
section { position: relative; }
.stats, .panel, .how, .features, .cta-wrap { padding-block: 56px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 42px); margin-top: 12px; }
.section-head .sub { margin-top: 12px; color: var(--grey); font-size: 18px; }

/* Stats card */
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 38px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { font-family: 'Sora'; font-weight: 800; font-size: clamp(34px, 5vw, 52px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.stat-label { margin-top: 6px; color: var(--grey); font-size: 15px; }

/* Panel */
.panel { display: flex; gap: 28px; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 40px; max-width: 940px; margin-inline: auto; }
.panel-bar { flex: 0 0 5px; border-radius: 5px; background: var(--grad); }
.panel-body h2 { font-size: clamp(24px, 4vw, 34px); }
.panel-body p { margin-top: 16px; color: var(--grey); font-size: 17px; }

/* How it works */
.steps { list-style: none; max-width: 780px; }
.step { display: flex; gap: 22px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); border: 1.5px solid rgba(255,106,26,0.4); color: var(--orange); flex: none; }
.step-badge svg { width: 24px; height: 24px; stroke: var(--orange); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step-line { width: 2px; flex: 1; margin: 8px 0; background: linear-gradient(var(--orange), rgba(255,106,26,.05)); }
.step-body { padding-bottom: 34px; padding-top: 3px; }
.step-num { font-size: 12px; letter-spacing: 1.4px; font-weight: 700; color: var(--orange-ink); }
.step-body h3 { font-size: 21px; margin-top: 4px; }
.step-body p { margin-top: 6px; color: var(--grey); }

/* Features */
.feature-group { margin-top: 44px; }
.feature-group:first-child { margin-top: 0; }
.group-name { font-size: 12px; letter-spacing: 1.4px; font-weight: 700; color: var(--grey-2); margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(255,106,26,0.4); border-color: rgba(255,106,26,0.35); }
.card-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--tint); display: grid; place-items: center; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; stroke: var(--orange); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; }
.card p { margin-top: 6px; color: var(--grey); font-size: 14.5px; }

/* CTA */
.cta { text-align: center; border-radius: 28px; padding: 60px 32px; background: linear-gradient(135deg, rgba(255,106,26,0.10), rgba(255,138,61,0.06)); border: 1px solid rgba(255,106,26,0.28); box-shadow: 0 30px 70px -30px rgba(255,106,26,0.5); }
.cta h2 { font-size: clamp(26px, 4.5vw, 40px); }
.cta p { margin-top: 12px; color: var(--grey); font-size: 18px; }
.cta .btn { margin-top: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 36px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--grey); font-size: 15px; transition: color .15s; }
.footer-links a:hover { color: var(--orange-ink); }
.footer-legal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--grey-2); font-size: 14px; }

/* Reveal animation baseline (GSAP enhances; this is the no-JS fallback safety) */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

/* Responsive */
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { flex-direction: column; padding: 28px; }
  .panel-bar { flex: 0 0 5px; width: 56px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .hero { min-height: 92svh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
  .scroll-hint span { animation: none; }
}
