/* ============================================================
   STELLAR ENGAGE — Enterprise Design System
   Dark, bold, AWS/Palantir-grade visual language
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:      #0b1120;
  --bg-surface:   #0e1628;
  --bg-card:      #131c2e;
  --bg-card-hover:#172035;
  --bg-input:     #111829;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-mid:    rgba(255,255,255,0.10);
  --border-accent: rgba(99,102,241,0.35);

  /* Brand accents */
  --blue:   #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --green:  #10b981;
  --amber:  #f59e0b;
  --red:    #ef4444;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --grad-hero:     radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.3) 0%, transparent 60%);
  --grad-glow-blue: 0 0 40px rgba(59,130,246,0.18);

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #4b6080;

  /* Spacing & radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Nav height */
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

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

/* ── Particle Canvas ─────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}
/* Raise page content above the canvas without touching the nav's stacking context */
.hero, .page-hero, .badge-strip, .section, .section-sm, footer.footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #93c5fd; }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.75; }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-purple { color: var(--purple); }

/* ── Layout helpers ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .22s ease;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--indigo);
  color: var(--text-primary);
  background: rgba(99,102,241,0.08);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 10px 0;
}
.btn-ghost:hover { color: #93c5fd; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(7, 11, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .3s;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.97);
  border-bottom-color: var(--border-mid);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 80px;
  width: auto;
  /* Soft radial fade to blend into dark nav background */
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, black 52%, rgba(0,0,0,0.85) 68%, transparent 88%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, black 52%, rgba(0,0,0,0.85) 68%, transparent 88%);
}
.nav-links {
  display: flex;
  align-items: center;
  align-self: stretch;   /* fill the full 84px nav height */
  height: 100%;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  display: block;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  align-self: stretch;   /* li fills full 84px nav height — no dead zone */
  display: flex;
  align-items: center;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;             /* flush at bottom of nav bar */
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 270px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
  z-index: 9999;
}
/* CSS hover — works reliably now that nav has correct stacking context */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .15s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: var(--radius-md);
  color: #c4b5fd;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.nav-demo-badge:hover {
  background: rgba(124,58,237,0.28);
  color: #ddd6fe;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all .2s;
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-card);
    padding: 16px;
    border-bottom: 1px solid var(--border-mid);
    gap: 4px;
  }
  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-h) + 200px);
    left: 0; right: 0;
    background: var(--bg-card);
    padding: 16px;
    border-bottom: 1px solid var(--border-mid);
  }
  .nav-dropdown:hover .dropdown-menu { display: none; } /* disable hover on mobile */
  .nav-dropdown.is-open .dropdown-menu { display: block; position: static; transform: none; box-shadow: none; background: var(--bg-base); margin-top: 4px; border: none; width: 100%; }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s ease;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--grad-glow-blue);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Pillar cards */
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.pillar-card.blue::before   { background: var(--blue); }
.pillar-card.green::before  { background: var(--green); }
.pillar-card.amber::before  { background: var(--amber); }
.pillar-card.purple::before { background: var(--purple); }
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.pillar-card h3 { margin-bottom: 12px; }
.pillar-card p  { font-size: 0.9rem; }
.pillar-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 20px;
}

/* Stat cards */
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* Feature list */
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Section labels ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 20px;
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--grad-hero),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 { margin-bottom: 24px; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--text-secondary); }

/* ── AWS badge strip ──────────────────────────────────────── */
.badge-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.badge-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.aws-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aws-badge .aws-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff9900;
  letter-spacing: -0.03em;
}
.service-tag {
  padding: 6px 14px;
  background: rgba(255,153,0,0.08);
  border: 1px solid rgba(255,153,0,0.18);
  border-radius: 100px;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Dashboard preview ────────────────────────────────────── */
.dashboard-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}
.dashboard-frame img {
  width: 100%;
  display: block;
}
.dashboard-frame-bar {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #10b981; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all .25s;
}
.pricing-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), 0 20px 60px rgba(99,102,241,0.2);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}
.price-currency { font-size: 1.5rem; vertical-align: top; margin-top: 6px; display: inline-block; }
.price-period { font-size: 0.85rem; color: var(--text-muted); }

/* ── Form styles ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; }
.breadcrumb span { color: var(--text-muted); font-size: 0.82rem; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-blue   { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.2);  color: #93c5fd; }
.tag-green  { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.2);  color: #6ee7b7; }
.tag-amber  { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.2);  color: #fcd34d; }
.tag-purple { background: rgba(139,92,246,0.1);  border: 1px solid rgba(139,92,246,0.2);  color: #c4b5fd; }
.tag-red    { background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.2);   color: #fca5a5; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Demo portal ──────────────────────────────────────────── */
.demo-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.demo-gate-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.demo-gate-box {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  text-align: center;
}
.demo-lock-icon {
  width: 64px;
  height: 64px;
  background: rgba(124,58,237,0.15);
  b