/* ==========================================================================
   AgentForge — "Command Center" Design System
   Zero-build-step production stylesheet for GitHub Pages
   ========================================================================== */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Brand spectrum */
  --blue: #4f8cff;
  --blue-hi: #7db0ff;
  --cyan: #22d3ee;
  --green: #34d399;
  --green-hi: #6ee7b7;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;

  /* Deep-space surfaces & glass borders */
  --bg: #05070d;
  --bg-raise: #0a0f1a;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-hi: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.075);
  --line-hi: rgba(127, 176, 255, 0.35);

  /* Text hierarchy */
  --ink: #eef2f9;
  --ink-2: rgba(238, 242, 249, 0.62);
  --ink-3: rgba(238, 242, 249, 0.38);

  /* Signature gradients */
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 50%, var(--green) 100%);
  --grad-ai: linear-gradient(120deg, #a78bfa, #f472b6, #fbbf24);

  /* Typography */
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion, radii & elevation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(79, 140, 255, 0.12), 0 20px 60px -16px rgba(79, 140, 255, 0.25);
  --spec: inset 0 1px 0 rgba(255, 255, 255, 0.09);

  /* IDE syntax-highlighting palette */
  --tok-plain: #dbe7ff;
  --tok-comment: #7e91b5;
  --tok-op: rgba(190, 206, 232, 0.78);
  --tok-prop: #c7d5ee;
  --code-bg: #04070e;
  --gutter-bg: #060a14;
}

/* --------------------------------------------------------------------------
   1. Base Reset & Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(79, 140, 255, 0.35);
  color: var(--ink);
}

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

p {
  margin-top: 0;
}

a {
  color: var(--blue-hi);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]: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;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

p code,
li code,
td code,
th code,
.pricing-notice code,
.cost-card-note code,
.cost-tip code {
  font-size: 0.86em;
  padding: 0.14rem 0.42rem;
  border-radius: 6px;
  background: rgba(125, 176, 255, 0.09);
  border: 1px solid rgba(125, 176, 255, 0.18);
  color: var(--blue-hi);
  overflow-wrap: anywhere;
}

.pricing-notice code,
.cost-card-note code,
.cost-tip code,
.hero-sub code {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 3500;
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #05070d;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   2. Scroll Progress & Atmospheric Backdrop
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 2000;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.aurora-1 {
  width: 62vw;
  height: 62vw;
  top: -28vw;
  right: -18vw;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.30), transparent 65%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 48vw;
  height: 48vw;
  bottom: -20vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.20), transparent 65%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 34vw;
  height: 34vw;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14), transparent 65%);
  animation: aurora-drift-3 40s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 110px 160px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 340px 80px, rgba(255, 255, 255, 0.42), transparent),
    radial-gradient(1.2px 1.2px at 590px 410px, rgba(125, 176, 255, 0.5), transparent),
    radial-gradient(1px 1px at 760px 230px, rgba(255, 255, 255, 0.38), transparent),
    radial-gradient(1.4px 1.4px at 220px 690px, rgba(52, 211, 153, 0.45), transparent);
  background-size: 900px 900px;
  animation: stars-twinkle 8s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

@keyframes aurora-drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4vw, 3vw, 0) scale(1.08); }
}

@keyframes aurora-drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5vw, -3.5vw, 0) scale(1.1); }
}

@keyframes aurora-drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(0.96); }
  100% { transform: translate3d(-3vw, -4vw, 0) scale(1.12); }
}

@keyframes stars-twinkle {
  0% { opacity: 0.42; }
  100% { opacity: 0.85; }
}

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

/* --------------------------------------------------------------------------
   3. Layout Containers & Section Headers
   -------------------------------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  position: relative;
  z-index: 1;
}

.section-block {
  padding: 8.5rem 0;
  position: relative;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-header .chip {
  margin-bottom: 1.15rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--ink-2);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.section-header p strong {
  color: var(--ink);
  font-weight: 600;
}

.text-aurora {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-shift 6s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   4. Signature UI Primitives (Navbar, Buttons, Chips)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(5, 7, 13, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand em {
  font-style: normal;
  color: var(--blue-hi);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  padding: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(79, 140, 255, 0.55);
  flex-shrink: 0;
}

.logo-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 8.5px;
  background: #070c17;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--line);
}

.nav-links a {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--surface-hi);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-hi);
  background: var(--surface-hi);
}

.mobile-menu {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--r-md);
  background: rgba(10, 15, 26, 0.96);
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-menu a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 500;
}

.mobile-menu a:hover {
  background: var(--surface-hi);
  color: var(--ink);
}

/* Status Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.chip-version {
  border-color: rgba(125, 176, 255, 0.32);
  background: rgba(79, 140, 255, 0.09);
  color: var(--blue-hi);
}

.chip-emerald {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
  color: var(--green-hi);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-dot 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Pill Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  color: #040812;
  font-weight: 700;
  box-shadow: 0 12px 32px -8px rgba(34, 211, 238, 0.45);
}

.btn-primary:hover {
  color: #040812;
  box-shadow: 0 16px 40px -6px rgba(79, 140, 255, 0.6);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.42) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.btn-primary:hover .btn-shine {
  transform: translateX(120%);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface-hi);
  border-color: var(--line-hi);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 0.48rem 1rem;
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section & 3D Command Center Mockup
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.hero h1 .hero-line {
  display: block;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 630px;
  margin-bottom: 2.1rem;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.6rem;
}

.hero-metrics {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.metric-item {
  min-width: 0;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.metric-value .metric-suffix {
  color: var(--cyan);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* Right Column: 3D Live BYOM Command Center Mockup */
.hero-stage {
  position: relative;
  perspective: 1400px;
  min-width: 0;
  padding: 1.25rem 0.5rem;
}

.dash-glow {
  position: absolute;
  inset: 6% -4%;
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 45%, rgba(79, 140, 255, 0.28), rgba(34, 211, 238, 0.12) 45%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
}

.dash-window {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 24, 42, 0.92), rgba(7, 11, 20, 0.96));
  border: 1px solid rgba(125, 176, 255, 0.26);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: dash-bob 6.5s ease-in-out infinite alternate;
  overflow: hidden;
}

.hero-stage:hover .dash-window {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
  border-color: rgba(125, 176, 255, 0.48);
  animation-play-state: paused;
}

@keyframes dash-bob {
  0% { translate: 0 0; }
  100% { translate: 0 -8px; }
}

.dash-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.028);
  border-bottom: 1px solid var(--line);
}

.traffic-lights {
  display: inline-flex;
  gap: 6px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl-red { background: #ff5f57; }
.tl-amber { background: #febc2e; }
.tl-green { background: #28c840; }

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-live-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green-hi);
}

.dash-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dash-kpi {
  padding: 0.82rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.dash-kpi.good {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02));
}

.dash-kpi.warn {
  border-color: rgba(251, 113, 133, 0.28);
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.08), rgba(255, 255, 255, 0.02));
}

.dash-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}

.dash-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
}

.dash-kpi.good .dash-kpi-val {
  color: var(--green-hi);
}

.dash-kpi.warn .dash-kpi-val {
  color: var(--rose);
}

.dash-kpi-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
}

/* CSS Vertical Bar Chart */
.dash-chart-box {
  padding: 0.9rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.dash-chart-head span:last-child {
  color: var(--amber);
}

.dash-bars {
  position: relative;
  height: 118px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.52rem;
  align-items: end;
  padding-top: 0.5rem;
}

.dash-threshold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  border-top: 1px dashed rgba(251, 191, 36, 0.65);
  pointer-events: none;
  z-index: 2;
}

.dash-threshold::after {
  content: '3.28s tuned avg';
  position: absolute;
  right: 0;
  top: -15px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--amber);
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.35rem;
}

.bar-col {
  position: relative;
}

.bar-col:hover {
  z-index: 4;
}

.bar-fill {
  position: relative;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #a5f3fc 0%, var(--cyan) 14%, rgba(79, 140, 255, 0.62) 62%, rgba(79, 140, 255, 0.16) 100%);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 14px -4px rgba(34, 211, 238, 0.45);
  transform-origin: bottom center;
  animation: bar-grow 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 350ms);
  transition: filter 0.25s var(--ease);
}

.bar-fill.spike {
  background: linear-gradient(180deg, #fecdd3 0%, var(--rose) 14%, rgba(251, 113, 133, 0.45) 62%, rgba(251, 113, 133, 0.12) 100%);
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 16px -4px rgba(251, 113, 133, 0.5);
}

.bar-fill.converged {
  background: linear-gradient(180deg, #d1fae5 0%, var(--green) 18%, rgba(34, 211, 238, 0.4) 100%);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 18px rgba(52, 211, 153, 0.35);
}

/* Hover value labels */
.bar-fill::after {
  content: attr(data-val);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translate(-50%, 4px);
  padding: 0.14rem 0.42rem;
  border-radius: 6px;
  background: rgba(5, 8, 16, 0.95);
  border: 1px solid var(--line-hi);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.bar-col:hover .bar-fill {
  filter: brightness(1.2) saturate(1.15);
}

.bar-col:hover .bar-fill::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes bar-grow {
  from { transform: scaleY(0.04); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}

.bar-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-3);
}

/* Violet Rotating Telemetry Ticker */
.dash-ticker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.85rem;
  border-radius: var(--r-sm);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.28);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #ddd6fe;
  min-height: 42px;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
  flex-shrink: 0;
}

.ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.ticker-text.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

/* Overlapping Float Cards */
.float-card {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.88rem;
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8);
}

.float-tl {
  top: -6px;
  left: -14px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  color: var(--cyan);
}

.float-br {
  bottom: -6px;
  right: -10px;
  border: 1px solid rgba(167, 139, 250, 0.42);
  color: #c4b5fd;
}

/* --------------------------------------------------------------------------
   6. Infinite Tech Marquee & Release Banner
   -------------------------------------------------------------------------- */
.marquee-band {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  margin-bottom: 1.6rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee-scroll 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.8;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.release-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.88rem 1.25rem;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.10), rgba(34, 211, 238, 0.06), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(125, 176, 255, 0.26);
}

.release-banner-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.release-banner-left strong {
  color: var(--ink);
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--grad);
  color: #040812;
}

/* --------------------------------------------------------------------------
   7. Interactive Multi-Tab Demo Console (#console)
   -------------------------------------------------------------------------- */
.console-shell {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(79, 140, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(14, 21, 36, 0.9), rgba(7, 11, 20, 0.96));
  border: 1px solid var(--line-hi);
  box-shadow: var(--spec), var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.console-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.35rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border-bottom: 1px solid var(--line);
}

.console-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.3rem;
  border-radius: 18px;
  background: rgba(3, 6, 12, 0.55);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.console-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.25s var(--ease);
}

.console-tab svg {
  opacity: 0.7;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease), filter 0.22s var(--ease);
}

.console-tab:hover {
  color: var(--ink);
  background: var(--surface-hi);
}

.console-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.26), rgba(34, 211, 238, 0.12));
  border-color: rgba(125, 176, 255, 0.5);
  color: var(--ink);
  box-shadow: var(--spec), 0 0 0 1px rgba(79, 140, 255, 0.12), 0 8px 24px -8px rgba(79, 140, 255, 0.65);
}

.console-tab[aria-selected="true"] svg {
  color: var(--cyan);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}

/* Tab-specific context sub-bar */
.console-context {
  min-height: 30px;
}

.ctx-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  animation: ctx-in 0.35s var(--ease) both;
}

.ctx-left,
.ctx-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.ctx-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
}

@keyframes ctx-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.console-body {
  padding: 1.5rem;
}

.console-panel:focus-visible {
  outline-offset: 6px;
  border-radius: var(--r-md);
}

.console-panel:not([hidden]) {
  animation: panel-in 0.42s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Tab 1: Cloud Console Walkthrough */
.walkthrough-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.step-pill {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.step-pill:hover {
  border-color: var(--line-hi);
  color: var(--ink);
}

.step-pill.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #040812;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.35), 0 8px 22px -6px rgba(34, 211, 238, 0.6);
}

.step-arrows {
  display: inline-flex;
  gap: 0.45rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--line-hi);
  color: var(--ink);
  background: var(--surface-hi);
}

.walkthrough-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.shot-frame {
  border-radius: var(--r-md);
  border: 1px solid rgba(125, 176, 255, 0.16);
  background: #04060c;
  overflow: hidden;
  box-shadow: var(--spec), 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

.shot-browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.shot-url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(3, 6, 12, 0.7);
  border: 1px solid var(--line);
}

.shot-url svg {
  flex-shrink: 0;
  color: var(--green);
}

.shot-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
}

.shot-progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transition: width 0.45s var(--ease);
}

.shot-stage {
  position: relative;
  display: grid;
  height: clamp(240px, 36vw, 460px);
  background: radial-gradient(80% 70% at 50% 40%, #0a1120, #04060c);
}

.shot-slide {
  grid-area: 1 / 1;
  min-height: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.45s;
}

.shot-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0s;
}

.shot-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.shot-zoom-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shot-zoom-trigger::after {
  content: 'Click to zoom';
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.85);
  border: 1px solid var(--line-hi);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

.shot-zoom-trigger:hover::after,
.shot-zoom-trigger:focus-visible::after {
  opacity: 1;
  transform: none;
}

.shot-zoom-trigger:focus-visible {
  outline-offset: -3px;
}

.icon-btn-sm {
  flex-shrink: 0;
  padding: 0.24rem 0.68rem;
}

.shot-info-card {
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shot-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.shot-info-card p {
  color: var(--ink-2);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.shot-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.shot-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.shot-meta-list li span:first-child {
  color: var(--ink-3);
}

.shot-meta-list li span:last-child {
  color: var(--cyan);
  text-align: right;
}

.shot-filmstrip {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
}

.film-thumb {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #05070d;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.film-thumb:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.film-thumb.is-active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.film-thumb img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: cover;
}

/* Tab 2: Domain Eval Telemetry Table */
.eval-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-pill.is-active {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.table-shell {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow-x: auto;
  /* Horizontal scroll affordance: edge glows appear only when content overflows */
  background:
    linear-gradient(90deg, #060a13 35%, rgba(6, 10, 19, 0)) left center / 48px 100% no-repeat local,
    linear-gradient(270deg, #060a13 35%, rgba(6, 10, 19, 0)) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(125, 176, 255, 0.24), transparent) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(125, 176, 255, 0.24), transparent) right center / 16px 100% no-repeat scroll,
    #060a13;
  box-shadow: var(--spec);
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 176, 255, 0.25) transparent;
}

.telemetry-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  min-width: 960px;
}

.telemetry-table th {
  text-align: left;
  padding: 0.82rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.telemetry-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
  transition: color 0.18s var(--ease);
}

.telemetry-table tbody tr {
  transition: background 0.18s var(--ease);
}

.telemetry-table tbody tr:last-child td {
  border-bottom: 0;
}

.telemetry-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(79, 140, 255, 0.035) 60%, transparent);
}

.telemetry-table tbody tr:hover td {
  color: var(--ink);
}

.telemetry-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--cyan);
}

.telemetry-table td:nth-child(3) {
  white-space: nowrap;
}

.telemetry-table td:nth-child(4) {
  min-width: 220px;
  line-height: 1.5;
}

.nowrap {
  white-space: nowrap;
}

.telemetry-table td.ticket {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.telemetry-table td code.queue {
  white-space: nowrap;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
}

.sla {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.sla-fast {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.08);
}

.sla-slow {
  color: var(--green-hi);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.07);
}

.split-tag {
  display: inline-block;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #ddd6fe;
}

.split-tag.seen {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.3);
  color: var(--blue-hi);
}

.loss,
.gain {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  white-space: nowrap;
}

.loss {
  white-space: normal;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: var(--rose);
}

.gain {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--green-hi);
}

/* Severity pills: P0 rose · P1 amber · P2 blue · P3 emerald */
.sev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  padding: 0.02rem 0.4rem;
  border-radius: 5px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.sev-p0 {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.22);
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.25);
}

.sev-p1 {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.5);
}

.sev-p2 {
  color: var(--blue-hi);
  background: rgba(79, 140, 255, 0.16);
  border-color: rgba(79, 140, 255, 0.45);
}

.sev-p3 {
  color: var(--green-hi);
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}

.sev-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sev-legend::before {
  content: 'SEVERITY';
  margin-right: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.table-scroll-hint {
  display: none;
  margin: 0.6rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* Telemetry KPI cards */
.telemetry-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tkpi {
  --acc: 125, 176, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-md);
  background: radial-gradient(120% 100% at 100% 0%, rgba(var(--acc), 0.13), transparent 60%), var(--surface);
  border: 1px solid rgba(var(--acc), 0.26);
  box-shadow: var(--spec);
  overflow: hidden;
}

.tkpi-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.tkpi-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.tkpi-from {
  font-size: 0.9rem;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(251, 113, 133, 0.65);
}

.tkpi-arrow {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.tkpi-to {
  color: rgb(var(--acc));
  text-shadow: 0 0 18px rgba(var(--acc), 0.35);
}

.tkpi-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tkpi-delta {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--acc), 0.14);
  border: 1px solid rgba(var(--acc), 0.4);
  color: rgb(var(--acc));
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.tkpi-sub {
  font-size: 0.72rem;
  color: var(--ink-2);
}

/* Untuned vs. tuned output schema comparison */
.schema-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.1rem;
}

.schema-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid;
  box-shadow: var(--spec);
}

.schema-card.bad {
  background: rgba(251, 113, 133, 0.06);
  border-color: rgba(251, 113, 133, 0.28);
}

.schema-card.good {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.32);
}

.schema-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schema-card.bad .schema-title { color: var(--rose); }
.schema-card.good .schema-title { color: var(--green-hi); }

.schema-card code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(3, 6, 12, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.schema-card.good code {
  color: var(--green-hi);
}

.schema-vs {
  align-self: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-3);
}

/* Tab 3 & Tab 4: Code Switcher & IDE-Grade Code Windows */
.sdk-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sdk-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem 0.38rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--spring);
}

.sdk-subtab:hover {
  color: var(--ink);
  border-color: var(--line-hi);
  transform: translateY(-1px);
}

.subtab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 700;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sdk-subtab.is-active {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.22), rgba(167, 139, 250, 0.16));
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--ink);
  box-shadow: var(--spec), 0 0 0 1px rgba(167, 139, 250, 0.16), 0 10px 26px -10px rgba(124, 92, 255, 0.65);
}

.sdk-subtab.is-active .subtab-num {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  color: #060914;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.55);
}

.code-window {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(125, 176, 255, 0.18);
  background: var(--code-bg);
  box-shadow: var(--spec), 0 30px 70px -32px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.code-window[data-lang="bash"] {
  border-color: rgba(52, 211, 153, 0.18);
}

.qs-window {
  max-width: 880px;
  margin: 0 auto;
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.code-window[data-lang="bash"] .code-window-bar {
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(52, 211, 153, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.cw-left,
.cw-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cw-right {
  flex-shrink: 0;
  gap: 0.55rem;
}

.cw-lights {
  display: inline-flex;
  gap: 7px;
  flex-shrink: 0;
}

.cw-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.cw-lights span:nth-child(1) { background: #ff5f57; }
.cw-lights span:nth-child(2) { background: #febc2e; }
.cw-lights span:nth-child(3) { background: #28c840; }

.cw-file {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--spec);
}

.cw-file svg {
  flex-shrink: 0;
  color: var(--blue-hi);
}

.code-window[data-lang="bash"] .cw-file svg {
  color: var(--green-hi);
}

.cw-file-name,
.cw-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-caption {
  min-width: 0;
  color: var(--ink-3);
}

.lang-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lang-python {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.lang-bash {
  color: var(--green-hi);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.8rem 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 176, 255, 0.3);
  background: linear-gradient(180deg, rgba(125, 176, 255, 0.15), rgba(79, 140, 255, 0.06));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--spec);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--spring), color 0.2s var(--ease);
}

.copy-btn:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--spec), 0 0 0 3px rgba(34, 211, 238, 0.12), 0 6px 18px -6px rgba(34, 211, 238, 0.55);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0) scale(0.97);
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.16);
  color: var(--green-hi);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: inline-block;
  animation: pop-in 0.35s var(--spring);
}

.copy-btn.copy-failed {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.code-pre {
  margin: 0;
  padding: 0.95rem 0 1.05rem;
  overflow-x: auto;
  background: var(--code-bg);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--tok-plain);
  tab-size: 4;
  counter-reset: ln;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 176, 255, 0.25) transparent;
}

.code-pre code {
  display: inline-block;
  min-width: 100%;
  font-family: var(--font-mono);
}

.code-pre.is-swapping code {
  animation: code-swap 0.4s var(--ease);
}

@keyframes code-swap {
  from { opacity: 0.15; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* One flex row per line; the line number is a CSS counter on ::before, so it is
   never part of the DOM text, never selectable, and never copied. */
.code-line {
  display: flex;
  min-height: 1.7em;
  white-space: pre;
  transition: background 0.15s var(--ease);
}

.code-line::before {
  counter-increment: ln;
  content: counter(ln);
  position: sticky;
  left: 0;
  z-index: 1;
  flex: 0 0 3.3rem;
  margin-right: 1rem;
  padding-right: 0.85rem;
  text-align: right;
  color: rgba(148, 163, 194, 0.38);
  background: var(--gutter-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.code-line .lc {
  flex: 1 0 auto;
  padding-right: 1.5rem;
}

.code-line:hover {
  background: rgba(125, 176, 255, 0.06);
}

.code-line:hover::before {
  color: var(--blue-hi);
  background: #0a1222;
}

.code-pre::-webkit-scrollbar,
.code-strip::-webkit-scrollbar,
.table-shell::-webkit-scrollbar {
  height: 8px;
}

.code-pre::-webkit-scrollbar-thumb,
.code-strip::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb {
  background: rgba(125, 176, 255, 0.22);
  border-radius: 999px;
}

/* Syntax tokens */
.tok-com { color: var(--tok-comment); font-style: italic; }
.tok-str { color: var(--green-hi); }
.tok-interp { color: var(--cyan); }
.tok-ph { color: #fde68a; text-decoration: underline dotted rgba(253, 230, 138, 0.55); text-underline-offset: 3px; }
.tok-kw { color: var(--violet); font-weight: 500; }
.tok-cls { color: var(--cyan); }
.tok-fn,
.tok-cmd { color: var(--blue-hi); }
.tok-cmd { font-weight: 600; }
.tok-arg { color: var(--amber); }
.tok-num { color: var(--rose); }
.tok-op { color: var(--tok-op); }
.tok-prop { color: var(--tok-prop); }

.cw-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0.95rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-3);
}

.cw-status-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cw-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

/* Least-privilege IAM security callout */
.iam-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: var(--spec);
}

.iam-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.35), rgba(52, 211, 153, 0.08) 70%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--green-hi);
  box-shadow: var(--spec), 0 8px 22px -10px rgba(52, 211, 153, 0.7);
}

.iam-callout-body h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.iam-callout-body p {
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.iam-agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.iam-agent {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  background: rgba(4, 7, 14, 0.6);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.iam-agent code {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan);
  word-break: break-all;
}

.iam-agent.is-deny {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.05);
}

.iam-agent.is-deny code {
  color: var(--rose);
  text-decoration: line-through;
  text-decoration-color: rgba(251, 113, 133, 0.7);
}

/* --------------------------------------------------------------------------
   8. 6-Column Bento Capabilities Grid (#capabilities)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.35rem;
}

.bento-card {
  --acc: 125, 176, 255;
  position: relative;
  min-width: 0;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  box-shadow: var(--spec), var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Ambient per-accent glow + top specular hairline */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(var(--acc), 0.12), transparent 55%),
    radial-gradient(60% 50% at 100% 100%, rgba(var(--acc), 0.05), transparent 70%);
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--acc), 0.6), transparent);
  opacity: 0.45;
  transition: opacity 0.35s var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--acc), 0.42);
  box-shadow: var(--spec), var(--shadow-card), 0 0 0 1px rgba(var(--acc), 0.1), 0 22px 60px -18px rgba(var(--acc), 0.34);
}

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

.bento-card.card-premium:hover {
  border-color: transparent;
}

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

.spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--acc), 0.13), transparent 45%);
  transition: opacity 0.3s var(--ease);
}

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

.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }

/* Flagship Rotating Conic-Border Card */
.card-premium {
  background:
    linear-gradient(155deg, rgba(12, 19, 34, 0.96), rgba(6, 10, 19, 0.98)) padding-box,
    conic-gradient(from var(--angle), var(--blue), var(--cyan), var(--green), var(--violet), var(--blue)) border-box;
  border: 1.5px solid transparent;
  animation: rotate-conic 9s linear infinite;
}

@keyframes rotate-conic {
  to { --angle: 360deg; }
}

.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.pipeline-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pipe-node {
  padding: 0.9rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.pipe-node-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.pipe-node-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.pipe-node-sub {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.card-icon {
  --acc: 125, 176, 255;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(var(--acc), 0.34), rgba(var(--acc), 0.08) 70%);
  border: 1px solid rgba(var(--acc), 0.38);
  color: rgb(var(--acc));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px -10px rgba(var(--acc), 0.7);
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease);
}

.card-icon.cyan { --acc: 34, 211, 238; }
.card-icon.green { --acc: 110, 231, 183; }
.card-icon.violet { --acc: 167, 139, 250; }
.card-icon.amber { --acc: 251, 191, 36; }

.bento-card:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px -8px rgba(var(--acc), 0.85);
}

.bento-card h3 {
  font-size: 1.24rem;
  margin-bottom: 0.55rem;
}

.bento-card p {
  color: var(--ink-2);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.code-strip {
  position: relative;
  padding: 0.62rem 0.9rem 0.62rem 2rem;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.96), rgba(3, 6, 12, 0.96));
  border: 1px solid rgba(125, 176, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--tok-plain);
  white-space: normal;
  overflow-wrap: break-word;
}

.code-strip::before {
  content: '\203A';
  position: absolute;
  left: 0.85rem;
  top: 0.62rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.85;
}

.code-strip[data-lang="bash"]::before {
  content: '$';
  color: var(--green-hi);
}

/* --------------------------------------------------------------------------
   9. Illustrative Cost & Wait-Time Example (#estimator)
   -------------------------------------------------------------------------- */
.cost-example-shell {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(34, 211, 238, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(13, 20, 35, 0.9), rgba(6, 10, 18, 0.96));
  border: 1px solid var(--line-hi);
  box-shadow: var(--spec), var(--shadow-card), var(--shadow-glow);
  padding: 2rem;
}

.pricing-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow: var(--spec);
  color: var(--ink-2);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.pricing-notice strong {
  color: var(--amber);
}

.pricing-notice a {
  color: var(--blue-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cost-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cost-card {
  --acc: 125, 176, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.35rem;
  border-radius: var(--r-md);
  background: radial-gradient(120% 100% at 100% 0%, rgba(var(--acc), 0.11), transparent 55%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--spec);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cost-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--acc), 0.45);
}

.cost-card.highlight {
  --acc: 34, 211, 238;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.14), rgba(52, 211, 153, 0.07));
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--spec), 0 0 36px -10px rgba(34, 211, 238, 0.42);
}

.cost-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cost-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.cost-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, rgba(var(--acc), 0.3), rgba(var(--acc), 0.08) 70%);
  border: 1px solid rgba(var(--acc), 0.35);
  color: rgb(var(--acc));
  box-shadow: var(--spec);
}

.cost-card-num {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgb(var(--acc));
}

.cost-card.highlight .cost-card-num {
  background: linear-gradient(90deg, var(--cyan), var(--green-hi));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cost-card-note {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.cost-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.cost-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
}

.cost-table thead th.col-hl {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
}

.cost-table tbody th {
  min-width: 210px;
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cost-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.cost-table td.col-hl {
  background: rgba(34, 211, 238, 0.04);
}

.cost-table tbody tr {
  transition: background 0.18s var(--ease);
}

.cost-table tbody tr:hover {
  background: rgba(79, 140, 255, 0.05);
}

.cost-table tbody tr:last-child th,
.cost-table tbody tr:last-child td {
  border-bottom: 0;
}

.cost-val {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-hi);
}

.cost-val.muted {
  color: var(--ink);
}

.cost-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.res-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.res-dot.violet { background: var(--violet); box-shadow: 0 0 10px rgba(167, 139, 250, 0.7); }
.res-dot.blue { background: var(--blue-hi); box-shadow: 0 0 10px rgba(125, 176, 255, 0.7); }
.res-dot.green { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.res-dot.amber { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, 0.7); }

.cost-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.1), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.32);
  box-shadow: var(--spec);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.cost-tip strong {
  color: var(--green-hi);
}

.cost-tip-icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Security & Enterprise Trust Strip (.trust-grid)
   -------------------------------------------------------------------------- */
.trust-strip {
  padding: 3.5rem 0 2rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.trust-card {
  min-width: 0;
  padding: 1.35rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.trust-card:hover {
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.trust-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.trust-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.trust-card p {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Connected Vertical 4-Stage Workflow (#workflow, .flow)
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan), var(--violet), var(--green));
  opacity: 0.45;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.flow-num {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #080d19;
  border: 1.5px solid var(--line-hi);
  box-shadow: 0 0 24px rgba(79, 140, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
}

.flow-card {
  padding: 1.5rem 1.7rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.flow-card:hover {
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, 0.038);
}

.flow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.flow-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.flow-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}

.flow-time.long-wait {
  background: rgba(251, 191, 36, 0.11);
  border-color: rgba(251, 191, 36, 0.38);
  color: var(--amber);
}

.flow-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   12. Final CTA Card (#quickstart) & 3-Column Footer (.site-footer)
   -------------------------------------------------------------------------- */
.cta-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 3rem;
  background:
    radial-gradient(circle at top right, rgba(79, 140, 255, 0.18), transparent 55%),
    radial-gradient(circle at bottom left, rgba(52, 211, 153, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(13, 20, 36, 0.95), rgba(6, 9, 18, 0.98));
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-card-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cta-card-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.cta-card-head p {
  color: var(--ink-2);
  margin-bottom: 0;
}

.cmd-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.cmd-tab {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.cmd-tab:hover {
  color: var(--ink);
  border-color: var(--line-hi);
}

.cmd-tab.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #040812;
  font-weight: 700;
}

.cta-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.88);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.footer-col p {
  color: var(--ink-2);
  font-size: 0.9rem;
  max-width: 390px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--ink-3);
}

.footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   14. Screenshot Lightbox Modal & 404 Page
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 5, 10, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-dialog {
  max-width: 1120px;
  width: 100%;
  border-radius: var(--r-lg);
  background: #080d18;
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.lightbox-img-wrap {
  background: #03050a;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 76vh;
  overflow: auto;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
}

.lightbox-caption {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 404 Center Shell */
.notfound-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  text-align: center;
}

.notfound-card {
  max-width: 620px;
  padding: 3rem 2.4rem;
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(14, 21, 36, 0.9), rgba(7, 11, 20, 0.95));
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.notfound-code {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   15. Surface Depth, Accents, Reveal Choreography & Typography Polish
   -------------------------------------------------------------------------- */
.accent-blue { --acc: 125, 176, 255; }
.accent-cyan { --acc: 34, 211, 238; }
.accent-violet { --acc: 167, 139, 250; }
.accent-amber { --acc: 251, 191, 36; }
.accent-green { --acc: 52, 211, 153; }

.chip-cyan {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.chip-violet {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
}

.chip-amber {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.chip-cyan .chip-dot {
  background: var(--cyan);
  animation-name: pulse-dot-cyan;
}

.chip-violet .chip-dot {
  background: var(--violet);
  animation-name: pulse-dot-violet;
}

@keyframes pulse-dot-cyan {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes pulse-dot-violet {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

/* Crisp top-edge specular highlights on every obsidian surface */
.trust-card,
.flow-card,
.shot-info-card,
.pipe-node,
.dash-kpi,
.dash-chart-box,
.release-banner,
.footer-disclaimer,
.marquee-item,
.lightbox-dialog {
  box-shadow: var(--spec);
}

.cta-card {
  box-shadow: var(--spec), var(--shadow-card), var(--shadow-glow);
}

/* Hero 3D mockup: glass sheen, live pulse, stronger depth */
.dash-window {
  box-shadow: var(--spec), var(--shadow-card), var(--shadow-glow);
}

.dash-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 32%);
}

.dash-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  letter-spacing: 0.08em;
}

.dash-live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s infinite;
}

.ticker-text .tok-str { color: #a7f3d0; }

/* Trust badges with per-card accents */
.trust-badge {
  --acc: 52, 211, 153;
  background: radial-gradient(circle at 30% 20%, rgba(var(--acc), 0.3), rgba(var(--acc), 0.08) 70%);
  border: 1px solid rgba(var(--acc), 0.36);
  color: rgb(var(--acc));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(var(--acc), 0.7);
}

.trust-badge.green { --acc: 110, 231, 183; }
.trust-badge.blue { --acc: 125, 176, 255; }
.trust-badge.violet { --acc: 167, 139, 250; }
.trust-badge.amber { --acc: 251, 191, 36; }

/* Workflow step numbers with gradient rings */
.flow-num {
  background:
    linear-gradient(#080d19, #080d19) padding-box,
    linear-gradient(140deg, var(--blue), var(--cyan), var(--green)) border-box;
  border: 1.5px solid transparent;
}

.flow-step:hover .flow-num {
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.45);
}

.flow-num {
  transition: box-shadow 0.3s var(--ease);
}

.film-thumb:focus-visible {
  opacity: 1;
}

/* Section hairline dividers for vertical rhythm */
.section-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 80%);
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125, 176, 255, 0.22), rgba(34, 211, 238, 0.18), transparent);
}

#console::before,
#quickstart::before {
  display: none;
}

/* Typography rhythm */
h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.section-header p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll-reveal entrance choreography (only hides content when JS is running) */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal-up 0.85s var(--ease) var(--reveal-delay, 0ms) both;
}

.js .card-premium.reveal.is-visible {
  animation: reveal-up 0.85s var(--ease) var(--reveal-delay, 0ms) both, rotate-conic 9s linear infinite;
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* --------------------------------------------------------------------------
   16. Responsive Breakpoints & Reduced Motion
   -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .hero-grid,
  .premium-layout,
  .walkthrough-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-window {
    transform: none;
  }

  .float-tl {
    top: -10px;
    left: 10px;
  }

  .float-br {
    bottom: -10px;
    right: 10px;
  }

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

@media (max-width: 920px) {
  .nav-links,
  .nav-actions .btn-hide-mobile {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .span-4,
  .span-2 {
    grid-column: span 6;
  }

  .footer-grid,
  .cost-cards,
  .iam-agents,
  .schema-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .schema-vs {
    justify-self: center;
  }

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

  .cw-caption {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.2rem;
  }

  .section-block {
    padding: 5.5rem 0;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .metric-divider {
    display: none;
  }

  .hero-metrics {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .dash-kpis,
  .trust-grid,
  .pipeline-nodes,
  .telemetry-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .cost-example-shell,
  .cta-card {
    padding: 1.35rem;
  }

  .console-topbar {
    padding: 0.85rem 0.85rem 0.8rem;
  }

  .console-body {
    padding: 1rem;
  }

  .console-tabs {
    flex-wrap: nowrap;
    align-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    border-radius: 14px;
  }

  .console-tabs::-webkit-scrollbar {
    display: none;
  }

  .console-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .step-arrows {
    width: 100%;
    justify-content: space-between;
  }

  .sdk-subtab {
    width: 100%;
    text-align: left;
  }

  .code-pre {
    font-size: 0.76rem;
  }

  .code-line::before {
    flex-basis: 2.4rem;
    margin-right: 0.7rem;
    padding-right: 0.6rem;
  }

  .code-window-bar .cw-lights {
    display: none;
  }

  .table-scroll-hint {
    display: block;
  }

  .flow::before {
    left: 21px;
  }

  .flow-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.95rem;
  }

  .flow-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .float-card {
    position: static;
    margin-top: 0.6rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lang-pill {
    display: none;
  }

  .shot-browser-bar .cw-lights {
    display: none;
  }
}

@media (hover: none) {
  .ctx-hint {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1 !important;
    animation: none !important;
  }

  .bar-fill,
  .dash-window,
  .marquee-track,
  .aurora,
  .stars,
  .text-aurora {
    animation: none !important;
  }

  .dash-window,
  .hero-stage:hover .dash-window {
    transform: none;
  }
}
