:root {
  --bg: #06070d;
  --bg-soft: #0c0e18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f7;
  --muted: #9aa0b5;
  --primary: #7c5cff;
  --primary-2: #4dd0ff;
  --accent: #ff5ca8;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4dd0ff 50%, #ff5ca8 100%);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo__text { font-family: "Space Grotesk", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.glow-1 { width: 520px; height: 520px; background: #7c5cff; top: -160px; left: -120px; animation: float 14s var(--ease) infinite; }
.glow-2 { width: 480px; height: 480px; background: #4dd0ff; top: 200px; right: -160px; animation: float 18s var(--ease) infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 60px); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 18px 0;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(6, 7, 13, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); display: grid; place-items: center;
  font-family: "Space Grotesk"; font-weight: 700; color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.45);
}
.logo__text { font-size: 1.15rem; letter-spacing: 0.02em; }
.logo__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  font-size: 0.95rem; white-space: nowrap;
}
.btn--sm { padding: 9px 18px; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4); background-size: 200% 200%; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(124, 92, 255, 0.55); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 100px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); margin-bottom: 28px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #4dffa3; box-shadow: 0 0 12px #4dffa3; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; max-width: 14ch; margin-bottom: 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }
.hero__stats { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; }
.stat__num { font-family: "Space Grotesk"; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--bg-soft); }
.marquee__track { display: flex; gap: 32px; white-space: nowrap; width: max-content; animation: scroll 28s linear infinite; }
.marquee__track span { font-family: "Space Grotesk"; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; font-size: 0.95rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-family: "Space Grotesk"; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 14px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section__desc { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity 0.35s; z-index: -1; }
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5); background: var(--surface-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(77,208,255,0.15));
  border: 1px solid var(--border); margin-bottom: 20px; color: var(--primary-2);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 28px 24px; border-left: 2px solid var(--border); position: relative; transition: border-color 0.35s; }
.step:hover { border-color: var(--primary); }
.step__num { font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Quotes ---------- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; transition: transform 0.35s var(--ease), border-color 0.35s; }
.quote:hover { transform: translateY(-6px); border-color: rgba(77, 208, 255, 0.4); }
.quote p { font-size: 1.05rem; margin-bottom: 18px; }
.quote footer { color: var(--muted); font-size: 0.92rem; }
.quote footer strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta__card {
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(77,208,255,0.08));
  border: 1px solid var(--border); border-radius: 28px;
  padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta__card::after { content: ""; position: absolute; width: 400px; height: 400px; background: var(--primary); filter: blur(140px); opacity: 0.25; top: -200px; right: -100px; }
.cta__card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta__card > p { color: var(--muted); max-width: 50ch; margin: 0 auto 36px; font-size: 1.08rem; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 0 auto; }
.field--full { grid-column: 1 / -1; }
.cta__form input, .cta__form textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px; resize: vertical;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.98rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.cta__form input:focus, .cta__form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.cta__form .btn { grid-column: 1 / -1; }
.form__msg { grid-column: 1 / -1; font-size: 0.95rem; color: #4dffa3; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--muted); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted); font-size: 0.85rem; opacity: 0.7; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 64px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 16px;
    background: rgba(12, 14, 24, 0.96); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px;
    transform: translateY(-20px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 10px 12px; }
  .nav__toggle { display: flex; }
  .hero { padding: 140px 0 80px; }
  .hero__stats { gap: 36px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
}
