/* ==========================================================================
   ETERNASYS — Sovereign AI Ownership (Editorial Obsidian Edition)
   ========================================================================== */

:root {
  --bg: #050608;
  --bg-2: #090a0e;
  --surface: rgba(14, 16, 22, 0.8);
  --surface-solid: #0d0f15;
  --surface-raised: #131620;
  --border: rgba(244, 240, 232, 0.08);
  --border-strong: rgba(244, 240, 232, 0.16);
  --text: #f5f2eb;
  --text-muted: #989fae;
  --text-dim: #616878;
  --gold: #d3b267;
  --gold-bright: #f0d797;
  --gold-deep: #9c7c32;
  --gold-soft: rgba(211, 178, 103, 0.12);
  --gold-border: rgba(211, 178, 103, 0.36);
  --ok: #3ad197;
  --ok-soft: rgba(58, 209, 151, 0.12);
  --danger: #eb5e65;
  --danger-soft: rgba(235, 94, 101, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1220px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Top scroll progress hairline */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.scroll-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(212, 155, 75, 0.7);
  transition: width 0.06s linear;
}

/* Subtle film grain + ambient glow */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1000px 580px at 78% -5%, rgba(212, 155, 75, 0.11), transparent 62%),
    radial-gradient(760px 520px at 10% 28%, rgba(72, 98, 148, 0.07), transparent 62%),
    radial-gradient(900px 500px at 50% 105%, rgba(212, 155, 75, 0.06), transparent 60%);
}

.grain-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

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

/* ==========================================================================
   Floating Glass Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 0 20px;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  height: 62px;
  padding: 0 14px 0 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(10, 12, 17, 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, max-width 0.3s ease;
}

.site-header.scrolled .nav-shell {
  background: rgba(8, 10, 14, 0.9);
  max-width: 960px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #08090c !important;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 24px -8px rgba(212, 155, 75, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px -8px rgba(242, 201, 133, 0.75);
}

/* ==========================================================================
   Typography & Shared Controls
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(212, 155, 75, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(242, 201, 133, 0.7);
  animation: radarPulse 2.4s infinite;
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 201, 133, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(242, 201, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 201, 133, 0); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(115deg, #fff4df 0%, var(--gold-bright) 48%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 740px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #08090c;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 32px -12px rgba(212, 155, 75, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 38px -10px rgba(242, 201, 133, 0.78);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 242, 235, 0.32);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero + Interactive Canvas + Monolith Showcase
   ========================================================================== */
.hero {
  position: relative;
  padding: 148px 0 108px;
  overflow: hidden;
}

#mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-top {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}

.hero-top h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero-lead {
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  color: var(--text-muted);
  max-width: 670px;
  margin: 0 auto 38px;
}

.hero-top .btn-row {
  justify-content: center;
}

/* Monolith Hardware Showcase Frame */
.monolith-stage {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: #07080c;
  overflow: hidden;
  box-shadow:
    0 40px 120px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(212, 155, 75, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.monolith-media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #161922, #06070a 75%);
}

.monolith-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) brightness(0.94);
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.monolith-stage:hover .monolith-media img {
  transform: scale(1.045);
}

.monolith-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.45) 0%, transparent 28%, transparent 58%, rgba(6, 7, 10, 0.95) 100%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.55) 0%, transparent 20%, transparent 80%, rgba(6, 7, 10, 0.55) 100%);
  pointer-events: none;
}

/* HUD corner overlays */
.hud-top {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.78);
  pointer-events: none;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(245, 242, 235, 0.14);
  backdrop-filter: blur(10px);
}

.hud-pill .led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.hud-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(14px);
}

.hud-stat {
  padding: 20px 24px;
}

.hud-stat + .hud-stat {
  border-left: 1px solid var(--border);
}

.hud-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.hud-stat-value {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   SHOWSTOPPER: Live "Cut the Cord" Air-Gap Simulator
   ========================================================================== */
.sim-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.sim-header .section-head {
  margin-bottom: 0;
}

/* Tactile Hardware Switch */
.cord-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #161a24, #0d1017);
  border: 1px solid var(--gold-border);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cord-switch:hover {
  border-color: var(--gold-bright);
}

.cord-switch[aria-pressed="true"] {
  border-color: var(--ok);
  box-shadow: 0 0 32px -10px rgba(58, 209, 151, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.switch-track {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cord-switch[aria-pressed="true"] .switch-track {
  background: rgba(58, 209, 151, 0.22);
  border-color: rgba(58, 209, 151, 0.55);
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff5e3, var(--gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.cord-switch[aria-pressed="true"] .switch-knob {
  transform: translateX(26px);
  background: linear-gradient(180deg, #b8ffdf, var(--ok));
}

.switch-copy {
  text-align: left;
}

.switch-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
}

.switch-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cord-switch[aria-pressed="true"] .switch-sub {
  color: var(--ok);
}

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

.sim-panel {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.9), rgba(9, 11, 16, 0.96));
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.sim-panel.sovereign {
  border-color: var(--gold-border);
  box-shadow: 0 24px 70px -28px rgba(212, 155, 75, 0.25);
}

.sim-panel.cloud.is-down {
  border-color: rgba(235, 94, 101, 0.45);
  box-shadow: 0 20px 60px -28px rgba(235, 94, 101, 0.3);
}

.sim-panel.sovereign.is-airgapped {
  border-color: rgba(58, 209, 151, 0.5);
  box-shadow: 0 24px 70px -26px rgba(58, 209, 151, 0.28);
}

.sim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.sim-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.sim-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid rgba(58, 209, 151, 0.3);
  transition: all 0.25s ease;
}

.sim-panel.cloud.is-down .sim-badge {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(235, 94, 101, 0.4);
}

.sim-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

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

.sim-metric {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.sim-metric-k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.sim-metric-v {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.sim-metric-v.ok { color: var(--ok); }
.sim-metric-v.gold { color: var(--gold-bright); }
.sim-metric-v.bad { color: var(--danger); }

.sim-log {
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #06080c;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--text-muted);
  min-height: 148px;
  overflow: hidden;
}

.sim-log .line-ok { color: var(--ok); }
.sim-log .line-gold { color: var(--gold-bright); }
.sim-log .line-bad { color: var(--danger); }
.sim-log .line-dim { color: var(--text-dim); }

/* ==========================================================================
   Asymmetric Spotlight Bento Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(212, 155, 75, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

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

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

.bento-card > * {
  position: relative;
  z-index: 1;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1.48rem;
  line-height: 1.18;
  margin-bottom: 10px;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Interactive Model Switcher Widget inside Bento Card 1 */
.model-switcher {
  padding: 18px;
  border-radius: 12px;
  background: #080a0f;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-pill {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.model-pill:hover {
  color: var(--text);
  border-color: rgba(245, 242, 235, 0.3);
}

.model-pill[aria-pressed="true"] {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.memory-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(58, 209, 151, 0.1), rgba(212, 155, 75, 0.08));
  border: 1px solid rgba(58, 209, 151, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.memory-ribbon strong {
  color: var(--ok);
}

/* Sandbox Compartments Widget */
.sandbox-stack {
  display: grid;
  gap: 10px;
}

.sandbox-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: #080a0f;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sandbox-slot .tag {
  color: var(--ok);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ok-soft);
}

/* Vault Split Media Bento Card */
.vault-card {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
}

.vault-copy {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.vault-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.vault-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.vault-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.vault-media {
  position: relative;
  min-height: 320px;
  background: #06070a;
  overflow: hidden;
}

.vault-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vault-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface-solid) 0%, transparent 24%);
  pointer-events: none;
}

/* ==========================================================================
   3D Isometric Interactive Architecture Stack
   ========================================================================== */
.iso-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.iso-stage {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.iso-stack {
  position: relative;
  width: 310px;
  height: 310px;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-38deg);
}

.iso-plate {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(24, 28, 40, 0.9), rgba(10, 12, 18, 0.92));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}

.iso-plate[data-idx="0"] { transform: translateZ(120px); }
.iso-plate[data-idx="1"] { transform: translateZ(60px); }
.iso-plate[data-idx="2"] { transform: translateZ(0px); }
.iso-plate[data-idx="3"] { transform: translateZ(-60px); }

.iso-plate:hover {
  border-color: var(--gold-bright);
}

.iso-plate.is-active {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(212, 155, 75, 0.24), rgba(16, 19, 28, 0.95));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 36px rgba(212, 155, 75, 0.28), inset 0 1px 0 rgba(255, 240, 210, 0.28);
}

.iso-plate.is-active[data-idx="0"] { transform: translateZ(148px) translateX(10px); }
.iso-plate.is-active[data-idx="1"] { transform: translateZ(84px) translateX(10px); }
.iso-plate.is-active[data-idx="2"] { transform: translateZ(24px) translateX(10px); }
.iso-plate.is-active[data-idx="3"] { transform: translateZ(-36px) translateX(10px); }

.iso-plate:not(.is-active) {
  opacity: 0.72;
}

.iso-plate-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
}

.iso-plate-label {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--text);
}

.arch-panel {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.arch-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-pill {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.arch-pill[aria-selected="true"] {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.arch-panel h3 {
  font-size: 1.75rem;
  line-height: 1.15;
}

.arch-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.arch-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.arch-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
}

.arch-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 9px;
  flex-shrink: 0;
}

.arch-invariant {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(58, 209, 151, 0.06);
  border: 1px solid rgba(58, 209, 151, 0.22);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.arch-invariant strong {
  color: var(--ok);
}

/* ==========================================================================
   Deployment Tiers & CTA
   ========================================================================== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tier-card {
  position: relative;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tier-card.featured {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(212, 155, 75, 0.09), var(--surface-solid) 42%);
}

.tier-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.tier-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
}

.tier-card h3 {
  font-size: 1.38rem;
}

.tier-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Final CTA */
.cta-banner {
  position: relative;
  border-radius: 24px;
  padding: 64px;
  border: 1px solid var(--gold-border);
  background:
    radial-gradient(640px 300px at 90% 10%, rgba(212, 155, 75, 0.2), transparent 65%),
    linear-gradient(180deg, #121621, #090b10);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cta-meta a {
  color: var(--gold-bright);
  border-bottom: 1px dashed var(--gold-border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 42px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .pulse-dot { animation: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .sim-grid,
  .iso-layout,
  .vault-card,
  .cta-banner,
  .tiers-grid {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5, .span-4, .span-8 {
    grid-column: span 12;
  }
  .hud-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hud-stat:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .hud-stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .vault-media::after {
    background: linear-gradient(180deg, var(--surface-solid) 0%, transparent 25%);
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 72px; }
  .section { padding: 80px 0; }
  .hud-bottom { grid-template-columns: 1fr; }
  .hud-stat + .hud-stat { border-left: none; border-top: 1px solid var(--border); }
  .iso-stack { width: 230px; height: 230px; }
  .cta-banner { padding: 36px 24px; }
}
