/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --ink: #0a0a0b;
  --ink-2: #111114;
  --ink-3: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --mute: #a8a8b3;
  --mute-2: #6e6e78;

  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --purple-deep: #6d28d9;
  --purple-soft: rgba(139, 92, 246, 0.18);

  --grad: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #6d28d9 100%);
  --grad-text: linear-gradient(135deg, #c4b5fd 0%, #a855f7 60%, #8b5cf6 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.35),
    0 20px 60px -10px rgba(139, 92, 246, 0.45);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 600;
}
p {
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
}
.section-alt {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-block: 1px solid var(--line);
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora-blob-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
}
.aurora-blob-2 {
  width: 640px;
  height: 640px;
  top: 40%;
  right: -200px;
  background: radial-gradient(circle, #6d28d9, transparent 70%);
  animation-delay: -8s;
  opacity: 0.45;
}
.aurora-blob-3 {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: 30%;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation-delay: -14s;
  opacity: 0.35;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(80px, 60px, 0) scale(1.15);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: inline-grid;
  place-items: center;
  position: relative;
  font-family: var(--font-display);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}
.logo-plus {
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-90%, -55%);
}
.logo-zero {
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-10%, -50%);
}
.logo-text {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--mute);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.8);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--purple-2);
  color: var(--white);
  background: var(--purple-soft);
}
.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-2);
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.06);
}
.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  margin-top: 22px;
  font-weight: 600;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--mute);
  max-width: 560px;
  margin-top: 22px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  color: var(--mute);
  font-size: 14px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  min-height: 420px;
}
.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.float-card {
  position: absolute;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
  animation: floaty 8s var(--ease) infinite alternate;
}
.float-card-1 {
  top: 0;
  left: 0;
  width: min(92%, 360px);
  z-index: 3;
}
.float-card-2 {
  bottom: 32px;
  right: 0;
  width: min(76%, 300px);
  z-index: 2;
  animation-delay: -3s;
}
.float-card-3 {
  bottom: 0;
  left: 14%;
  width: min(50%, 200px);
  z-index: 1;
  animation-delay: -6s;
  text-align: center;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-glow);
}
@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-14px);
  }
}
.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fc-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: uppercase;
}
.fc-pill {
  font-size: 12px;
  background: var(--purple-soft);
  color: var(--purple-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.fc-amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -0.02em;
}
.fc-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 18px;
  height: 70px;
}
.fc-bars span {
  flex: 1;
  background: var(--grad);
  border-radius: 4px;
  height: var(--h);
  opacity: 0.85;
}
.fc-bars span:last-child {
  opacity: 1;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.fc-line {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}
.fc-meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--mute);
}
.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mute-2);
}
.fc-dot-live {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.05);
  }
}
.fc-mini-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.fc-mini-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.6);
  overflow: hidden;
  padding-block: 22px;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--white);
  font-weight: 500;
}
.marquee-track .sep {
  color: var(--purple-2);
  font-weight: 400;
}
@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-top: 18px;
}
.section-lead {
  margin-top: 18px;
  color: var(--mute);
  font-size: clamp(15px, 1.2vw, 18px);
}

/* ---------- Solutions grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(168, 85, 247, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.4);
}
.feature:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-2);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--mute);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--grad);
  border-radius: 0 0 4px 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
}
.step h3 {
  font-size: 22px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.step p {
  color: var(--mute);
  font-size: 15px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  text-align: left;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-suffix {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p {
  color: var(--mute);
  font-size: 14.5px;
  margin-top: 12px;
}
.quote {
  margin: clamp(48px, 6vw, 80px) auto 0;
  max-width: 820px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.quote figcaption {
  margin-top: 18px;
  color: var(--mute);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- CTA / form ---------- */
.section-cta {
  background: radial-gradient(
      1200px 500px at 80% 0%,
      rgba(139, 92, 246, 0.18),
      transparent 60%
    ),
    var(--ink);
  border-top: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.cta-bullets {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  color: var(--mute);
}
.cta-bullets li {
  position: relative;
  padding-left: 24px;
}
.cta-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.form {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form input,
.form textarea {
  font: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--purple-2);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
}
.form-success {
  margin-top: 4px;
  color: #c4b5fd;
  font-size: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  background: var(--black);
}
.footer-inner {
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}
.footer-tag {
  color: var(--mute);
  max-width: 520px;
  font-size: 14.5px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 13.5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 720px;
}
.footer-meta a:hover {
  color: var(--purple-2);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 380px;
    order: -1;
    display: none;
  }
  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-size: 16px;
  }
  .nav-links a:last-child {
    border-bottom: none;
    margin-top: 6px;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .grid-3,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-trust {
    gap: 14px;
  }
}

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