/* ==========================================================================
   Flux Disguiser — Obsidian Studio Precision Theme
   Matches StudioColors tokens from Android Jetpack Compose app
   ========================================================================== */

:root {
  --bg-void: #070a0f;
  --bg-surface: #0e141e;
  --bg-elevated: #151e2d;
  --bg-card-hover: #1a2436;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);

  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --cyan-soft: rgba(56, 189, 248, 0.14);

  --emerald: #10b981;
  --emerald-bright: #6ee7b7;
  --emerald-soft: rgba(16, 185, 129, 0.14);

  --amber: #f59e0b;
  --amber-bright: #fcd34d;
  --amber-soft: rgba(245, 158, 11, 0.14);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-max: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.14em 0.42em;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--cyan);
  color: #041520;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-icon {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.brand-icon-sm {
  border-radius: 7px;
}

.brand-mark-lg {
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.16);
}

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

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 10px;
}

.btn-xs {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.btn-lg {
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 13px;
}

.btn-icon {
  padding: 9px;
  width: 38px;
  height: 38px;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #10b981);
  color: #03151d;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  color: #03151d;
  filter: brightness(1.07);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.36);
}

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

.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

/* Typography utilities */
.kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

.kicker-emerald {
  color: var(--emerald-bright);
}

.muted {
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(115deg, #7dd3fc 0%, #38bdf8 42%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.pill-cyan {
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  border-color: rgba(56, 189, 248, 0.35);
}

.pill-emerald {
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
}

.pill-amber {
  color: var(--amber-bright);
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.35);
}

.pill-muted {
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.12);
  border-color: var(--border-strong);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 68px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.34;
}

.orb-cyan {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: #0ea5e9;
}

.orb-emerald {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -80px;
  background: #10b981;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
}

.wave-line {
  animation: waveDrift 8s ease-in-out infinite alternate;
}

.wave-2 {
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}

@keyframes waveDrift {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(8px);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 20, 30, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--cyan-bright);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

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

.telemetry-strip {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 20, 30, 0.78);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.telemetry-strip dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.telemetry-strip dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Phone Mockup Stage */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  padding: 18px 24px;
}

.phone-frame {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(155deg, #253349 0%, #0d131d 55%, #172336 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(56, 189, 248, 0.12) inset;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #04070b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  z-index: 3;
  pointer-events: none;
}

.phone-primary {
  width: 286px;
  z-index: 2;
}

.phone-secondary {
  position: absolute;
  width: 224px;
  right: 4px;
  top: 56px;
  z-index: 1;
  opacity: 0.56;
  transform: rotate(6deg) scale(0.95);
  filter: saturate(0.85);
}

.phone-secondary img {
  border-radius: 30px;
}

.phone-showcase {
  width: 296px;
}

.phone-zoom-trigger,
.tablet-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0d12;
  border-radius: 30px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.phone-zoom-trigger img,
.tablet-zoom-trigger img {
  width: 100%;
  transition: transform 0.28s ease;
}

.phone-zoom-trigger:hover img,
.tablet-zoom-trigger:hover img {
  transform: scale(1.015);
}

.floating-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(14, 20, 30, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.badge-top {
  left: -34px;
  top: 108px;
}

.badge-bottom {
  right: -22px;
  bottom: 84px;
  border-color: rgba(16, 185, 129, 0.38);
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.badge-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

.badge-bottom .badge-value {
  color: var(--emerald-bright);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 20, 30, 0.52) 0%, rgba(10, 14, 22, 0.92) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-sub {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* Interactive Screenshot Showcase */
.showcase-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}

.screen-tab {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.screen-tab:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
}

.screen-tab.is-active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.15);
}

.tab-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.screen-tab.is-active .tab-kicker {
  color: var(--cyan-bright);
}

.tab-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 8px 16px 14px;
}

.showcase-device-col {
  display: flex;
  justify-content: center;
}

.showcase-details h3 {
  margin: 14px 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.showcase-desc {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 56ch;
}

.feature-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.feature-checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.feature-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}

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

.step-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mono-counter {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: center;
}

/* Foldable Adaptive Showcase */
.fold-showcase {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(14, 20, 30, 0.95), rgba(11, 36, 32, 0.45));
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.fold-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.fold-header h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
}

.fold-header p {
  margin: 0;
  max-width: 62ch;
}

.fold-toggle,
.preset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(14, 20, 30, 0.8);
  border: 1px solid var(--border-strong);
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
}

.pill-btn.is-active {
  color: #03151d;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  border-color: transparent;
  font-weight: 700;
}

.tablet-frame {
  margin: 0 auto;
  max-width: 760px;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(155deg, #243347 0%, #0d131d 60%, #152536 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.tablet-zoom-trigger {
  border-radius: 18px;
}

/* Signal Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.arch-cyan {
  border-top: 3px solid var(--cyan);
}

.arch-emerald {
  border-top: 3px solid var(--emerald);
}

.arch-card-head h3 {
  margin: 12px 0 8px;
  font-size: 1.32rem;
  font-weight: 800;
}

.signal-flow {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.signal-flow li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.flow-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-bright);
}

.arch-emerald .flow-step {
  color: var(--emerald-bright);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
}

.highlight-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Presets Grid */
.preset-filters {
  margin-bottom: 24px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.preset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.preset-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.preset-card[hidden] {
  display: none;
}

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

.preset-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.preset-card p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.preset-specs {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preset-specs dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preset-specs dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

/* Setup Steps & Code Block */
.setup-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.setup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

.setup-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
}

.setup-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.code-card {
  margin: 0;
  background: #06090e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.code-card-head figcaption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.code-card pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
}

.code-card pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e2e8f0;
}

/* FAQ Native Accordion */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

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

.faq-list details[open] {
  border-color: rgba(56, 189, 248, 0.42);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--emerald-bright);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-body p {
  margin: 0;
}

/* CTA Banner & Footer */
.cta-banner {
  padding: 54px 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.12), transparent 55%),
              var(--bg-surface);
}

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

.cta-inner h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
}

.cta-inner p {
  margin: 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-void);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
}

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

/* Native <dialog> Lightbox */
.lightbox {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-primary);
  width: min(92vw, 960px);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78);
}

.lightbox::backdrop {
  background: rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 15, 0.75);
}

.lightbox-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.lightbox-header p {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

.lightbox-body {
  padding: 20px;
  overflow: auto;
  display: flex;
  justify-content: center;
  background: #06090e;
}

.lightbox-body img {
  max-height: 76vh;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  max-width: 460px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-card h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .showcase-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arch-grid,
  .highlights-grid,
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-secondary,
  .floating-badge {
    display: none;
  }

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

  .showcase-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .arch-grid,
  .highlights-grid,
  .preset-grid,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .signal-flow li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wave-line,
  .pulse-dot {
    animation: none;
  }

  .btn,
  .preset-card,
  .phone-zoom-trigger img,
  .tablet-zoom-trigger img {
    transition: none;
  }
}
