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

:root {
  --bg: #030407;
  --bg-2: #060810;
  --surface: #0B0D1A;
  --surface-2: #10131F;
  --grad: linear-gradient(130deg, #7C3AED 0%, #2563EB 52%, #06B6D4 100%);
  --grad-text: linear-gradient(130deg, #C084FC 0%, #818CF8 40%, #38BDF8 100%);
  --grad-warm: linear-gradient(130deg, #F59E0B 0%, #EF4444 100%);
  --grad-pink: linear-gradient(130deg, #EC4899 0%, #F43F5E 100%);
  --text: #E8EAF2;
  --text-dim: #9aa1b8;
  --text-faint: #6b7088;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);
  --radius: 20px;
  --maxw: 1240px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img, svg { display: block; }

::selection { background: rgba(124,58,237,0.4); color: #fff; }

/* Canvases */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* Scroll progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: var(--grad);
  z-index: 10000;
  will-change: transform;
  /* glow intensifies with scroll velocity, eases back via --sv decay */
  box-shadow: 0 0 calc(8px + var(--sv,0) * 18px) rgba(124,58,237, calc(0.4 + var(--sv,0) * 0.45));
}

/* Layout helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-head p {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-dim);
}

/* Gradient text variants */
.gradient-text {
  background: var(--grad-text);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradflow 6s linear infinite;
}
.gradient-text-warm {
  background: var(--grad-warm);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradflow 6s linear infinite;
}
.gradient-text-pink {
  background: var(--grad-pink);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradflow 6s linear infinite;
}

@keyframes gradflow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(124,58,237,0.5);
}
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-bright);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}
/* Donate: a warm rose accent that stands apart from the blue Download CTA */
.btn--donate {
  background: rgba(236,72,153,0.10);
  border-color: rgba(236,72,153,0.40);
  color: #f7a8d0;
}
.btn--donate svg { color: #ec4899; }
.btn--donate:hover {
  background: rgba(236,72,153,0.18);
  border-color: rgba(236,72,153,0.7);
  box-shadow: 0 10px 30px rgba(236,72,153,0.28);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 17px 34px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Navbar */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(6,8,16,0.7);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(124,58,237,0.45);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a.lnk {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a.lnk:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-btn:hover { background: rgba(255,255,255,0.08); }
.menu-btn svg { width: 22px; height: 22px; display: block; }
/* Below the width where 6 links + 3 CTAs fit, fold the links into a dropdown */
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 232px;
    padding: 10px;
    background: rgba(10,12,20,0.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  #nav.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-links a.lnk {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
  }
  .nav-links a.lnk:hover { background: rgba(255,255,255,0.06); }
  .nav-links a.lnk::after { display: none; }
}
@media (max-width: 860px) {
  .nav-inner { padding: 12px 18px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 15px; font-size: 0.85rem; }
  .nav-cta .btn svg { width: 15px; height: 15px; }
}
/* Cursor glow is a pointer-only flourish; remove on touch (also prevents its 600px fixed box from creating horizontal scroll on phones) */
@media (hover: none) {
  .cursor-glow { display: none; }
}
@media (max-width: 560px) {
  /* GitHub + Donate become icon-only so the bar never overflows; Download keeps its label */
  .nav-cta { gap: 7px; }
  .nav-cta .btn--ghost,
  .nav-cta .btn--donate { font-size: 0; gap: 0; padding: 9px 11px; }
  .nav-cta .btn--ghost svg,
  .nav-cta .btn--donate svg { width: 18px; height: 18px; }
  .nav-cta .btn--primary { padding: 9px 15px; }
  /* hero buttons were oversized on phones */
  #hero { padding: 130px 0 80px; }
  .btn--lg { padding: 14px 20px; font-size: 0.95rem; }
  .hero-actions { gap: 12px; }
}
@media (max-width: 430px) {
  /* phones: keep only the primary CTA + hamburger in the bar so the menu button never
     gets pushed off-screen. Follow/Donate stay reachable in the page + dropdown. */
  .nav-cta .btn--ghost,
  .nav-cta .btn--donate { display: none; }
  .nav-inner { padding: 12px 14px; }
  .nav-cta { gap: 10px; }
}
@media (max-width: 360px) {
  /* very small phones: drop the label CTA too; logo + hamburger always fit */
  .nav-cta .btn--primary { display: none; }
}
/* Touch / small screens: drop the decorative full-screen canvas layers and the
   continuously-animating section gradients. A fixed, per-frame canvas over a long
   page is a known mobile-Safari memory/GPU crash ("A problem repeatedly occurred").
   The static CSS gradients keep the look. Mirrors the JS `lite` gate in main.js. */
@media (pointer: coarse), (max-width: 820px) {
  #aurora-canvas, #stars-canvas { display: none !important; }
  .bg-anim::before { animation: none !important; }
}

/* HERO */
#hero {
  padding: 190px 0 120px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
#stars-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

#hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 1.22rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* Hero visual */
.hero-visual {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.hero-visual-glow {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(circle at 60% 40%, rgba(124,58,237,0.35), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(6,182,212,0.25), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}
.browser-mockup {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 7px; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mock-dots span:nth-child(1){ background:#f43f5e; }
.mock-dots span:nth-child(2){ background:#f59e0b; }
.mock-dots span:nth-child(3){ background:#22c55e; }
.mock-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-url svg { width: 13px; height: 13px; color: #22c55e; }
.mock-body { padding: 26px; }
.mock-hero-block {
  height: 130px;
  border-radius: 12px;
  background: var(--grad);
  background-size: 300% 300%;
  animation: gradflow 8s linear infinite;
  margin-bottom: 18px;
  opacity: 0.9;
}
.mock-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-bottom: 12px; }
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.mock-card { height: 70px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }

/* Floating badges */
.hero-float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 100px;
  background: rgba(11,13,26,0.85);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: floaty 5s ease-in-out infinite;
}
.hero-float-badge svg { width: 15px; height: 15px; }
.badge-tls { top: 14%; left: -8%; color: #38bdf8; animation-delay: 0s; }
.badge-tls svg { color: #38bdf8; }
.badge-track { bottom: 18%; left: -5%; color: #34d399; animation-delay: 1.2s; }
.badge-track svg { color: #34d399; }
.badge-rust { bottom: 8%; right: -4%; color: #f59e0b; animation-delay: 0.6s; }
.badge-rust svg { color: #f59e0b; }
.badge-shield { top: -3%; right: -6%; color: #c084fc; animation-delay: 1.8s; }
.badge-shield svg { color: #c084fc; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  #hero { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
}

/* Hero parallax / scale / fade on scroll (driven by --hp) */
.hero-copy {
  transform: translate3d(0, calc(var(--hp,0) * 60px), 0);
  opacity: calc(1 - var(--hp,0) * 0.9);
  will-change: transform, opacity;
}
#hero-visual {
  transform: translate3d(0, calc(var(--hp,0) * -40px), 0) scale(calc(1 - var(--hp,0) * 0.06));
  opacity: calc(1 - var(--hp,0) * 0.8);
  will-change: transform, opacity;
}
.hero-float-badge { translate: 0 calc(var(--hp,0) * 80px); }   /* composes with floaty keyframe */
#stars-canvas { transform: translate3d(0, calc(var(--hp,0) * 50px), 0); }

/* STATS STRIP */
.stats-strip {
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-item .stat-label {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

/* Animated gradient section backgrounds */
.bg-anim { position: relative; }
.bg-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(50% 50% at 90% 80%, rgba(6,182,212,0.08), transparent 60%);
  background-size: 400% 400%;
  animation: meshmove 18s ease infinite;
}
@keyframes meshmove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Spotlight + gradient-border card base */
.gcard {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(124,58,237,0.16),
    transparent 45%
  );
  z-index: 0;
}
.gcard:hover::before { opacity: 1; }
.gcard:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.gcard > * { position: relative; z-index: 1; }

/* FEATURES BENTO */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 65%, var(--accent, #7C3AED), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderspin 5s linear infinite;
  pointer-events: none;
}
@keyframes borderspin {
  to { --border-angle: 360deg; }
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow, rgba(124,58,237,0.16)), transparent 45%);
  z-index: 0;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card:hover::after { opacity: 1; }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }

.fc-violet { --accent: #a855f7; --glow: rgba(168,85,247,0.18); }
.fc-blue   { --accent: #3b82f6; --glow: rgba(59,130,246,0.18); }
.fc-orange { --accent: #f59e0b; --glow: rgba(245,158,11,0.18); }
.fc-cyan   { --accent: #06b6d4; --glow: rgba(6,182,212,0.18); }
.fc-green  { --accent: #22c55e; --glow: rgba(34,197,94,0.18); }
.fc-pink   { --accent: #ec4899; --glow: rgba(236,72,153,0.18); }

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.feature-icon svg { width: 26px; height: 26px; }
.fc-violet .feature-icon { color: #c084fc; background: rgba(168,85,247,0.12); }
.fc-blue .feature-icon { color: #60a5fa; background: rgba(59,130,246,0.12); }
.fc-orange .feature-icon { color: #fbbf24; background: rgba(245,158,11,0.12); }
.fc-cyan .feature-icon { color: #22d3ee; background: rgba(6,182,212,0.12); }
.fc-green .feature-icon { color: #4ade80; background: rgba(34,197,94,0.12); }
.fc-pink .feature-icon { color: #f472b6; background: rgba(236,72,153,0.12); }

.feature-card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.98rem;
}
.fc-note {
  margin-top: auto;
  padding-top: 22px;
}
.fc-note-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
}

@media (max-width: 900px) {
  .features-bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features-bento { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}

/* ARCHITECTURE */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.arch-card { padding: 30px; }
.arch-card .arch-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(124,58,237,0.12);
  color: #c084fc;
  margin-bottom: 18px;
}
.arch-card .arch-icon svg { width: 22px; height: 22px; }
.arch-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.arch-card p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 820px) { .arch-grid { grid-template-columns: 1fr; } }

/* CODE BLOCK */
.code-wrap {
  margin-top: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  background: var(--surface);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.code-head .mock-dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-file { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }
pre.code {
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #c8cde0;
}
.code .kw { color: #c084fc; }
.code .fn { color: #60a5fa; }
.code .str { color: #34d399; }
.code .cm { color: #6b7088; }
.code .ty { color: #fbbf24; }

/* COMPARISON TABLE */
.compare-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
}
table.compare th, table.compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
table.compare thead th {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
}
table.compare thead th.conclave-col {
  background: rgba(124,58,237,0.12);
  color: #c084fc;
}
table.compare td.feat { color: var(--text); font-weight: 600; }
table.compare td { color: var(--text-dim); }
table.compare tbody tr:last-child td { border-bottom: none; }
.yes { color: #4ade80; font-weight: 700; }
.no { color: #f87171; font-weight: 600; }
.partial { color: #fbbf24; font-weight: 600; }
.conclave-cell { background: rgba(124,58,237,0.06); }
@media (max-width: 720px) {
  table.compare { font-size: 0.8rem; }
  table.compare th, table.compare td { padding: 12px 10px; }
}
/* Phones: 5 columns can't fit and the wrapper clips (overflow:hidden), so the last
   column ("Brave") was cut off with no way to scroll to it. Restack each row as a
   labeled card — feature name on top, every browser labeled and visible. */
@media (max-width: 640px) {
  .compare-wrap { border: none; background: transparent; border-radius: 0; overflow: visible; }
  table.compare { font-size: 0.95rem; }
  table.compare thead { display: none; }
  table.compare tbody, table.compare tr, table.compare td { display: block; width: 100%; }
  table.compare tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 18px 14px;
    margin-bottom: 14px;
  }
  table.compare td {
    border: none;
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.98rem;
  }
  table.compare td.feat {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    padding: 16px 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  table.compare td:nth-child(n+2)::before { color: var(--text-dim); font-weight: 600; }
  table.compare td:nth-child(2)::before { content: "Conclave"; color: #a78bfa; }
  table.compare td:nth-child(3)::before { content: "Chrome"; }
  table.compare td:nth-child(4)::before { content: "Edge"; }
  table.compare td:nth-child(5)::before { content: "Brave"; }
  table.compare td.conclave-cell { background: transparent; }
}

/* STATUS / ROADMAP */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.status-card { padding: 30px; }
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.tag-done { background: rgba(34,197,94,0.12); color: #4ade80; }
.tag-progress { background: rgba(245,158,11,0.12); color: #fbbf24; }
.tag-planned { background: rgba(99,102,241,0.12); color: #818cf8; }
.status-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.status-list { list-style: none; }
.status-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 11px;
}
.status-list li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: #818cf8; }
@media (max-width: 820px) { .status-grid { grid-template-columns: 1fr; } }

/* OPEN SOURCE */
.os-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.os-card { padding: 44px; }
.os-card h2 { margin-bottom: 18px; }
.os-card p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 26px; }
.os-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.os-stat .n { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em; }
.os-stat .l { font-size: 0.85rem; color: var(--text-dim); }
@media (max-width: 820px) { .os-grid { grid-template-columns: 1fr; } }

/* DONATE */
.donate-card {
  padding: 60px;
  text-align: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.donate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 20% 0%, rgba(236,72,153,0.18), transparent 60%),
    radial-gradient(50% 80% at 80% 100%, rgba(124,58,237,0.18), transparent 60%);
  background-size: 300% 300%;
  animation: meshmove 16s ease infinite;
  z-index: 0;
}
.donate-card > * { position: relative; z-index: 1; }
.donate-card h2 { margin-bottom: 18px; }
.donate-card p { color: var(--text-dim); font-size: 1.12rem; max-width: 560px; margin: 0 auto 32px; }
.donate-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* DOWNLOAD */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.download-card { display: flex; flex-direction: column; }
.download-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,58,237,0.16), transparent 45%);
  z-index: 0;
}
.download-card:hover::before { opacity: 1; }
.download-card > * { position: relative; z-index: 1; }
.download-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.download-card.primary {
  border-color: rgba(124,58,237,0.45);
  background:
    linear-gradient(180deg, rgba(124,58,237,0.10), transparent 60%),
    var(--surface);
}
.dl-os {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.dl-os svg { width: 30px; height: 30px; }
.dl-os h3 { font-size: 1.3rem; font-weight: 700; }
.download-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 24px; }
.dl-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 16px;
  font-family: var(--mono);
}
.dl-soon {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 9px 18px;
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
}
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.88rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.footer-social a:hover { color: var(--text); border-color: var(--border-bright); background: rgba(255,255,255,0.04); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* Reveal animations */
.reveal {
  --rev-x: 0px; --rev-y: 36px; --rev-s: 1;     /* defaults = current rise */
  opacity: 0;
  transform: translate3d(var(--rev-x), var(--rev-y), 0) scale(var(--rev-s));
  transition:
    opacity .7s cubic-bezier(.16,1,.3,1),
    transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rev-d, 0ms);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }

.reveal.from-left  { --rev-x: -48px; --rev-y: 0; }
.reveal.from-right { --rev-x:  48px; --rev-y: 0; }
.reveal.reveal-pop { --rev-y: 0; --rev-s: .94; }

/* Compare table row cascade */
table.compare tbody tr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i,0) * 60ms);
}
.compare-wrap.in table.compare tbody tr { opacity: 1; transform: none; }

/* Stats count-up settle flourish */
@keyframes settle { 0% { transform: scale(1.08); filter: brightness(1.35); } 100% { transform: none; filter: none; } }
.stat-num.counted, .counted { animation: settle .5s cubic-bezier(.16,1,.3,1); }

/* ============================================================
   SPONSOR TIERS
   ============================================================ */
.sponsor-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: -28px auto 48px;
  padding: 12px 20px;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 99px;
  text-align: center;
}
.sponsor-note svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  text-align: center;
}
.tier-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
}

/* Top metallic accent bar */
.tier-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

/* Tier flag (featured) */
.tier-flag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  color: #0b0d1a;
  background: linear-gradient(135deg, #fff, #cfe0ff);
}

.tier-name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.tier-price {
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.tier-per {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 18px;
}

.tier-perks {
  list-style: none;
  text-align: left;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier-perks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.tier-perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.tier-cta { width: 100%; margin-top: auto; }

/* Metallic palettes per tier */
.tier-platinum .tier-bar { background: linear-gradient(90deg, #e5e4e2, #ffffff, #b8c6db); }
.tier-platinum .tier-name,
.tier-platinum .tier-price {
  background: linear-gradient(135deg, #ffffff, #cdd8ec, #e5e4e2);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tier-platinum:hover { box-shadow: 0 30px 70px -28px rgba(200,214,219,0.5); }

.tier-gold .tier-bar { background: linear-gradient(90deg, #ffd700, #ffb938, #ffa500); }
.tier-gold .tier-name,
.tier-gold .tier-price {
  background: linear-gradient(135deg, #ffe27a, #ffd700, #f0a500);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tier-gold:hover { box-shadow: 0 30px 70px -28px rgba(255,196,0,0.45); }

.tier-silver .tier-bar { background: linear-gradient(90deg, #c0c0c0, #eef0f3, #a8a8a8); }
.tier-silver .tier-name,
.tier-silver .tier-price {
  background: linear-gradient(135deg, #eef0f3, #c0c0c0, #9fa6b2);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tier-silver:hover { box-shadow: 0 30px 70px -28px rgba(192,192,192,0.4); }

.tier-bronze .tier-bar { background: linear-gradient(90deg, #cd7f32, #e8a35c, #a0522d); }
.tier-bronze .tier-name,
.tier-bronze .tier-price {
  background: linear-gradient(135deg, #f0b079, #cd7f32, #a0522d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tier-bronze:hover { box-shadow: 0 30px 70px -28px rgba(205,127,50,0.4); }

.tier-copper .tier-bar { background: linear-gradient(90deg, #b87333, #da8a52, #8b4513); }
.tier-copper .tier-name,
.tier-copper .tier-price {
  background: linear-gradient(135deg, #e0995e, #b87333, #8b4513);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tier-copper:hover { box-shadow: 0 30px 70px -28px rgba(184,115,51,0.4); }

/* Featured Platinum card */
.tier-card.featured {
  border-color: rgba(207,224,255,0.35);
  background: linear-gradient(180deg, rgba(207,224,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 24px 60px -30px rgba(200,214,219,0.45);
}

.sponsor-foot {
  text-align: center;
  margin-top: 40px;
  color: var(--text-mute);
  font-size: 0.92rem;
}
.sponsor-foot a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.sponsor-foot a:hover { color: #fff; }

@media (max-width: 1080px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sponsor-grid { grid-template-columns: 1fr; } .sponsor-note { margin-top: 0; } }

/* ============================================================
   PREMIUM PHOTO BACKGROUNDS (subtle, blurred, duotone, masked)
   ============================================================ */
#hero::after,
#architecture::after,
#sponsor::after,
#download::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35) brightness(0.55) saturate(1.15) blur(2px);
  mix-blend-mode: screen;
}
/* Photo-background parallax (driven by --par on the section) */
#hero::after,
#architecture::after,
#sponsor::after,
#download::after {
  background-position: center calc(50% + var(--par, 0px));
  transform: scale(1.08);          /* baseline so +-120px drift never shows an edge */
  will-change: background-position;
}
#hero::after {
  background-image: url("../assets/photos/dark-wave.jpg");
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(130% 90% at 75% 15%, #000 0%, transparent 72%);
          mask-image: radial-gradient(130% 90% at 75% 15%, #000 0%, transparent 72%);
}
#architecture::after {
  background-image: url("../assets/photos/circuit.jpg");
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 60%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 30% 60%, #000 0%, transparent 70%);
}
#sponsor::after {
  background-image: url("../assets/photos/abstract-glow.jpg");
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
}
#download::after {
  background-image: url("../assets/photos/abstract-glow.jpg");
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 100% at 50% 100%, #000 0%, transparent 72%);
}
/* keep content above the photo layer */
#hero > .container,
#architecture > .container,
#sponsor > .container,
#download > .container { position: relative; z-index: 2; }

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
/* Button press + primary sheen */
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(120%); }

/* Magnetic primary buttons (offset lerped from JS) */
.btn { --mx: 0px; --my: 0px; }
.btn--primary { transform: translate(var(--mx), var(--my)); }
.btn--primary:hover { transform: translate(var(--mx), var(--my)) translateY(-2px); }

/* Nav-link underline + scroll-spy */
.nav-links a.lnk { position: relative; }
.nav-links a.lnk::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .25s ease;
}
.nav-links a.lnk:hover::after,
.nav-links a.lnk.active::after { transform: scaleX(1); }
.nav-links a.lnk.active { color: var(--text); }

/* Icon micro-kick on card hover */
.feature-card:hover .feature-icon,
.arch-card:hover .arch-icon {
  transform: translateY(-3px) rotate(-4deg);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

/* Compare row hover (keeps the violet column emphasis) */
table.compare tbody tr:hover td { background: rgba(255,255,255,.03); }
table.compare tbody tr:hover td.conclave-cell { background: rgba(124,58,237,.10); }

/* Cursor-glow intensifies over interactive elements */
.cursor-glow.hot { background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, transparent 65%); }

/* Tier CTA focus pull */
.tier-card:hover .tier-cta { box-shadow: 0 10px 30px rgba(124,58,237,.4); }

/* Code-block copy button */
.code-head { position: relative; }
.code-copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.code-copy:hover { color: var(--text); border-color: var(--border-bright); background: rgba(255,255,255,0.08); }
.code-copy.ok { color: #4ade80; border-color: rgba(34,197,94,0.4); }

/* ============================================================
   AMBIENT EFFECTS (pure CSS, GPU; auto-paused under reduced motion)
   ============================================================ */
@keyframes glowpulse {
  0%,100% { opacity:.85; filter: blur(50px); }
  50%     { opacity:1;   filter: blur(60px); }
}
.hero-visual-glow { animation: glowpulse 9s ease-in-out infinite; }

@keyframes breathe {
  0%,100% { box-shadow: 0 4px 16px rgba(124,58,237,.45); }
  50%     { box-shadow: 0 4px 26px rgba(124,58,237,.70); }
}
.brand-mark { animation: breathe 6s ease-in-out infinite; }

/* Scroll-reactive divider on the stats strip */
.stats-strip { overflow: hidden; }
.stats-strip::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.6), rgba(56,189,248,.6), transparent);
  background-size: 200% 100%;
  background-position: calc(var(--sp,0) * 100%) 0;
}

/* Section hairline draw-in dividers (skip hero) */
#features::before, #architecture::before, #compare::before,
#status::before, #opensource::before, #sponsor::before, #download::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 0; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}
.divider-in::before { width: min(680px, 80%); }

/* Tech credibility marquee */
.tech-ticker {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tech-ticker .track {
  display: inline-flex; gap: 36px; white-space: nowrap;
  font-family: var(--mono); font-size: .78rem; color: var(--text-faint);
  opacity: .6; padding: 10px 0;
  animation: marquee 40s linear infinite;
}
.tech-ticker:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ORBITAL FEATURES (network of nodes around a central hub)
   ============================================================ */
.orbital {
  position: relative;
  width: min(840px, 92vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
/* tighten the features chapter so the network sits closer to the text */
#features { padding-top: 96px; padding-bottom: 96px; }
#features .section-head { margin-bottom: 28px; }
.orbital-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.oline {
  stroke: rgba(255,255,255,0.13);
  stroke-width: 0.35;
  stroke-dasharray: 1.6 2.6;
  animation: olineflow 2.6s linear infinite;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease;
}
@keyframes olineflow { to { stroke-dashoffset: -21; } }
.oline.lit {
  stroke: var(--c, #fff);
  stroke-width: 0.7;
  filter: drop-shadow(0 0 2px var(--c));
}

.orbital-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.07);
  z-index: 0;
  animation: orbspin 70s linear infinite;
}
@keyframes orbspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* center hub */
.orbital-hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  z-index: 3;
  background: radial-gradient(circle at 50% 38%, rgba(124,58,237,0.20), rgba(8,10,18,0.92) 70%);
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 70px rgba(124,58,237,0.22), inset 0 0 50px rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.orbital-hub::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--hubc, rgba(124,58,237,0.45));
  opacity: 0.6;
  animation: hubpulse 3.2s ease-in-out infinite;
  transition: border-color 0.4s ease;
}
@keyframes hubpulse { 0%,100% { transform: scale(1); opacity: 0.45; } 50% { transform: scale(1.05); opacity: 0.85; } }

.hub-default, .hub-detail {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hub-default img { border-radius: 13px; box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.hub-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 4px; }
.hub-hint { font-size: 0.78rem; color: var(--text-dim); max-width: 80%; }

.hub-detail { opacity: 0; transform: scale(0.94); pointer-events: none; padding: 0 4px; }
.hub-detail-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hubc, #fff);
}
.hub-detail-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hub-detail-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }

.orbital.detail-on .hub-default { opacity: 0; transform: scale(0.94); }
.orbital.detail-on .hub-detail  { opacity: 1; transform: scale(1); }

/* nodes */
.orbital-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 94px; height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--c);
  background: rgba(12,15,28,0.86);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  animation: nodefloat 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.8s);
}
.orbital-node svg { width: 34px; height: 34px; }
.orbital-node .node-label {
  position: absolute;
  bottom: -27px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 1; /* always visible; full detail appears in the hub on hover */
  transition: color 0.3s ease;
  pointer-events: none;
}
@keyframes nodefloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.orbital-node .node-desc { display: none; } /* desktop: detail lives in the hub */

.orbital-node::after { /* glow halo */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
}
.orbital-node:hover,
.orbital-node:focus-visible,
.orbital-node.active {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, rgba(12,15,28,0.92));
  box-shadow: 0 0 30px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 32px rgba(0,0,0,0.5);
  outline: none;
  animation-play-state: paused;
}
.orbital-node:hover .node-label,
.orbital-node:focus-visible .node-label,
.orbital-node.active .node-label { color: var(--text); }
.orbital-node.active { z-index: 4; }

/* responsive: shrink nodes, then fall back to a clean vertical list on phones */
@media (max-width: 720px) {
  .orbital { width: min(440px, 96vw); }
  .orbital-node { width: 60px; height: 60px; }
  .orbital-node svg { width: 22px; height: 22px; }
  .hub-detail-desc { font-size: 0.76rem; }
  .hub-hint { font-size: 0.72rem; }
}
@media (max-width: 560px) {
  /* orbital geometry is too tight on phones: switch to a readable stacked list */
  .orbital { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; gap: 12px; }
  .orbital-lines, .orbital-ring, .orbital-hub { display: none; }
  .orbital-node {
    position: static;
    transform: none;
    width: 100%; height: auto;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    text-align: left;
    padding: 18px 18px;
    animation: none;
    background: var(--surface);
    border-color: var(--border);
  }
  .orbital-node svg { width: 24px; height: 24px; }
  .orbital-node::after { display: none; }
  .orbital-node .node-label {
    position: static;
    opacity: 1;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
  }
  /* show description inline on mobile via the data-desc -> handled in JS by injecting .node-desc */
  .orbital-node .node-desc {
    display: block;
    grid-column: 2;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-copy, #hero-visual, #stars-canvas,
  .hero-float-badge,
  #hero::after, #architecture::after, #sponsor::after, #download::after {
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
  }
  #scroll-progress { transform: scaleX(var(--sp,0)) !important; } /* progress still allowed */
  table.compare tbody tr { opacity: 1 !important; transform: none !important; }
  .orbital-node { animation: none !important; }
}
