:root {
  --bg: #f7f4ed;
  --card: #ffffff;
  --ink: #111111;
  --muted: #55534f;
  --line: #e4e1db;
  --blue: #405ccb;
  --blue-2: #5b7cff;
  --blue-soft: #e7ebff;
  --gold: #b99448;
  --dark: #0e0f13;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(17, 17, 17, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Background orbs */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 22s var(--ease) infinite alternate; }
.orbs span:nth-child(1) { width: 480px; height: 480px; background: #c9d4ff; top: -140px; right: -100px; }
.orbs span:nth-child(2) { width: 380px; height: 380px; background: #f4dea1; top: 40%; left: -160px; animation-duration: 28s; opacity: .35; }
.orbs span:nth-child(3) { width: 320px; height: 320px; background: #dfe6ff; bottom: -120px; right: 20%; animation-duration: 25s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(64, 92, 203, .3); }
.btn-primary:hover { background: #33449e; box-shadow: 0 14px 30px rgba(64, 92, 203, .38); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(247, 244, 237, .75); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(17, 17, 17, .04); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px "Space Grotesk", sans-serif; }
.brand img { border-radius: 8px; }
.brand b { color: var(--blue); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 56px) 64px;
}
.eyebrow { margin: 0 0 14px; color: var(--blue); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.light { color: #9fb3ff; }
h1 { font-size: clamp(40px, 6vw, 68px); }
.grad { background: linear-gradient(100deg, #33449e 0%, #405ccb 25%, #5b7cff 50%, #405ccb 75%, #33449e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 540px; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 6px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-logo { width: 72%; position: absolute; left: 14%; top: 12%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(17, 17, 17, .12)); }
.hero-logo .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow .9s var(--ease) forwards; }
.hero-logo .b1 { animation-delay: .2s; }
.hero-logo .b2 { animation-delay: .35s; }
.hero-logo .b3 { animation-delay: .5s; }
.hero-logo .base { stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw .8s var(--ease) forwards; }
.hero-logo .cue { transform: translate(-40px, 48px); opacity: 0; animation: strike .7s .9s var(--ease) forwards; }
.hero-logo .ball { transform-box: fill-box; transform-origin: center; transform: translate(-70px, 80px) scale(.6); opacity: 0; animation: launch .9s 1.35s var(--ease) forwards, bob 4s 2.4s ease-in-out infinite; }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes strike { 60% { transform: translate(6px, -7px); opacity: 1; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes launch { to { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.float-card {
  position: absolute; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; min-width: 190px; opacity: 0; animation: pop .7s var(--ease) forwards, floaty 6s ease-in-out infinite;
}
.fc-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fc-timer { font: 700 30px "Space Grotesk", monospace; font-variant-numeric: tabular-nums; margin: 4px 0; }
.fc-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; }
.fc-row b { color: var(--blue); }
.fc-row b.ok { color: #1a7f4b; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1a9f5b; }
.dot.live { box-shadow: 0 0 0 0 rgba(26, 159, 91, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(26, 159, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 159, 91, 0); } }
.card-table { left: -4%; bottom: 10%; animation-delay: 1.9s, 2.6s; }
.card-cafe { right: -6%; top: 52%; animation-delay: 2.2s, 3s; animation-duration: .7s, 7s; }
.card-close { right: 2%; top: 4%; animation-delay: 2.5s, 3.4s; animation-duration: .7s, 8s; min-width: 160px; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .5); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: scroll 32s linear infinite; }
.marquee span { font: 600 18px "Space Grotesk", sans-serif; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "●"; font-size: 8px; color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) clamp(16px, 5vw, 56px) 0; }
.section.narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
.sub { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.sub.light { color: #b6b9c6; }
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfd6f5; }
.feature h3 { font-size: 20px; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.ficon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; transition: transform .4s var(--ease); }
.feature:hover .ficon { transform: rotate(-8deg) scale(1.08); }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: -1; }
.step { text-align: center; padding: 0 12px; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 22px "Space Grotesk", sans-serif; box-shadow: 0 0 0 8px var(--bg); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Dark band */
.band { margin-top: clamp(64px, 10vw, 112px); background: var(--dark); color: #fff; overflow: hidden; }
.band-inner { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) clamp(16px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.signal { position: relative; width: 260px; height: 260px; justify-self: center; display: grid; place-items: center; }
.signal-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(159, 179, 255, .5); animation: ripple 3.6s ease-out infinite; }
.signal-ring.r2 { animation-delay: 1.2s; }
.signal-ring.r3 { animation-delay: 2.4s; }
@keyframes ripple { from { transform: scale(.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.signal-core { width: 110px; height: 110px; border-radius: 28px; background: linear-gradient(145deg, #5b7cff, #405ccb); display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: 0 20px 50px rgba(91, 124, 255, .4); font-weight: 600; font-size: 13px; }
.signal-core svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

/* Pricing */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(91, 124, 255, .12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan:hover::before { opacity: 1; }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); font-size: 15px; margin: 8px 0 20px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; }
.amt { font: 700 44px "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.per { color: var(--muted); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23405ccb' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan-pro { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: 0 30px 60px rgba(14, 15, 19, .25); }
.plan-pro .plan-desc, .plan-pro .per { color: #b6b9c6; }
.plan-pro .checks li::before { background-color: rgba(91, 124, 255, .25); }
.plan-pro::after { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1.5px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, #5b7cff 80%, #f4dea1 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; pointer-events: none; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.tag { position: absolute; top: 20px; right: 20px; background: linear-gradient(90deg, #5b7cff, #86a9ff); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin: 28px auto 0; max-width: 620px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .3s; }
.faq details[open] { border-color: #cfd6f5; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA + footer */
.cta { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(40px, 7vw, 72px) 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 124, 255, .16), transparent 65%); top: -200px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta .hero-ctas { margin-top: 28px; }
.footer { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 56px) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 17px; color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); transition: transform .4s var(--ease), visibility .4s; z-index: 30; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { max-width: 440px; }
  .features, .pricing { grid-template-columns: 1fr 1fr; }
  .plan-pro { grid-column: span 2; }
  .band-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .features, .pricing, .steps { grid-template-columns: 1fr; }
  .plan-pro { grid-column: auto; }
  .steps::before { display: none; }
  .float-card { min-width: 0; font-size: 13px; padding: 10px 12px; }
  .fc-timer { font-size: 24px; }
  .card-table { left: 0; bottom: 4%; }
  .card-cafe { right: 0; top: 56%; }
  .card-close { right: 0; top: 0; }
  .plan-desc { min-height: 0; }
  .footer { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
