@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --bg-deep: #070b14;
  --bg-base: #0a101d;
  --bg-surface: #0d1322;
  --bg-surface-elevated: #131c31;
  --bg-hover: #192540;
  --bg-glass: rgba(13, 19, 34, 0.84);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --border-highlight: rgba(16, 185, 129, 0.45);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-danger: #ef4444;

  --gradient-brand: linear-gradient(135deg, #34d399 0%, #38bdf8 48%, #818cf8 100%);
  --gradient-cta: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);

  --shadow-glow: 0 20px 55px -15px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 18px 42px -12px rgba(0, 0, 0, 0.65);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(16, 185, 129, 0.13) 0%, transparent 40%),
    radial-gradient(circle at 82% 16%, rgba(99, 102, 241, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 50% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 48%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Widescreen Grid Overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 56px 56px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 50%, transparent 100%);
}

/* Ambient Floating Glow Orbs (GPU transform/opacity only) */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  will-change: transform;
}

.ambient-orb.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-2 {
  width: 540px;
  height: 540px;
  top: 20%;
  right: -140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 45px, 0) scale(1.08); }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-55px, 50px, 0) scale(1.06); }
}

/* Scroll Progress Indicator Bar (GPU scaleX) */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

/* Fluid Full-Width Container — scales cleanly across 1080p, 1440p, 4K & Ultrawide */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 96px);
  position: relative;
  z-index: 1;
}

/* GPU-Friendly Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger, 0) * 75ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Top Security Advisory Bar */
.security-topbar {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.9) 0%, rgba(153, 27, 27, 0.94) 50%, rgba(127, 29, 29, 0.9) 100%);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
  padding: 9px 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 50;
}

.security-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(252, 165, 165, 0.5);
  color: #fecaca;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.security-topbar-text {
  color: #fee2e2;
  flex: 1;
  min-width: 260px;
}

.security-topbar-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.security-topbar-link:hover {
  color: #fde68a;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge-bt {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #10b981 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand-badge-bt {
  transform: scale(1.07) rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-version-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.active-spy {
  color: var(--accent-emerald);
}

.nav-links a:hover::after,
.nav-links a.active-spy::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-emerald);
  color: #042f2e;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--gradient-cta);
  color: #022c22;
  font-weight: 700;
  box-shadow: 0 8px 25px -6px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.7);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translate3d(0, -2px, 0);
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
  transform: translate3d(0, -2px, 0);
}

/* Hero Section — Widescreen Balanced Split */
.hero {
  padding: clamp(48px, 5vw, 84px) 0 clamp(48px, 5vw, 72px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(32px, 3.5vw, 64px);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: pulseRing 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.25rem, 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease-in-out infinite alternate;
}

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

.hero-lead {
  font-size: clamp(1rem, 1.1vw, 1.14rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 68ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  background: rgba(19, 28, 49, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-item:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(16, 185, 129, 0.4);
}

.metric-value {
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34d399;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Visual — Live Client v2.0 Preview Frame */
.hero-visual {
  min-width: 0;
  position: relative;
}

.hero-preview-frame {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  overflow: hidden;
  animation: gentleFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes gentleFloat {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -7px, 0); }
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #060911;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.red { background: #ef4444; }
.window-dot.amber { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 9px;
  border-radius: 99px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Pure CSS GPU Equalizer Bars (scaleY only) */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bar {
  width: 2.5px;
  height: 100%;
  background: #34d399;
  border-radius: 2px;
  transform-origin: bottom;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
  will-change: transform;
}

.eq-bar:nth-child(2) { animation-duration: 0.65s; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { animation-duration: 1.05s; animation-delay: 0.3s; }
.eq-bar:nth-child(4) { animation-duration: 0.75s; animation-delay: 0.08s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.hero-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-preview-frame:hover .hero-screenshot-img {
  transform: scale(1.012);
}

.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: rgba(7, 11, 20, 0.92);
  position: relative;
  z-index: 2;
}

.telemetry-box {
  background: rgba(19, 28, 49, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

.telemetry-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.proto-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.proto-tag.wt {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.proto-tag.ts3 {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.proto-tag.btea {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.proto-tag.ssh {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Section Headers */
section {
  padding: clamp(64px, 6vw, 96px) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.04rem;
}

/* Client v2.0 Interactive Widescreen Showcase */
.showcase-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 2.2vw, 36px);
  align-items: stretch;
}

.showcase-tabs-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.showcase-btn {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.showcase-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.showcase-btn strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.showcase-btn span {
  font-size: 0.82rem;
  line-height: 1.45;
}

.showcase-btn:hover {
  transform: translate3d(4px, 0, 0);
  border-color: rgba(16, 185, 129, 0.45);
}

.showcase-btn.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.25);
}

/* Auto-cycle progress bar inside active showcase button */
.showcase-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-cta);
  transform-origin: left;
  transform: scaleX(0);
}

.showcase-btn.active.cycling .showcase-progress {
  animation: cycleProgress 6.5s linear forwards;
}

@keyframes cycleProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.showcase-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.showcase-stage img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.showcase-stage img.switching {
  opacity: 0;
  transform: scale(0.985);
}

/* Interactive UI Hotspots inside Showcase Stage */
.showcase-img-container {
  position: relative;
  overflow: hidden;
}

.hotspot-toggle-btn {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hotspot-toggle-btn:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.showcase-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.showcase-hotspots.hidden {
  opacity: 0;
}

.ui-hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.92);
  border: 2px solid #ffffff;
  color: #022c22;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ui-hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: pulseRing 2.1s ease-out infinite;
  pointer-events: none;
}

.ui-hotspot:hover,
.ui-hotspot.active {
  transform: scale(1.18);
  background: #34d399;
}

.showcase-hotspot-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: rgba(7, 11, 20, 0.94);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.showcase-hotspot-bar.hidden {
  display: none;
}

.hotspot-Step-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  white-space: nowrap;
}

.hotspot-info-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hotspot-info-content strong {
  color: var(--text-primary);
}

.hotspot-info-content span {
  color: var(--text-secondary);
}

/* Feature Grid — scales across widescreen with subtle spotlight hover */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(16, 185, 129, 0.11),
      transparent 45%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

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

.feature-card:hover {
  border-color: var(--border-highlight);
  transform: translate3d(0, -5px, 0);
  box-shadow: var(--shadow-card);
}

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

.feature-icon-wrap.cyan {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.32);
  color: #22d3ee;
}

.feature-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.feature-icon-wrap.indigo {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.32);
  color: #818cf8;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-title {
  font-size: 1.16rem;
  font-weight: 700;
}

.port-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex: 1;
}

.feature-specs {
  list-style: none;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.feature-specs li::before {
  content: "▹ ";
  color: var(--accent-emerald);
}

/* Architecture & Protocol Explorer */
.arch-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-card);
}

.tabs-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tab-btn.active {
  background: var(--gradient-cta);
  color: #022c22;
  font-weight: 700;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Diagram Architecture Nodes with Animated Packet Stream */
.arch-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.arch-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.arch-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.arch-node:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 24px -10px rgba(16, 185, 129, 0.25);
}

.arch-node-title {
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arch-node-sub {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.arch-core-box {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14) 0%, rgba(19, 28, 49, 0.95) 100%);
  border: 2px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-glow);
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* Animated Packet Stream Line inside Reality Layer Box */
.packet-stream-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 10px 14px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #6ee7b7;
  position: relative;
  overflow: hidden;
}

.packet-stream-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.22), transparent);
  animation: packetSweep 2.6s linear infinite;
  will-change: transform;
}

@keyframes packetSweep {
  0% { transform: translate3d(-120%, 0, 0); }
  100% { transform: translate3d(320%, 0, 0); }
}

.arch-core-box h4 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.arch-core-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.arch-pill {
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6ee7b7;
}

/* Packet Table for BTEA Spec */
.packet-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.spec-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spec-table th,
.spec-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(7, 11, 20, 0.6);
}

.spec-table td code {
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Code Blocks */
.code-card {
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.25s ease;
}

.code-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent-emerald);
  color: #022c22;
  border-color: var(--accent-emerald);
}

pre.code-block {
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #e2e8f0;
}

/* Security Warning & Authenticity Checker Section */
.security-section {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.14) 0%, rgba(13, 19, 34, 0.45) 100%);
  border-top: 1px solid rgba(239, 68, 68, 0.28);
  border-bottom: 1px solid rgba(239, 68, 68, 0.28);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: stretch;
}

.security-alert-card {
  background: rgba(22, 11, 18, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
}

.security-alert-card h3 {
  color: #fca5a5;
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.threat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.threat-list li {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--accent-danger);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.threat-list li:hover {
  transform: translate3d(4px, 0, 0);
  background: rgba(239, 68, 68, 0.13);
}

.threat-list li strong {
  color: #fecaca;
  display: block;
  margin-bottom: 3px;
}

.verifier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.verifier-card h4 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.verifier-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.verifier-input {
  width: 100%;
  background: #060911;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verifier-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.verifier-result {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
  animation: fadeIn 0.22s ease;
}

.verifier-result.danger {
  display: block;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.verifier-result.safe {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.verifier-result.neutral {
  display: block;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

/* Interactive 3D HRTF Spatial Audio Radar Demo Section */
.spatial-section {
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.35) 0%, rgba(16, 185, 129, 0.04) 50%, rgba(13, 19, 34, 0.35) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spatial-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.spatial-radar-card,
.spatial-telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.spatial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.spatial-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spatial-preset-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.spatial-preset-btn:hover {
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.45);
}

.spatial-preset-btn.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-emerald);
  color: #34d399;
}

.spatial-audio-btn.playing {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  color: #6ee7b7;
}

.tone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.spatial-audio-btn.playing .tone-dot {
  background: #34d399;
  box-shadow: 0 0 8px #10b981;
}

.radar-arena-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.radar-arena {
  width: 340px;
  height: 340px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.13) 0%, rgba(10, 16, 29, 0.96) 72%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.08), 0 12px 34px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  pointer-events: none;
}

.radar-ring.ring-outer { width: 88%; height: 88%; }
.radar-ring.ring-mid { width: 58%; height: 58%; }
.radar-ring.ring-inner { width: 30%; height: 30%; }

.ring-label {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: rgba(148, 163, 184, 0.55);
}

.radar-axis-h,
.radar-axis-v {
  position: absolute;
  background: rgba(148, 163, 184, 0.12);
  pointer-events: none;
}

.radar-axis-h { width: 100%; height: 1px; }
.radar-axis-v { width: 1px; height: 100%; }

.radar-dir {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.radar-dir.dir-n { top: 8px; left: 50%; transform: translateX(-50%); color: #34d399; }
.radar-dir.dir-s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.radar-dir.dir-w { left: 10px; top: 50%; transform: translateY(-50%); }
.radar-dir.dir-e { right: 10px; top: 50%; transform: translateY(-50%); }

.radar-listener-cone {
  position: absolute;
  width: 140px;
  height: 140px;
  top: calc(50% - 140px);
  left: calc(50% - 70px);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, transparent 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  pointer-events: none;
}

.radar-listener {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d1526;
  border: 2px solid var(--accent-emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
  line-height: 1;
}

.radar-listener span { font-size: 0.95rem; }
.radar-listener small {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  color: #34d399;
  margin-top: 2px;
}

.radar-peer {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -18px;
  margin-top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 19, 34, 0.9);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 5;
  padding: 0;
  will-change: transform;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.radar-peer:active {
  cursor: grabbing;
}

.radar-peer.active {
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55);
  z-index: 6;
}

.peer-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.peer-dot.emerald { background: #10b981; }
.peer-dot.indigo { background: #6366f1; }
.peer-dot.cyan { background: #06b6d4; }

.peer-ping {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #34d399;
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

.peer-tag {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.radar-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.spatial-tel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.spatial-tel-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spatial-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spatial-metric-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.spatial-metric-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-top: 4px;
  display: block;
}

.ear-meters-box {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ear-meter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ear-meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ear-meter-label strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.ear-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.ear-bar-fill {
  width: 100%;
  height: 100%;
  border-radius: 99px;
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
}

.ear-bar-fill.left {
  background: linear-gradient(90deg, #059669, #34d399);
}

.ear-bar-fill.right {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.spatial-info-note {
  background: rgba(16, 185, 129, 0.07);
  border-left: 3px solid var(--accent-emerald);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spatial-info-note strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* Comparison Matrix Table Section */
.comparison-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.comparison-table thead th {
  background: rgba(7, 11, 20, 0.75);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

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

.comparison-table .highlight-col {
  background: rgba(16, 185, 129, 0.07);
  border-left: 1px solid rgba(16, 185, 129, 0.28);
  border-right: 1px solid rgba(16, 185, 129, 0.28);
}

.comparison-table thead .highlight-col {
  background: rgba(16, 185, 129, 0.15);
  border-top: 3px solid var(--accent-emerald);
}

.cmp-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge-bt.sm {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.cmp-brand-head small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6ee7b7;
  font-weight: 500;
}

.cmp-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cmp-badge.good {
  display: inline-block;
  font-weight: 700;
  color: #6ee7b7;
}

/* Platforms & Auto-OS Detection Section */
.os-detect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 28px;
}

.os-detect-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ecfdf5;
}

.release-status-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

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

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.platform-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--border-highlight);
}

.platform-card.detected {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.11) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-glow);
}

.platform-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.os-rec-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.platform-card.detected .os-rec-badge {
  display: inline-block;
}

.platform-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.plat-pending-btn,
.plat-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-decoration: none;
}

.plat-pending-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

.plat-link-btn {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  transition: background 0.2s ease;
}

.plat-link-btn:hover {
  background: rgba(16, 185, 129, 0.24);
}

/* FAQ Accordion Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(19, 28, 49, 0.72);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-emerald);
  color: #022c22;
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 14px;
}

/* License Section */
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.license-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.license-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow-card);
}

.license-card.permitted {
  border-top: 3px solid var(--accent-emerald);
}

.license-card.prohibited {
  border-top: 3px solid var(--accent-danger);
}

.license-card.commercial {
  border-top: 3px solid var(--accent-amber);
}

.license-card h4 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.license-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Interactive Server Capacity & Bandwidth Calculator Section */
.calculator-section {
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.2) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(13, 19, 34, 0.2) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.calc-controls-card,
.calc-results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 2.5vw, 32px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.calc-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-val-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 10px;
  border-radius: 99px;
}

.calc-range {
  width: 100%;
  accent-color: var(--accent-emerald);
  cursor: pointer;
  height: 6px;
}

.calc-metrics-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calc-result-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-result-box.primary {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.calc-big-num {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 800;
  color: #34d399;
}

.calc-big-num.cyan {
  color: #38bdf8;
}

.calc-result-box small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ear-bar-fill.legacy {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.calc-hw-rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.calc-hw-rec strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* Legal & Privacy Modal (Impressum & DSGVO) */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.86);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.legal-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #060911;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-tabs {
  display: flex;
  gap: 8px;
}

.legal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.legal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-emerald);
}

.legal-modal-body {
  padding: 24px;
}

.legal-panel {
  display: none;
}

.legal-panel.active {
  display: block;
}

.legal-panel h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.legal-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-box {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lightbox Zoom Modal for Screenshots */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}

.lightbox-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.lightbox-modal img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

/* Footer */
.footer {
  background: #04070e;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 34px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 3-Band EQ & Codec Filter Studio Card */
.codec-eq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.codec-eq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.codec-eq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.eq-sliders-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.eq-spectrum-box {
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.eq-spectrum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.eq-spectrum-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  height: 112px;
  align-items: end;
  padding-top: 8px;
}

.spec-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.spec-fill {
  width: 100%;
  height: 82px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #34d399 0%, #059669 60%, rgba(16, 185, 129, 0.25) 100%);
  transform-origin: bottom center;
  transform: scaleY(0.65);
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}

.spec-col span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Interactive 5-Tier Permission-Engine Live Simulator */
.perm-sim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 2.8vw, 34px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.perm-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.perm-target-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.perm-target-pill strong {
  font-family: var(--font-mono);
  color: #fcd34d;
  min-width: 26px;
  text-align: right;
}

.perm-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.perm-tier-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.perm-tier-node.disabled-tier {
  opacity: 0.48;
}

.perm-tier-node.skipped-tier {
  opacity: 0.42;
  border-style: dashed;
}

.perm-tier-node.winner-tier {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, var(--bg-surface-elevated) 100%);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.25);
}

.perm-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.perm-tier-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.perm-tier-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.perm-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.perm-check-row input {
  accent-color: var(--accent-emerald);
}

.perm-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-subtle);
}

.perm-verdict-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.perm-verdict-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
}

.perm-verdict-badge.grant {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.perm-verdict-badge.deny {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.perm-verdict-explain {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.perm-effective-pill {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
}

/* 1-RTT BTEA vs. Legacy TS3 Handshake Race Visualizer */
.handshake-race-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.handshake-race-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.handshake-tracks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hs-track-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hs-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hs-time.emerald { color: #34d399; }
.hs-time.amber { color: #fbbf24; }

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #022c22;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.back-to-top-btn:hover {
  transform: translate3d(0, -3px, 0);
}

/* Low-Power / Mobile / Reduced-Motion Optimizations */
@media (max-width: 1280px) {
  .hero-grid,
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .showcase-tabs-row,
  .platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perm-tiers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ambient-orb {
    display: none; /* Save GPU fill-rate on tablets & mobile */
  }

  .hero-preview-frame {
    animation: none;
  }

  .spatial-demo-grid,
  .codec-eq-grid,
  .calc-grid,
  .arch-flow-grid,
  .packet-spec-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .perm-tiers-grid,
  .license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .navbar {
    backdrop-filter: none;
    background: #070b14;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-metrics,
  .hero-telemetry-strip,
  .showcase-tabs-row,
  .spatial-metrics-grid,
  .calc-metrics-top,
  .perm-tiers-grid,
  .features-grid,
  .platforms-grid,
  .license-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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