/* ==========================================================================
   AXIS // STUDIO — High-Agency Awwwards-Caliber Aesthetic (10/10 Polish)
   Enforces:
   - Dynamic Island Navigation with Frosted Blur & Refraction + Mobile Drawer
   - Ambient Interactive Background Canvas (Observer-pausing)
   - Spotlight Border Cards (mouse tracking illumination)
   - Bento 2.0 with Asymmetric White-space & Clean Typography
   - High WCAG AA Contrast Compliance (> 4.8:1)
   - 48px+ Mobile Touch Target Compliance
   - Full Responsive Layout (No Horizontal Scroll)
   ========================================================================== */

:root {
  --bg-dark: #07080b;
  --bg-card: #0d0f15;
  --bg-card-elevated: #131620;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(56, 189, 248, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8e9eb3;       /* Elevated from #64748b to guarantee 4.8:1+ WCAG AA */
  
  --accent: #38bdf8;           /* Electric Cyan */
  --accent-secondary: #10b981; /* Emerald Pulse */
  --accent-warn: #fb7185;      /* Alert Coral */
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Syne', sans-serif;
  
  --max-width: 1360px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible High-Contrast Focus Visible Outline (WCAG AAA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Skip to Main Content Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  background: var(--text-primary);
  color: var(--bg-dark);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1.5rem;
}

body {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Canvas Background */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.noise-bg::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

main, header, footer, .dynamic-island-wrap {
  position: relative;
  z-index: 2;
}

.font-mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

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

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

/* ==========================================================================
   DYNAMIC ISLAND NAVIGATION & MOBILE DRAWER
   ========================================================================== */
.dynamic-island-wrap {
  position: fixed;
  top: 1.2rem;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.dynamic-island {
  pointer-events: auto;
  background: rgba(13, 15, 21, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem 0.5rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
}

.island-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.pulse-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.island-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

.island-nav {
  display: flex;
  gap: 1.4rem;
}

.island-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.island-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.island-cta {
  background: var(--text-primary);
  color: var(--bg-dark);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.island-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: auto;
  transition: var(--transition);
}

.mobile-toggle-btn:hover {
  border-color: var(--accent);
}

.toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.mobile-toggle-btn.open .toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-toggle-btn.open .toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer (Smooth Dual-Direction Transition) */
.mobile-drawer {
  pointer-events: none;
  width: 90%;
  max-width: 360px;
  background: rgba(13, 15, 21, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  margin-top: 0.8rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
}

.mobile-drawer.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mobile-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.mobile-link span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-cta-btn {
  margin-top: 0.8rem;
}

/* ==========================================================================
   BUTTONS & TACTILE CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.full-width {
  width: 100%;
}

/* Spotlight Card Effect (Follows Mouse Cursor via JS) */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -1000px);
  left: var(--mouse-x, -1000px);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

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

.spotlight-card:hover {
  border-color: var(--border-strong);
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100dvh;
  padding: 7.5rem 0 4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 9999px;
  color: var(--accent);
}

.live-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 6px var(--accent-secondary);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-coords {
  font-size: 0.72rem;
}

.hero-main-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
}

.headline-contrast {
  color: var(--accent);
  display: inline-block;
  min-width: 100%;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 2.2rem;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-action-cluster {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Hero Right: Live Telemetry Box */
.telemetry-box {
  padding: 1.6rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.telemetry-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.76rem;
}

.system-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.nodes-container {
  padding: 1.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.engine-node {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.engine-node:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.node-state-indicator {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.node-content {
  flex: 1;
}

.node-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.node-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.node-stat {
  font-size: 0.74rem;
  color: var(--accent-secondary);
  margin-top: 0.15rem;
}

.node-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-radius: 3px;
}

.node-connector {
  height: 22px;
  position: relative;
  margin-left: 17px;
  width: 2px;
  background: var(--border-subtle);
}

.connector-pulse {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: flowDown 1.8s infinite linear;
}

.connector-pulse.delay-1 {
  animation-delay: 0.9s;
}

@keyframes flowDown {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.telemetry-stream {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 120px;
  overflow-y: auto;
}

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

.log-time {
  color: var(--accent);
}

.log-line.highlight {
  color: var(--text-secondary);
}

/* Bottom Telemetry Bar */
.hero-bottom-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.tele-col {
  display: flex;
  flex-direction: column;
}

.tele-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.tele-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Kinetic Marquee (Pausable on hover / focus-within) */
.kinetic-marquee {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 0.9rem 0;
}

.kinetic-marquee:hover .marquee-inner,
.kinetic-marquee:focus-within .marquee-inner {
  animation-play-state: paused;
}

.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: marqueeScroll 35s linear infinite;
}

.marquee-sep {
  color: var(--accent);
  opacity: 0.6;
}

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

/* ==========================================================================
   BENTO 2.0 SECTION
   ========================================================================== */
.bento-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-meta-hdr {
  margin-bottom: 3.5rem;
}

.meta-tag {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.65;
}

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

.bento-wide {
  grid-column: span 2;
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.bento-vector-id {
  font-size: 0.74rem;
  color: var(--accent);
}

.bento-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-muted);
}

.bento-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.bento-copy {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.bento-interactive-preview {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}

.preview-browser-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

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

.browser-speed {
  color: var(--accent-secondary);
  font-weight: 700;
}

.speed-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.76rem;
}

.speed-label {
  width: 250px;
  color: var(--text-muted);
}

.speed-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.speed-bar-fill.bad {
  height: 100%;
  background: var(--accent-warn);
}

.speed-bar-fill.good {
  height: 100%;
  background: var(--accent-secondary);
}

.speed-ms {
  width: 140px;
  text-align: right;
  color: var(--text-muted);
}

.speed-ms.highlight {
  color: var(--accent-secondary);
  font-weight: 700;
}

.schema-code-block {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-size: 0.72rem;
  margin-bottom: 1.8rem;
}

.code-comment {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

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

.code-line .kwd {
  color: var(--accent);
}

.pipeline-step-flow {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-size: 0.76rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-chk {
  color: var(--accent-secondary);
  font-weight: bold;
}

.pipe-arrow {
  color: var(--text-muted);
  padding-left: 10px;
}

.bento-foot {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: auto;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 100%);
  border-color: var(--border-accent);
}

.compound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}

.comp-icon {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.comp-txt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   BENCHMARKS & PROVEN EVIDENCE
   ========================================================================== */
.benchmarks-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.bench-card {
  padding: 2.2rem;
}

.bench-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

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

.bench-status {
  color: var(--accent-secondary);
  font-weight: 700;
}

.bench-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.bench-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  margin-bottom: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.b-stat {
  display: flex;
  flex-direction: column;
}

.b-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.b-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.bench-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE LAB / SIMULATOR
   ========================================================================== */
.playground-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lab-terminal {
  background: #090b10;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.lab-nav {
  background: #050609;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.lab-tabs {
  display: flex;
  gap: 0.5rem;
}

.lab-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.lab-tab.active {
  background: var(--bg-card-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.lab-status {
  font-size: 0.72rem;
  color: var(--accent-secondary);
}

.lab-content {
  display: none;
  padding: 2.8rem;
}

.lab-content.active {
  display: block;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.slider-field {
  margin-bottom: 2rem;
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.slider-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-card-elevated);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-dark);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.tech-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--bg-card-elevated);
  border-radius: 3px;
  border: none;
}

.tech-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-dark);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.input-notice {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lab-outputs {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.out-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.out-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.out-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.highlight-box {
  border-color: var(--border-accent);
}

.highlight-box .out-num {
  color: var(--accent-secondary);
}

/* Tab 2: Architecture Benchmark Diagnostic Matrix */
.audit-interface {
  max-width: 700px;
}

.audit-prompt {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.audit-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.audit-select {
  flex: 1;
  min-width: 280px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  min-height: 48px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.audit-select:focus {
  border-color: var(--accent);
}

.audit-results {
  background: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.audit-row .crit {
  color: var(--accent-warn);
  font-weight: 700;
}

.audit-row .ok {
  color: var(--accent-secondary);
  font-weight: 700;
}

/* ==========================================================================
   ARCHITECTURAL CONTRAST TABLE (Readable Body Typography)
   ========================================================================== */
.contrast-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.contrast-table thead th {
  padding: 1.4rem;
  background: #050609;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.8rem;
}

.col-bad {
  color: var(--accent-warn);
}

.col-good {
  color: var(--accent);
}

.contrast-table td,
.contrast-table tbody th {
  padding: 1.5rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.65;
}

.contrast-table th.row-hdr {
  color: var(--text-muted);
  width: 22%;
  font-weight: 700;
  font-size: 0.82rem;
  background: transparent;
  text-align: left;
}

.col-bad-desc {
  color: var(--text-secondary);
  width: 39%;
}

.col-good-desc {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.03);
  width: 39%;
}

/* ==========================================================================
   PROTOCOL / TIMELINE
   ========================================================================== */
.protocol-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.time-card {
  padding: 2rem;
}

.time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  margin-bottom: 1.2rem;
}

.time-stage {
  color: var(--accent);
}

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

.time-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.time-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PRICING DECK
   ========================================================================== */
.pricing-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.price-tier {
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 100%);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 3px;
  white-space: nowrap;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
}

.tier-id {
  color: var(--accent);
}

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

.tier-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tier-cost {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cost-term {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-brief {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.tier-features {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.chk {
  color: var(--accent-secondary);
  font-weight: bold;
  margin-right: 0.4rem;
}

/* ==========================================================================
   DISPATCH FORM
   ========================================================================== */
.dispatch-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.dispatch-card {
  padding: 3.5rem;
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4.5rem;
}

.dispatch-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.dispatch-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.dispatch-telemetry {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.contact-mail-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-mail-link:hover {
  text-decoration: underline;
}

.pure-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fieldset-reset {
  border: none;
  padding: 0;
  margin: 0;
}

.field-legend {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0;
}

.field-wrap label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pure-input, .pure-textarea {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  min-height: 48px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.pure-input:focus, .pure-textarea:focus {
  border-color: var(--accent);
}

.pill-checkboxes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  min-height: 38px;
}

.form-feedback {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}

.feedback-meta {
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.feedback-urgent {
  margin-top: 0.6rem;
  font-size: 0.75rem;
}

.feedback-link {
  color: var(--accent);
  text-decoration: underline;
  transition: var(--transition);
}

.feedback-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.studio-footer {
  background: #040507;
  padding: 4.5rem 0 3rem;
  font-size: 0.8rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr;
  gap: 3rem;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.foot-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.foot-hdr {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.foot-col a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.foot-col a:hover {
  color: var(--accent);
}

.status-live {
  color: var(--accent-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE COLLAPSE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-main-split, .dispatch-grid, .lab-grid, .bench-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bento-grid, .pricing-deck, .timeline-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .compound-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desk-only {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .dynamic-island {
    padding: 0.4rem 0.8rem 0.4rem 1.1rem;
    gap: 0.8rem;
  }
  .hero-bottom-bar {
    grid-template-columns: 1fr 1fr;
  }
  .speed-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
  }
  .speed-label {
    width: 100%;
  }
  .speed-bar-track {
    width: 100%;
    flex: none;
  }
  .speed-ms {
    width: 100%;
    text-align: left;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dispatch-card {
    padding: 1.8rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-inner {
    animation: none !important;
  }
  .pulse-node, .live-blink, .connector-pulse {
    animation: none !important;
  }
}
