/* ──────────────────────────────────────────────────────────────────
   SkyDaemon marketing site — skydaemon.com
   Refined design system: variable fonts, glassmorphism, gradient mesh,
   scroll-driven animations, sophisticated dark palette.
   ────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Surfaces */
  --bg:           #06070C;
  --bg-2:         #0A0C13;
  --bg-3:         #0D1019;
  --surface:      #11141C;
  --surface-2:    #181C26;
  --surface-3:    #232838;

  /* Borders */
  --border:       rgba(255,255,255,0.06);
  --border-2:     rgba(255,255,255,0.10);
  --border-glow:  rgba(110,168,254,0.30);

  /* Text */
  --text:         #f1f3f7;
  --text-2:       #c5cad3;
  --text-dim:     #8e95a3;
  --text-faint:   #5a6271;

  /* Accents — refined cool palette */
  --accent:       #6ea8fe;          /* primary blue */
  --accent-glow:  #93c5fd;
  --violet:       #a78bfa;          /* deep violet for variation */
  --violet-glow:  #c4b5fd;
  --mint:         #5eead4;          /* mint for "secure / passing" */
  --mint-glow:    #99f6e4;
  --amber:        #fbbf24;
  --amber-glow:   #fcd34d;
  --rose:         #fb7185;          /* for "critical" highlights */
  --rose-glow:    #fda4af;

  /* Functional */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.20);
  --shadow:       0 12px 36px rgba(0,0,0,0.40), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-lg:    0 24px 80px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow:  0 0 0 1px var(--border-glow), 0 12px 60px rgba(110,168,254,0.18);

  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  /* Curves */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
*::selection { background: rgba(110,168,254,0.35); color: #fff; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}
body {
  /* Subtle global gradient mesh */
  background-image:
    radial-gradient(ellipse 1200px 900px at 50% -20%, rgba(110,168,254,0.10), transparent 55%),
    radial-gradient(ellipse 800px 600px at 100% 30%, rgba(167,139,250,0.07), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 60%, rgba(94,234,212,0.04), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 100ms; }
a:hover { color: var(--accent-glow); }

img { max-width: 100%; }

/* ─── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; }
h3 { font-size: 22px; letter-spacing: -0.015em; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }

code, pre, .mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
code {
  font-size: 0.9em;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 5px;
  color: var(--text);
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 880px; }
.container-lg { max-width: 1340px; }

/* ─── Top nav ────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 7, 12, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 200ms;
}
.topnav.scrolled {
  background: rgba(6, 7, 12, 0.85);
  border-bottom-color: var(--border-2);
}
.topnav-inner {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
}
.topnav .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
  color: var(--text);
}
.topnav .brand:hover { text-decoration: none; }

/* SkyDaemon brand mark — the actual cloud + daemon-face + infinity logo art */
.brand-mark {
  width: 40px; height: 34px;
  flex-shrink: 0;
  background: url("/skydaemon-icon.png") center/contain no-repeat;
  filter: drop-shadow(0 0 9px rgba(110,168,254,0.40));
  transition: transform 200ms var(--ease-out), filter 200ms;
}
.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-3deg);
  filter: drop-shadow(0 0 14px rgba(110,168,254,0.65));
}

/* SkyDaemon glowing lockup (icon + wordmark) — dark-background logo art */
.brand-logo {
  height: 30px; width: auto; display: block;
  transition: filter 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.brand:hover .brand-logo { filter: brightness(1.12) drop-shadow(0 0 10px rgba(110,168,254,0.4)); transform: scale(1.02); }
.auth-brand .brand-logo { height: 46px; }
.portal-top .brand-logo { height: 30px; }
footer.site-footer .brand-logo { height: 32px; }

.topnav .nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 20px;
}
.topnav .nav-links a {
  position: relative;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 150ms;
}
.topnav .nav-links a::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  opacity: 0; transform: scale(0.92);
  transition: all 150ms var(--ease-out);
}
.topnav .nav-links a:hover { color: var(--text); text-decoration: none; }
.topnav .nav-links a:hover::before { opacity: 1; transform: scale(1); }
.topnav .nav-links a.active { color: var(--accent-glow); }
.topnav .nav-links a.active::before { opacity: 1; transform: scale(1); background: rgba(110,168,254,0.10); }

.topnav .nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.topnav-mobile-burger {
  display: none;
  margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px; color: var(--text);
  cursor: pointer; font-size: 18px;
}
/* Hidden by default on desktop — only the media query below reveals it on
   small screens. (Without this base rule it renders as a duplicate second
   nav row on desktop.) */
.topnav-mobile-menu { display: none; }
@media (max-width: 920px) {
  .topnav .nav-links, .topnav .nav-cta { display: none; }
  .topnav-mobile-burger { display: inline-flex; }
  .topnav-mobile-menu {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(6,7,12,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    z-index: 200;
    flex-direction: column; gap: 8px;
  }
  .topnav-mobile-menu.show { display: flex; }
  .topnav-mobile-menu a {
    padding: 12px 14px; border-radius: 8px;
    background: var(--surface-2); color: var(--text);
    font-weight: 600;
  }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: transform 100ms var(--ease-out), background 150ms, border-color 150ms, color 150ms, box-shadow 150ms;
  position: relative;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--accent) 100%);
  color: #08111f;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 30px rgba(110,168,254,0.25);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 12px 40px rgba(110,168,254,0.40);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.btn-link {
  background: none; border: 0;
  color: var(--accent-glow); font-weight: 600;
  padding: 0;
}
.btn-link:hover { color: #b8d4fe; text-decoration: underline !important; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 11px; }
.btn-xl { padding: 18px 32px; font-size: 16px; border-radius: 12px; }

.btn .arrow { transition: transform 150ms var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

/* Animated gradient mesh background */
.hero-mesh {
  position: absolute; inset: -10%;
  pointer-events: none; z-index: 0;
}
.hero-mesh::before, .hero-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: mesh-drift 20s ease-in-out infinite;
}
.hero-mesh::before {
  width: 50vw; height: 50vw;
  top: -10%; left: 30%;
  background: radial-gradient(circle, rgba(110,168,254,0.45) 0%, transparent 70%);
}
.hero-mesh::after {
  width: 40vw; height: 40vw;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(167,139,250,0.35) 0%, transparent 70%);
  animation-delay: -8s;
}
@keyframes mesh-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-5vw, 4vh) scale(1.05); }
  66%      { transform: translate(4vw, -3vh) scale(0.95); }
}

/* Subtle dot grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
  opacity: 0.7;
  z-index: 0;
}
.hero-orb.o1 { width: 6px; height: 6px; top: 20%; left: 18%; background: var(--accent-glow); box-shadow: 0 0 24px var(--accent); animation: orb-float-1 12s ease-in-out infinite; }
.hero-orb.o2 { width: 4px; height: 4px; top: 35%; right: 22%; background: var(--violet-glow); box-shadow: 0 0 20px var(--violet); animation: orb-float-2 14s ease-in-out infinite; }
.hero-orb.o3 { width: 5px; height: 5px; top: 60%; left: 28%; background: var(--mint-glow); box-shadow: 0 0 18px var(--mint); animation: orb-float-3 16s ease-in-out infinite; }
.hero-orb.o4 { width: 3px; height: 3px; top: 70%; right: 30%; background: var(--accent-glow); box-shadow: 0 0 16px var(--accent); animation: orb-float-1 13s ease-in-out infinite; }
@keyframes orb-float-1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-20px); } }
@keyframes orb-float-2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,30px); } }
@keyframes orb-float-3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,40px); } }

.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: rgba(110,168,254,0.10);
  border: 1px solid rgba(110,168,254,0.25);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 500;
  color: var(--accent-glow);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}
.hero .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint), 0 0 4px #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  line-height: 1.02;
  background: linear-gradient(180deg, #fff 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .gradient-word {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--violet-glow) 60%, var(--mint-glow) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .lede {
  font-size: 19px;
  color: var(--text-2);
  max-width: 740px;
  margin: 0 auto 44px;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ─── Live detection demo (terminal-style) ──────────────────── */
.live-demo {
  max-width: 760px;
  margin: 64px auto 0;
  background: rgba(11,14,22,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.live-demo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(110,168,254,0.05), transparent 40%);
  pointer-events: none;
}
.live-demo-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.live-demo-header .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.live-demo-header .dot.r { background: #ff5f57; }
.live-demo-header .dot.y { background: #febc2e; }
.live-demo-header .dot.g { background: #28c840; }
.live-demo-header .lbl { margin-left: 10px; font-weight: 500; }
.live-demo-header .live-pulse {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600;
  color: var(--mint-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-demo-header .live-pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.2s ease-in-out infinite;
}
.live-demo-body {
  padding: 22px 24px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  text-align: left;
  min-height: 240px;
}
.live-demo .typing-line { display: block; }
.live-demo .typing-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent-glow); margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.live-demo .lbl-prompt { color: var(--text-faint); }
.live-demo .lbl-detect { color: var(--rose-glow); font-weight: 600; }
.live-demo .lbl-pass   { color: var(--mint-glow); font-weight: 600; }
.live-demo .kw  { color: var(--violet-glow); }
.live-demo .str { color: var(--mint-glow); }
.live-demo .num { color: var(--amber-glow); }
.live-demo .com { color: var(--text-faint); font-style: italic; }
.live-demo .badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-left: 6px;
}
.live-demo .badge.crit { background: rgba(251,113,133,0.15); color: var(--rose-glow); }
.live-demo .badge.high { background: rgba(251,191,36,0.15); color: var(--amber-glow); }
.live-demo .badge.ok   { background: rgba(94,234,212,0.15); color: var(--mint-glow); }

/* ─── Trust strip — animated marquee ─────────────────────────── */
.trust-strip {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  position: relative;
}
.trust-strip .lbl {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--text-faint); text-align: center;
  margin-bottom: 22px;
  font-weight: 600;
}
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
}
.marquee-track .item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Scroll-reveal animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }
.reveal.delay-6 { transition-delay: 480ms; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.stagger-children.in-view > * { opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children.in-view > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children.in-view > *:nth-child(8) { transition-delay: 560ms; }

/* ─── Section blocks ─────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section .header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}
.section .header .eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(110,168,254,0.08);
  border: 1px solid rgba(110,168,254,0.20);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; font-weight: 500;
  color: var(--accent-glow);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.section .header .lede {
  font-size: 18px;
  color: var(--text-2);
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── Feature cards (refined glassmorphism) ──────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.feat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 200ms var(--ease-out), border-color 200ms, background 200ms;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.feat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 0%),
    rgba(110,168,254,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}
.feat-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(110,168,254,0.30) 0%, transparent 50%);
  -webkit-mask: linear-gradient(black,black) content-box, linear-gradient(black,black);
  mask: linear-gradient(black,black) content-box, linear-gradient(black,black);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}
.feat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
  border-color: var(--border-2);
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover::after { opacity: 1; }

.feat-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110,168,254,0.18), rgba(110,168,254,0.05));
  border: 1px solid rgba(110,168,254,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.feat-card .icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.feat-card.violet .icon { background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(167,139,250,0.05)); border-color: rgba(167,139,250,0.25); }
.feat-card.mint .icon { background: linear-gradient(135deg, rgba(94,234,212,0.18), rgba(94,234,212,0.05)); border-color: rgba(94,234,212,0.25); }
.feat-card.amber .icon { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,191,36,0.05)); border-color: rgba(251,191,36,0.25); }

.feat-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  position: relative; z-index: 1;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
  position: relative; z-index: 1;
}

/* ─── Stats row with animated numbers ────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  text-align: center;
  margin: 48px 0;
}
.stat-cell { padding: 16px; }
.stat-cell .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-glow) 50%, var(--violet-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat-cell .lbl {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Big alternating feature blocks ─────────────────────────── */
.big-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.big-feat:last-child { margin-bottom: 0; }
.big-feat.reverse .big-feat-text { order: 2; }
.big-feat.reverse .big-feat-visual { order: 1; }
.big-feat-text .eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--accent-glow);
  padding: 5px 12px;
  background: rgba(110,168,254,0.08);
  border: 1px solid rgba(110,168,254,0.20);
  border-radius: 999px;
  margin-bottom: 18px;
}
.big-feat-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.big-feat-text p {
  font-size: 16px; color: var(--text-2);
  margin-bottom: 14px; line-height: 1.7;
}
.big-feat-text ul {
  list-style: none; padding: 0; margin: 20px 0 0;
}
.big-feat-text li {
  padding: 10px 0;
  font-size: 14.5px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
  line-height: 1.55;
}
.big-feat-text li::before {
  content: "✓";
  color: var(--mint);
  flex-shrink: 0; font-weight: 700;
  background: rgba(94,234,212,0.10);
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.big-feat-visual {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-lg);
}
.big-feat-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 600px at 0% 0%, rgba(110,168,254,0.10), transparent 60%),
    radial-gradient(circle 400px at 100% 100%, rgba(167,139,250,0.06), transparent 60%);
  pointer-events: none;
}
@media (max-width: 920px) {
  .big-feat { grid-template-columns: 1fr; gap: 36px; margin-bottom: 64px; }
  .big-feat.reverse .big-feat-text { order: 1; }
  .big-feat.reverse .big-feat-visual { order: 2; }
}

/* ─── Code preview ───────────────────────────────────────────── */
.code-preview {
  position: relative;
  background: rgba(8,10,16,0.85);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 12.5px;
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}
.code-preview .header {
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-dim);
}
.code-preview .header .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-3);
}
.code-preview .header .dot.r { background: #ff5f57; }
.code-preview .header .dot.y { background: #febc2e; }
.code-preview .header .dot.g { background: #28c840; }
.code-preview pre {
  margin: 0;
  padding: 16px 20px;
  background: transparent !important;
  border: 0;
  white-space: pre;
  overflow-x: auto;
  color: var(--text);
  line-height: 1.75;
}
.code-preview .kw  { color: var(--violet-glow); }
.code-preview .str { color: var(--mint-glow); }
.code-preview .com { color: var(--text-faint); font-style: italic; }
.code-preview .num { color: var(--amber-glow); }
.code-preview .fn  { color: var(--accent-glow); }

/* ─── Big CTA banner ─────────────────────────────────────────── */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(110,168,254,0.12), rgba(167,139,250,0.06) 60%, transparent),
    rgba(255,255,255,0.02);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(110,168,254,0.18), transparent 60%),
    radial-gradient(ellipse 400px 300px at 80% 100%, rgba(167,139,250,0.10), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px;
  position: relative; z-index: 1;
  letter-spacing: -0.03em;
}
.cta-banner p {
  font-size: 17px; color: var(--text-2);
  margin-bottom: 36px; max-width: 620px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}
.cta-banner .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ─── Resource cards ─────────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
}
.res-card {
  display: block;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 200ms var(--ease-out), border-color 200ms, background 200ms;
  position: relative;
  overflow: hidden;
}
.res-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.045);
  border-color: var(--border-2);
  text-decoration: none !important;
}
.res-card .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.res-card .tag.whitepaper { background: rgba(110,168,254,0.12); color: var(--accent-glow); border: 1px solid rgba(110,168,254,0.25); }
.res-card .tag.research   { background: rgba(167,139,250,0.12); color: var(--violet-glow); border: 1px solid rgba(167,139,250,0.25); }
.res-card .tag.blog       { background: rgba(94,234,212,0.12); color: var(--mint-glow); border: 1px solid rgba(94,234,212,0.25); }
.res-card .tag.case       { background: rgba(251,191,36,0.12); color: var(--amber-glow); border: 1px solid rgba(251,191,36,0.25); }
.res-card h3 {
  font-size: 18px; margin: 0 0 10px;
  color: var(--text);
  line-height: 1.35;
}
.res-card p {
  font-size: 14px; color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.6;
}
.res-card .meta {
  display: flex; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--text-faint);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.res-card .meta .dot { color: var(--text-faint); }

/* ─── Pricing cards ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 200ms var(--ease-out), border-color 200ms;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.price-card.featured {
  background:
    linear-gradient(180deg, rgba(110,168,254,0.10), transparent 60%),
    rgba(255,255,255,0.03);
  border-color: rgba(110,168,254,0.40);
  box-shadow: 0 0 0 1px rgba(110,168,254,0.40), 0 30px 80px rgba(110,168,254,0.15);
}
.price-card .ribbon {
  position: absolute; top: -12px; right: 28px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #08111f;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(110,168,254,0.30);
}
.price-card h3 { margin: 0 0 8px; font-size: 21px; }
.price-card .desc { color: var(--text-dim); font-size: 14px; margin: 0 0 28px; }
.price-card .price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px; font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 8px;
}
.price-card .price .unit { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.price-card .billing { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text-faint); margin-bottom: 28px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price-card li {
  padding: 8px 0;
  font-size: 14px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.55;
}
.price-card li::before {
  content: "✓"; color: var(--mint); flex-shrink: 0; font-weight: 700;
}
.price-card li.no { color: var(--text-faint); }
.price-card li.no::before {
  content: "—"; color: var(--text-faint);
}
.price-card .cta { margin-top: auto; }
.price-card .cta .btn { width: 100%; justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  margin-top: 100px;
  font-size: 13.5px;
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--text-faint); margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--accent-glow); text-decoration: none; }
.footer-grid .brand-block .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--text); margin-bottom: 16px;
}
.footer-grid .brand-block p {
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
  max-width: 300px;
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-faint);
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom .legal a { color: var(--text-dim); margin-left: 22px; }
.footer-bottom .legal a:hover { color: var(--accent-glow); }

/* ─── Page header (non-hero pages) ───────────────────────────── */
.page-header {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1200px 500px at 50% 0%, rgba(110,168,254,0.10), transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 100%, rgba(167,139,250,0.06), transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.page-header .breadcrumb a { color: var(--text-dim); }
.page-header .breadcrumb a:hover { color: var(--accent-glow); }
.page-header .breadcrumb .sep { margin: 0 8px; color: var(--text-faint); }
.page-header h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.page-header .lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 780px;
  line-height: 1.6;
}

/* ─── Form ───────────────────────────────────────────────────── */
.form {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 660px;
  margin: 0 auto;
}
.form .form-row { margin-bottom: 20px; }
.form .form-row .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .form-row .row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.form input, .form textarea, .form select {
  width: 100%;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 4px rgba(110,168,254,0.12);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .submit-row {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.form .submit-row .legal { font-size: 12px; color: var(--text-faint); }

/* ─── Animated counter ───────────────────────────────────────── */
[data-counter] { display: inline-block; font-variant-numeric: tabular-nums; }

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

/* ─── Misc utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.muted { color: var(--text-dim); }
hr.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 200;
  transition: width 80ms linear;
  box-shadow: 0 0 8px var(--accent);
}
