:root, [data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --surface2: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-dim: #9ca3af;
  --accent: #0066ff;
  --accent-light: rgba(0,102,255,0.08);
  --accent-medium: rgba(0,102,255,0.12);
  --green: #059669;
  --green-bg: rgba(5,150,105,0.08);
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.06);
  --yellow: #d97706;
  --yellow-bg: rgba(217,119,6,0.08);
  --purple: #7c3aed;
  --purple-bg: rgba(124,58,237,0.08);
  --orange: #ea580c;
  --cyan: #0066ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  --nav-bg: rgba(255,255,255,0.92);
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --surface-hover: #334155;
  --surface2: #334155;
  --border: #334155;
  --border-light: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-light: rgba(59,130,246,0.15);
  --accent-medium: rgba(59,130,246,0.2);
  --green: #10b981;
  --green-bg: rgba(16,185,129,0.15);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.12);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245,158,11,0.12);
  --purple: #8b5cf6;
  --purple-bg: rgba(139,92,246,0.15);
  --orange: #f97316;
  --cyan: #3b82f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --nav-bg: rgba(15,23,42,0.92);
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --card-bg: #1e293b;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ─── Animated Background ─────────────────────────── */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,246,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,246,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,246,255,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ─── Nav ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a,
.nav-link-plain {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
}

.nav-links a:hover,
.nav-link-plain:hover { color: var(--cyan); background: rgba(0,246,255,0.05); }

/* ─── CTA button ──────────────────────────────────────────────────────── */
.nav-cta {
  background: rgba(0,246,255,0.1) !important;
  color: var(--cyan) !important;
  border: 1px solid rgba(0,246,255,0.3);
  padding: 0.45rem 1.15rem !important;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.83rem !important;
  transition: all 0.2s;
  margin-left: 0.25rem;
}

.nav-cta:hover {
  background: rgba(0,246,255,0.2) !important;
  border-color: var(--cyan) !important;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
#theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

/* Hero with photorealistic brand background image + readability overlay.
   Light mode: light overlay, dark text. Dark mode: dark overlay, light text. */
.hero-bg-image {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.96) 100%),
    var(--hero-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero-bg-image h1,
.hero-bg-image p:not(.subtitle),
.hero-bg-image .accent {
  color: var(--text);
}
.hero-bg-image h1 .accent { color: var(--cyan); }

[data-theme="dark"] .hero-bg-image {
  background-image:
    linear-gradient(180deg, rgba(6,6,16,0.82) 0%, rgba(6,6,16,0.72) 40%, rgba(6,6,16,0.9) 100%),
    var(--hero-bg-url);
}
[data-theme="dark"] .hero-bg-image h1,
[data-theme="dark"] .hero-bg-image p:not(.subtitle),
[data-theme="dark"] .hero-bg-image .accent {
  color: #f5f7ff;
}
[data-theme="dark"] .hero-bg-image h1 .accent { color: var(--cyan); }

/* Product showcase image break */
.showcase-image-wrap {
  display: flex;
  justify-content: center;
  margin: 2.5rem auto;
  max-width: 280px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.showcase-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
}

/* ─── Scanner campaign gallery (2x2) ─── */
.scanner-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.scanner-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.scanner-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(0,246,255,0.15);
}
.scanner-gallery-item img {
  width: 100%;
  height: auto;
  object-position: top;
  display: block;
}
@media (max-width: 768px) {
  .scanner-gallery-grid { grid-template-columns: 1fr; }
}

/* ─── What Thuban Does: two-column layout ─── */
.what-thuban-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.what-thuban-left { position: sticky; top: 6rem; }
.what-thuban-left .showcase-image-wrap { margin: 2rem 0 0; }
.what-thuban-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .what-thuban-grid { grid-template-columns: 1fr; }
  .what-thuban-left { position: static; }
}

/* ─── What Thuban Does: 6-card responsive grid ─── */
.what-thuban-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1050px) {
  .what-thuban-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .what-thuban-grid-6 { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 .accent { color: var(--cyan); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #33f8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,246,255,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ─── Terminal Demo ───────────────────────────────── */
.terminal {
  width: 100%;
  max-width: 720px;
  background: #0d0d1f;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(26,26,62,0.5);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 280px;
}

.terminal-body .prompt { color: var(--green); }
.terminal-body .command { color: var(--text); }
.terminal-body .output { color: var(--text-dim); }
.terminal-body .highlight { color: var(--cyan); }
.terminal-body .warn { color: var(--yellow); }
.terminal-body .error { color: var(--red); }
.terminal-body .success { color: var(--green); }

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── Features Grid ───────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section .subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,246,255,0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,246,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(168,85,247,0.15);
  color: var(--purple);
  font-size: 0.7rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ─── Social Proof / Stats ─────────────────────────── */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.proof-stat {
  text-align: center;
}

.proof-stat .proof-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--cyan);
}

.proof-stat .proof-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .social-proof { flex-direction: column; gap: 1rem; }
}

/* ─── Shield Banner ────────────────────────────────── */
.shield-banner-section {
  max-width: 100%;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 2.5rem;
}

.shield-banner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,246,255,0.3);
  box-shadow: 0 0 40px rgba(0,246,255,0.15), 0 8px 30px rgba(124,58,237,0.1);
  background-color: #0a0e1a;
  background-image:
    linear-gradient(rgba(0,246,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,246,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.shield-banner-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 15px rgba(0,246,255,0.9)) drop-shadow(0 0 30px rgba(0,246,255,0.6));
}

.shield-banner-logo svg {
  width: 100%;
  height: 100%;
}

.shield-banner-text {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.shield-banner-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f7ff;
  margin-bottom: 0.3rem;
}

.shield-banner-subtitle {
  font-size: 0.85rem;
  color: #00f6ff;
  letter-spacing: 0.01em;
}

.shield-banner-icons {
  flex: 0 0 auto;
  display: flex;
  gap: 1.5rem;
}

.shield-banner-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 60px;
  text-decoration: none;
  cursor: pointer;
}

.shield-banner-icon:hover .icon-glyph,
.shield-banner-icon:focus-visible .icon-glyph {
  transform: scale(1.28) !important;
}

.shield-banner-icon.icon-protect:hover .icon-glyph,
.shield-banner-icon.icon-protect:focus-visible .icon-glyph {
  box-shadow: 0 0 26px #ff2020, 0 0 55px #ff2020, 0 0 90px rgba(255,32,32,0.9) !important;
  filter: drop-shadow(0 0 26px #ff2020) drop-shadow(0 0 55px #ff2020) drop-shadow(0 0 80px rgba(255,32,32,1)) !important;
}

.shield-banner-icon.icon-prove:hover .icon-glyph,
.shield-banner-icon.icon-prove:focus-visible .icon-glyph {
  box-shadow: 0 0 26px #c855ff, 0 0 55px #c855ff, 0 0 90px rgba(200,85,255,0.9) !important;
  filter: drop-shadow(0 0 26px #c855ff) drop-shadow(0 0 55px #c855ff) drop-shadow(0 0 80px rgba(200,85,255,1)) !important;
}

.shield-banner-icon.icon-find:hover .icon-glyph,
.shield-banner-icon.icon-find:focus-visible .icon-glyph {
  box-shadow: 0 0 26px #00ffff, 0 0 55px #00ffff, 0 0 90px rgba(0,255,255,0.9) !important;
  filter: drop-shadow(0 0 26px #00ffff) drop-shadow(0 0 55px #00ffff) drop-shadow(0 0 80px rgba(0,255,255,1)) !important;
}

.shield-banner-icon:hover span,
.shield-banner-icon:focus-visible span {
  text-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}

.shield-banner-icon span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b8bfd1;
  text-transform: uppercase;
}

.shield-banner-icon .icon-glyph {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  will-change: transform, box-shadow, filter;
  animation-duration: 3.6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.shield-banner-icon span {
  transition: text-shadow 0.2s ease-in-out;
}

@keyframes shield-glow-red {
  0%, 22%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255,32,32,0.4);
    filter: drop-shadow(0 0 6px rgba(255,32,32,0.7));
  }
  11% {
    transform: scale(1.2);
    box-shadow: 0 0 20px #ff2020, 0 0 45px #ff2020, 0 0 80px rgba(255,32,32,0.8);
    filter: drop-shadow(0 0 20px #ff2020) drop-shadow(0 0 45px #ff2020) drop-shadow(0 0 70px rgba(255,32,32,0.9));
  }
}

@keyframes shield-glow-purple {
  0%, 22%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(200,85,255,0.4);
    filter: drop-shadow(0 0 6px rgba(200,85,255,0.7));
  }
  11% {
    transform: scale(1.2);
    box-shadow: 0 0 20px #c855ff, 0 0 45px #c855ff, 0 0 80px rgba(200,85,255,0.8);
    filter: drop-shadow(0 0 20px #c855ff) drop-shadow(0 0 45px #c855ff) drop-shadow(0 0 70px rgba(200,85,255,0.9));
  }
}

@keyframes shield-glow-cyan {
  0%, 22%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(0,255,255,0.4);
    filter: drop-shadow(0 0 6px rgba(0,255,255,0.7));
  }
  11% {
    transform: scale(1.2);
    box-shadow: 0 0 20px #00ffff, 0 0 45px #00ffff, 0 0 80px rgba(0,255,255,0.8);
    filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 45px #00ffff) drop-shadow(0 0 70px rgba(0,255,255,0.9));
  }
}

@keyframes shield-glow-red-text {
  0%, 22%, 100% { text-shadow: 0 0 4px rgba(255,32,32,0.6); color: #ff2020; }
  11% { text-shadow: 0 0 10px #ff2020, 0 0 20px #ff2020, 0 0 34px rgba(255,32,32,0.8); color: #ff2020; }
}

@keyframes shield-glow-purple-text {
  0%, 22%, 100% { text-shadow: 0 0 4px rgba(200,85,255,0.6); color: #c855ff; }
  11% { text-shadow: 0 0 10px #c855ff, 0 0 20px #c855ff, 0 0 34px rgba(200,85,255,0.8); color: #c855ff; }
}

@keyframes shield-glow-cyan-text {
  0%, 22%, 100% { text-shadow: 0 0 4px rgba(0,255,255,0.6); color: #00ffff; }
  11% { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 34px rgba(0,255,255,0.8); color: #00ffff; }
}

.icon-protect span {
  animation: shield-glow-red-text 3.6s ease-in-out infinite;
  animation-delay: 0s;
}

.icon-prove span {
  animation: shield-glow-purple-text 3.6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.icon-find span {
  animation: shield-glow-cyan-text 3.6s ease-in-out infinite;
  animation-delay: 1.6s;
}

.icon-protect .icon-glyph {
  animation-name: shield-glow-red;
  animation-delay: 0s;
}

.icon-prove .icon-glyph {
  animation-name: shield-glow-purple;
  animation-delay: 0.8s;
}

.icon-find .icon-glyph {
  animation-name: shield-glow-cyan;
  animation-delay: 1.6s;
}

@media (max-width: 768px) {
  .shield-banner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    text-align: center;
  }
  .shield-banner-icons {
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield-banner-icon .icon-glyph,
  .shield-banner-icon span {
    animation: none;
  }
}

/* ─── Reusable Thuban Product Icons (Shield / Scan / Crucible) ───────── */
/* Canonical SVG icons + glow animation reused site-wide. Apply the base
   class plus a size modifier to any wrapper containing the matching SVG. */
.thuban-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  will-change: transform, box-shadow, filter;
  animation-duration: 3.6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  flex-shrink: 0;
}

.thuban-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Size modifiers */
.thuban-icon-sm { width: 28px; height: 28px; }
.thuban-icon-md { width: 44px; height: 44px; }
.thuban-icon-lg { width: 64px; height: 64px; }
.thuban-icon-xl { width: 88px; height: 88px; }

/* Color/product bindings — reuse the banner's glow keyframes */
.thuban-icon-shield {
  animation-name: shield-glow-red;
}

.thuban-icon-scan {
  animation-name: shield-glow-cyan;
}

.thuban-icon-crucible {
  animation-name: shield-glow-purple;
}

/* Sequential stagger when all three appear together — apply alongside
   the base classes above, e.g. class="thuban-icon thuban-icon-shield thuban-icon-md thuban-icon-seq-1" */
.thuban-icon-seq-1 { animation-delay: 0s; }
.thuban-icon-seq-2 { animation-delay: 0.8s; }
.thuban-icon-seq-3 { animation-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .thuban-icon {
    animation: none;
  }
}

/* ─── Comparison / Containment Table ──────────────── */
.comparison-table-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--cyan);
  font-weight: 600;
  color: var(--text);
}

.comparison-table th:first-child {
  color: var(--text-dim);
}

.comparison-table th.thuban-col {
  color: var(--cyan);
  background: rgba(0,246,255,0.05);
}

.comparison-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.comparison-table td.thuban-col {
  background: rgba(0,246,255,0.03);
}

.comparison-table .check { color: var(--green); font-weight: 700; font-size: 1.1rem; }
.comparison-table .cross { color: var(--red); font-size: 1.1rem; }
.comparison-table .partial { color: var(--yellow); font-size: 0.85rem; }
.comparison-table .empty-col { color: var(--text-dim); font-size: 1.1rem; opacity: 0.4; }

.comparison-table tbody tr:hover {
  background: rgba(0,246,255,0.03);
}

/* ─── Stats Row ─── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ─── Grid Helpers ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ─── Hero Command Cards ─── */
.command-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: all 0.2s;
}
.command-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.command-card code {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  background: var(--code-bg);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  word-break: break-all;
}
.command-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

/* ─── Blog Section ─── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.blog-card .blog-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── FAQ ─── */
.faq-grid {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.faq-a {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-a code {
  background: rgba(0,246,255,.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.85rem;
}

/* ─── CTA Section ─────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-install {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 2rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-install:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,246,255,0.1);
}

/* ─── Footer ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

footer .footer-left span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer .footer-right {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--cyan); }

/* ─── Hamburger Menu ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.15rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.nav-open { display: flex; }

  .nav-links a { font-size: 1rem; padding: 0.6rem 0.75rem; }
  .nav-cta { margin-left: 0; font-size: 1rem !important; padding: 0.6rem 1rem !important; margin-top: 0.5rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; }
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s ease-out 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; }

/* ─── Scroll Animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Chat Widget ─── */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: var(--code-text);
  font-family: var(--font);
}
.chat-panel.open { display: flex; }
.chat-panel-header {
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}
.chat-panel-header button {
  background: none;
  border: none;
  color: var(--code-text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}
.chat-panel-header button:hover { opacity: 1; }
.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.chat-panel-body .chat-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.chat-panel-body .chat-msg code {
  font-family: var(--mono);
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}
.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chat-quick-actions button {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.chat-quick-actions button:hover { background: rgba(124,58,237,0.25); }
.chat-panel-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-panel-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--code-text);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
}
.chat-panel-input input::placeholder { color: rgba(255,255,255,0.3); }
.chat-panel-input button {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.chat-panel-input button:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
}

/* ─── Pricing ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.price-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.price-card.popular {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,246,255,0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg);
  padding: 0.2rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.25rem;
  font-family: var(--mono);
}

.price-amount .currency { font-size: 1.2rem; vertical-align: top; color: var(--text-dim); }
.price-amount .period { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }

.price-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.price-annual-note {
  transition: opacity 0.3s;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.price-features li.has-thuban-icon::before {
  content: none;
}

.price-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.price-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.price-card.popular .price-btn {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}

.price-card.popular .price-btn:hover {
  background: #33f8ff;
}

/* ─── Why So Cheap (condensed honesty line) ─── */
.why-cheap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ─── Live Interception: animated terminal demos ─── */
.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.term-window {
  background: #0d0d1f;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.term-window:hover {
  border-color: rgba(255, 68, 68, 0.55);
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.25);
}
.term-window.term-flash {
  border-color: #ff4444;
  box-shadow: 0 0 0 1px rgba(255, 68, 68, 0.5), 0 0 22px rgba(255, 68, 68, 0.45);
}
.term-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 68, 68, 0.2);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot-red { background: #ff5f57; }
.term-dot-yellow { background: #febc2e; }
.term-dot-green { background: #28c840; }
.term-titletext {
  flex: 1;
  text-align: center;
  color: #888;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  margin-right: 20px;
  user-select: none;
}
.term-replay {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.term-replay:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
}
.term-body {
  position: relative;
  padding: 1rem 1.1rem;
  min-height: 210px;
  font-size: 0.78rem;
  line-height: 1.7;
}
.term-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
.term-lines {
  position: relative;
  word-break: break-word;
}
.term-line {
  min-height: 1.6em;
}
.term-cmd {
  color: #3ddc84;
}
.term-text.term-dim { color: #888; }
.term-text.term-agent { color: #e2e2e2; }
.term-text.term-flagged { color: #f5b642; }
.term-text.term-blocked { color: #ff4444; font-weight: 700; }
.term-progress-bar {
  display: inline-block;
  width: 90px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  vertical-align: middle;
  margin: 0 2px;
}
.term-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f6ff, #3ddc84);
  transition: width 0.9s linear;
}
.term-progress-label { font-size: 0.75rem; }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #3ddc84;
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: term-blink 1s step-end infinite;
}
@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (max-width: 900px) {
  .term-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Landing page additions — live metrics bar, ticker, pricing preview
   ═══════════════════════════════════════════════════════════ */

/* ─── Live Metrics Bar ────────────────────────────────────── */
.metrics-bar {
  max-width: 100%;
  padding: 3rem 2rem 0;
  background: linear-gradient(180deg, rgba(0,246,255,0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.metrics-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.metrics-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.75rem;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.metric-item { text-align: center; }
.metric-number {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0,246,255,0.35);
  animation: metricGlow 3.2s ease-in-out infinite;
  transition: text-shadow 0.3s;
}
.metric-number.metric-pulse {
  text-shadow: 0 0 28px rgba(0,246,255,0.85), 0 0 46px rgba(0,246,255,0.5);
}
@keyframes metricGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(0,246,255,0.3); }
  50% { text-shadow: 0 0 22px rgba(0,246,255,0.55); }
}
.metric-label-sm {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ─── Scrolling ticker (marquee) ──────────────────────────── */
.ticker-wrap {
  margin-top: 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ticker-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(16,185,129,0.9);
  flex-shrink: 0;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .metric-number { animation: none; }
}

/* ─── Pricing preview row ─────────────────────────────────── */
.pricing-preview-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.pricing-preview-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-preview-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.pricing-preview-popular {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,246,255,0.15);
}
.pricing-preview-badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-preview-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.pricing-preview-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-preview-price span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .pricing-preview-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pricing-preview-row { grid-template-columns: 1fr; }
}

/* ─── Premium Prize Cards (Roast My Code competition) ─── */
.prize-cards-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
@media (max-width: 640px) {
  .prize-cards-row { grid-template-columns: 1fr; }
}
/* Ambient particle field behind the prize cards */
.prize-cards-row::before {
  content: '';
  position: absolute;
  inset: -40px -20px;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(52,232,160,0.10) 0%, transparent 6%),
    radial-gradient(circle at 85% 15%, rgba(255,205,107,0.10) 0%, transparent 6%),
    radial-gradient(circle at 30% 80%, rgba(0,246,255,0.08) 0%, transparent 5%),
    radial-gradient(circle at 70% 85%, rgba(52,232,160,0.08) 0%, transparent 5%),
    radial-gradient(circle at 50% 50%, rgba(255,205,107,0.06) 0%, transparent 5%);
  animation: particle-drift 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes particle-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-14px) scale(1.08); opacity: 1; }
}
.prize-card-pro {
  position: relative;
  background: linear-gradient(180deg, #10162a 0%, #0A0E1A 100%);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prize-card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 65%);
  pointer-events: none;
}
/* Animated rotating gradient border */
.prize-card-pro::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--border-angle, 0deg), var(--card-c1), var(--card-c2), var(--card-c3), var(--card-c2), var(--card-c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-spin 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes border-spin {
  to { --border-angle: 360deg; }
}
.prize-card-pro.tier-grand {
  --card-c1: rgba(16,185,129,0.9);
  --card-c2: rgba(52,232,160,0.35);
  --card-c3: rgba(0,246,255,0.5);
  box-shadow: 0 0 30px rgba(16,185,129,0.18), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: prize-card-pulse-green 3.4s ease-in-out infinite;
}
.prize-card-pro.tier-grand:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 0 60px rgba(16,185,129,0.5), 0 16px 55px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.prize-card-pro.tier-monthly {
  --card-c1: rgba(245,158,11,0.9);
  --card-c2: rgba(255,205,107,0.35);
  --card-c3: rgba(255,255,255,0.4);
  box-shadow: 0 0 30px rgba(245,158,11,0.18), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: prize-card-pulse-gold 3.4s ease-in-out infinite;
}
.prize-card-pro.tier-monthly:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 0 60px rgba(245,158,11,0.5), 0 16px 55px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
@keyframes prize-card-pulse-green {
  0%, 100% { box-shadow: 0 0 30px rgba(16,185,129,0.18), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 45px rgba(16,185,129,0.32), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); }
}
@keyframes prize-card-pulse-gold {
  0%, 100% { box-shadow: 0 0 30px rgba(245,158,11,0.18), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 45px rgba(245,158,11,0.32), 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); }
}
/* Shimmer sweep across the card face */
.prize-card-pro .prize-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.prize-card-pro .prize-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.16) 45%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.16) 55%, transparent 100%);
  transform: rotate(8deg);
  animation: prize-shimmer-sweep 3.2s ease-in-out infinite;
}
.prize-card-pro.tier-monthly .prize-shimmer::before { animation-delay: 1.1s; }
@keyframes prize-shimmer-sweep {
  0% { left: -60%; }
  55%, 100% { left: 140%; }
}
/* LIVE badge */
.prize-live-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 100px;
  background: rgba(255,32,32,0.14);
  border: 1px solid rgba(255,68,68,0.5);
  color: #ff6b6b;
}
.prize-live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255,68,68,0.9);
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}
.prize-card-trophy {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 0 14px rgba(255,215,110,0.65));
  animation: trophy-bounce 2.8s ease-in-out infinite;
}
@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
/* Sparkle particles around the trophy */
.trophy-sparkle-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 0.85rem;
}
.trophy-sparkle-wrap .prize-card-trophy { margin: 0; }
.trophy-sparkle-wrap .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 6px 1px rgba(255,243,196,0.9);
  animation: spark-twinkle 1.8s ease-in-out infinite;
}
.trophy-sparkle-wrap .spark:nth-child(2) { top: -2px; left: 4px; animation-delay: 0s; }
.trophy-sparkle-wrap .spark:nth-child(3) { top: 10px; right: -6px; animation-delay: 0.4s; }
.trophy-sparkle-wrap .spark:nth-child(4) { bottom: 2px; left: -6px; animation-delay: 0.9s; }
.trophy-sparkle-wrap .spark:nth-child(5) { bottom: -4px; right: 8px; animation-delay: 1.3s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.3); }
}
.prize-card-amount {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.prize-card-pro.tier-grand .prize-card-amount {
  color: #34e8a0;
  animation: prize-glow-green 2.6s ease-in-out infinite;
}
.prize-card-pro.tier-monthly .prize-card-amount {
  color: #ffcd6b;
  animation: prize-glow-gold 2.6s ease-in-out infinite;
}
@keyframes prize-glow-green {
  0%, 100% { text-shadow: 0 0 12px rgba(52,232,160,0.5), 0 0 26px rgba(52,232,160,0.25); }
  50% { text-shadow: 0 0 26px rgba(52,232,160,0.95), 0 0 55px rgba(52,232,160,0.55); }
}
@keyframes prize-glow-gold {
  0%, 100% { text-shadow: 0 0 12px rgba(255,205,107,0.5), 0 0 26px rgba(255,205,107,0.25); }
  50% { text-shadow: 0 0 26px rgba(255,205,107,0.95), 0 0 55px rgba(255,205,107,0.55); }
}
.prize-card-tier-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.prize-card-pro.tier-grand .prize-card-tier-label { color: #34e8a0; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); }
.prize-card-pro.tier-monthly .prize-card-tier-label { color: #ffcd6b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35); }
.prize-card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: #8b93ad;
  margin-top: 0.6rem;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .prize-card-pro, .prize-card-pro::after, .prize-card-amount, .prize-card-trophy,
  .prize-live-badge .dot, .trophy-sparkle-wrap .spark, .prize-cards-row::before,
  .prize-card-pro .prize-shimmer::before { animation: none !important; }
}
