/* ═══════════════════════════════════════════════
   CRION DESKTOP — LANDING PAGE
   Design: Cosmic Void / Nebula Dark
   ═══════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg-root: #030b18;
  --bg-deep: #040e1f;
  --bg-card: rgba(8, 22, 42, 0.55);
  --text-main: #f0f6ff;
  --text-soft: #8da4c1;
  --text-muted: #5a7494;
  --line: rgba(100, 180, 255, 0.12);
  --line-hover: rgba(100, 180, 255, 0.28);
  --accent-cyan: #57d9ff;
  --accent-lime: #6ef5c9;
  --accent-purple: #a855f7;
  --accent-pink: #f472b6;
  --accent-ink: #041a2e;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-root);
  color: var(--text-main);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(87, 217, 255, 0.25);
  color: #fff;
}

/* ─── BACKGROUND LAYERS ─── */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.bg-orb--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  animation: orb-drift-1 22s ease-in-out infinite;
}

.bg-orb--2 {
  width: 500px; height: 500px;
  top: 100px; right: -150px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  animation: orb-drift-2 26s ease-in-out infinite;
}

.bg-orb--3 {
  width: 450px; height: 450px;
  bottom: -100px; left: 30%;
  background: radial-gradient(circle, var(--accent-lime), transparent 70%);
  animation: orb-drift-3 20s ease-in-out infinite;
  opacity: 0.25;
}

.bg-orb--4 {
  width: 350px; height: 350px;
  top: 50%; right: 10%;
  background: radial-gradient(circle, var(--accent-pink), transparent 70%);
  animation: orb-drift-1 30s ease-in-out infinite reverse;
  opacity: 0.15;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* cursor glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.06), transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  will-change: left, top;
}

/* floating particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(87, 217, 255, 0.4);
  animation: particle-float linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) { background: rgba(110, 245, 201, 0.35); }
.particle:nth-child(3n) { background: rgba(168, 85, 247, 0.3); width: 2px; height: 2px; }

/* ─── LAYOUT ─── */

.page-wrap {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ─── HEADER ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(3, 11, 24, 0.7);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(3, 11, 24, 0.88);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-glyph {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  box-shadow: 0 4px 20px rgba(87, 217, 255, 0.3), 0 0 40px rgba(87, 217, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.brand:hover .brand-glyph {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 4px 24px rgba(87, 217, 255, 0.45), 0 0 50px rgba(87, 217, 255, 0.15);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
}

.header-link:hover {
  color: var(--text-main);
  background: rgba(87, 217, 255, 0.06);
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.25s, background 0.25s;
  will-change: transform;
  white-space: nowrap;
}

.btn-solid {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  box-shadow: 0 8px 30px rgba(87, 217, 255, 0.3), 0 0 60px rgba(87, 217, 255, 0.08);
}

.btn-solid:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(87, 217, 255, 0.4), 0 0 80px rgba(87, 217, 255, 0.12);
}

.btn-ghost {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(8, 24, 44, 0.5);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--line-hover);
  background: rgba(12, 32, 56, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(8, 24, 44, 0.5);
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(87, 217, 255, 0.06);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 16px;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── HERO ─── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 0 60px;
  position: relative;
}

.hero-orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.hero-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(87, 217, 255, 0.6), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.5), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(110, 245, 201, 0.4), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(8, 30, 56, 1), transparent);
  animation: orb-breathe 6s ease-in-out infinite;
  box-shadow:
    0 0 80px rgba(87, 217, 255, 0.25),
    0 0 160px rgba(168, 85, 247, 0.12),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-purple), var(--accent-lime), var(--accent-cyan));
  opacity: 0.3;
  animation: orb-ring-spin 8s linear infinite;
  filter: blur(2px);
}

.hero-orb::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.hero-orb-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.15), transparent 65%);
  animation: orb-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(87, 217, 255, 0.1);
  animation: ring-expand 4s ease-out infinite;
  opacity: 0;
}

.hero-ring:nth-child(2) { animation-delay: 1.33s; }
.hero-ring:nth-child(3) { animation-delay: 2.66s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(110, 245, 201, 0.25);
  background: rgba(110, 245, 201, 0.06);
  color: var(--accent-lime);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  animation: badge-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-lime);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  color: var(--text-main);
}

.gradient-text {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime), var(--accent-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@supports not (background-clip: text) {
  .gradient-text {
    -webkit-text-fill-color: unset;
    color: var(--accent-cyan);
  }
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.6;
}

.hero-subtitle .rotate-word {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 700;
  min-width: 160px;
  text-align: left;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.6em;
}

.hero-subtitle .rotate-word span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  animation: word-rotate 9s ease-in-out infinite;
  opacity: 0;
  transform: translateY(100%);
}

/* First word visible as fallback if animation doesn't run */
.hero-subtitle .rotate-word span:first-child {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle .rotate-word span:nth-child(1) { animation-delay: 0s; }
.hero-subtitle .rotate-word span:nth-child(2) { animation-delay: 3s; }
.hero-subtitle .rotate-word span:nth-child(3) { animation-delay: 6s; }

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-tag {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(100, 180, 255, 0.12);
  background: rgba(8, 24, 44, 0.4);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, color 0.3s;
}

.hero-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

/* ─── MARQUEE ─── */

.marquee-section {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 14, 28, 0.4);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  padding: 18px 40px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

.marquee-item:hover {
  color: var(--accent-cyan);
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ─── STATS ─── */

.stats-section {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(87, 217, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px);
}

.stat-card:hover::before { opacity: 1; }

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}

.stat-value .counter-prefix { color: var(--text-soft); font-size: 0.7em; }

.stat-card:nth-child(1) .stat-value { color: var(--accent-cyan); }
.stat-card:nth-child(2) .stat-value { color: var(--accent-lime); }
.stat-card:nth-child(3) .stat-value { color: var(--accent-purple); }
.stat-card:nth-child(4) .stat-value { color: var(--accent-pink); }

.stat-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ─── FEATURES BENTO GRID ─── */

.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--line-hover);
}

.bento-card:hover::before {
  opacity: 1;
}

/* animated border on hover */
.bento-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle, 0deg), transparent 60%, var(--accent-cyan) 78%, var(--accent-lime) 88%, transparent 95%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-card:hover::after {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}

.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; display: flex; flex-direction: column; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(87, 217, 255, 0.08);
  border: 1px solid rgba(87, 217, 255, 0.12);
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover .bento-icon {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(87, 217, 255, 0.15);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bento-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* color variants */
.bento-card--cyan .bento-icon { background: rgba(87, 217, 255, 0.08); border-color: rgba(87, 217, 255, 0.15); }
.bento-card--cyan::before { background: radial-gradient(circle at 30% 20%, rgba(87, 217, 255, 0.05), transparent 60%); }

.bento-card--lime .bento-icon { background: rgba(110, 245, 201, 0.08); border-color: rgba(110, 245, 201, 0.15); }
.bento-card--lime::before { background: radial-gradient(circle at 30% 20%, rgba(110, 245, 201, 0.05), transparent 60%); }

.bento-card--purple .bento-icon { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.15); }
.bento-card--purple::before { background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.05), transparent 60%); }

.bento-card--pink .bento-icon { background: rgba(244, 114, 182, 0.08); border-color: rgba(244, 114, 182, 0.15); }
.bento-card--pink::before { background: radial-gradient(circle at 30% 20%, rgba(244, 114, 182, 0.05), transparent 60%); }

/* visual decorations inside tall card */
.bento-visual {
  flex: 1;
  margin-top: 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(87, 217, 255, 0.05), rgba(168, 85, 247, 0.05)),
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(87, 217, 255, 0.03) 20px, rgba(87, 217, 255, 0.03) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(87, 217, 255, 0.03) 20px, rgba(87, 217, 255, 0.03) 21px);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.bento-visual-bars {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60%;
}

.bento-visual-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent-cyan), rgba(87, 217, 255, 0.3));
  opacity: 0.6;
  animation: bar-grow 2s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.bento-visual-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.bento-visual-bar:nth-child(2) { height: 85%; animation-delay: 0.2s; background: linear-gradient(to top, var(--accent-lime), rgba(110, 245, 201, 0.3)); }
.bento-visual-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.bento-visual-bar:nth-child(4) { height: 95%; animation-delay: 0.4s; background: linear-gradient(to top, var(--accent-purple), rgba(168, 85, 247, 0.3)); }
.bento-visual-bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.bento-visual-bar:nth-child(6) { height: 55%; animation-delay: 0.6s; background: linear-gradient(to top, var(--accent-lime), rgba(110, 245, 201, 0.3)); }

/* wave visualization in card */
.bento-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 16px;
  height: 32px;
}

.bento-wave-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent-cyan);
  animation: wave-dance 1.2s ease-in-out infinite;
  opacity: 0.7;
}

.bento-wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.bento-wave-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; background: var(--accent-lime); }
.bento-wave-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.bento-wave-bar:nth-child(4) { height: 90%; animation-delay: 0.3s; background: var(--accent-purple); }
.bento-wave-bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.bento-wave-bar:nth-child(6) { height: 80%; animation-delay: 0.15s; background: var(--accent-lime); }
.bento-wave-bar:nth-child(7) { height: 45%; animation-delay: 0.25s; }
.bento-wave-bar:nth-child(8) { height: 65%; animation-delay: 0.35s; background: var(--accent-cyan); }
.bento-wave-bar:nth-child(9) { height: 55%; animation-delay: 0.05s; }
.bento-wave-bar:nth-child(10) { height: 75%; animation-delay: 0.2s; background: var(--accent-purple); }

/* ─── FLOW SECTION ─── */

.flow-section {
  padding: 80px 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  counter-reset: flow-step;
}

.flow-card {
  counter-increment: flow-step;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.4s, border-color 0.4s;
}

.flow-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hover);
}

.flow-step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), rgba(87, 217, 255, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.flow-card:nth-child(2) .flow-step-num {
  background: linear-gradient(135deg, var(--accent-lime), rgba(110, 245, 201, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow-card:nth-child(3) .flow-step-num {
  background: linear-gradient(135deg, var(--accent-purple), rgba(168, 85, 247, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.flow-connector {
  display: none;
}

/* ─── CTA / DOWNLOAD ─── */

.cta-section {
  padding: 100px 0 80px;
}

.cta-box {
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(87, 217, 255, 0.08), transparent),
    radial-gradient(ellipse 500px 300px at 50% 100%, rgba(168, 85, 247, 0.06), transparent),
    var(--bg-card);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 40%, rgba(87, 217, 255, 0.2) 50%, rgba(110, 245, 201, 0.2) 55%, transparent 65%);
  z-index: -1;
  animation: border-rotate 6s linear infinite;
}

.cta-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 217, 255, 0.12), transparent 65%);
  animation: cta-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── FOOTER ─── */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 11, 24, 0.6);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text-soft);
}

/* ─── SCROLL REVEAL ─── */
/* Elements are visible by default. JS adds .reveal-init to enable animation. */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-init.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-init.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-init.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-init.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-init.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-init.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── KEYFRAMES ─── */

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.05); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(0.95); }
  66% { transform: translate(30px, -50px) scale(1.05); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.15); }
}

@keyframes orb-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orb-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes ring-expand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-lime); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--accent-lime); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes word-rotate {
  0%, 5% { opacity: 0; transform: translateY(100%); }
  10%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-100%); }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes border-rotate {
  from { --border-angle: 0deg; }
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes wave-dance {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card--wide { grid-column: span 2; }
  .bento-card--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
  .container {
    width: min(1200px, calc(100% - 28px));
  }

  .site-header {
    position: sticky;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .header-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero-orb-wrap {
    width: 180px;
    height: 180px;
    margin-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card { padding: 24px 16px; }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .marquee-item {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn { width: 100%; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-glow, .particles { display: none; }
}
