/* 
  QUANT POD v3.0 — High-Performance Quantitative Design System
  Standards: Dark OLED, OKLCH Color Space, Fluid Clamp Typography, WCAG 2.2 AA
  Zero Emoji Policy — 100% Precision Micro-Vector & Institutional Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* OKLCH Color Matrix */
  --bg-base: oklch(11% 0.015 250);
  --bg-surface: oklch(14% 0.02 250);
  --bg-surface-elevated: oklch(17% 0.025 250);
  --bg-surface-glass: oklch(16% 0.02 250 / 0.75);
  --border-subtle: oklch(24% 0.02 250 / 0.7);
  --border-glow: oklch(34% 0.04 250 / 0.6);
  --border-active: oklch(76% 0.16 205 / 0.8);
  
  --text-main: oklch(98% 0.005 0);
  --text-muted: oklch(70% 0.015 250);
  --text-dim: oklch(52% 0.02 250);
  
  --brand-cyan: oklch(76% 0.16 205);
  --brand-cyan-glow: oklch(76% 0.16 205 / 0.25);
  --brand-amber: oklch(82% 0.18 75);
  --brand-amber-glow: oklch(82% 0.18 75 / 0.25);
  --brand-emerald: oklch(78% 0.18 150);
  --brand-rose: oklch(68% 0.22 25);
  
  /* Fluid Typographic Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --text-lg: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
  --text-3xl: clamp(2.4rem, 1.9rem + 2.0vw, 3.6rem);
  
  /* Geometry & Grid */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --max-width: 1280px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 10%, oklch(25% 0.08 210 / 0.18), transparent 45%),
    radial-gradient(circle at 85% 30%, oklch(25% 0.09 75 / 0.12), transparent 40%),
    radial-gradient(circle at 50% 80%, oklch(20% 0.06 250 / 0.25), transparent 60%),
    var(--bg-base);
}

/* Subtle Grid Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, oklch(100% 0 0 / 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-surface-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  object-fit: cover;
  box-shadow: 0 0 16px var(--brand-cyan-glow);
}

.brand-title {
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px 7px;
  border-radius: 999px;
  background: oklch(76% 0.16 205 / 0.12);
  color: var(--brand-cyan);
  border: 1px solid oklch(76% 0.16 205 / 0.35);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-item-link:hover {
  color: var(--brand-cyan);
}

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

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--brand-cyan);
  color: oklch(10% 0.02 250);
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 18px oklch(76% 0.16 205 / 0.28);
}

.btn-primary:hover {
  background: oklch(82% 0.17 205);
  box-shadow: 0 6px 24px oklch(76% 0.16 205 / 0.45);
}

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

.btn-secondary:hover {
  background: oklch(21% 0.03 250);
  border-color: var(--border-glow);
  color: var(--brand-cyan);
}

.btn-accent {
  background: var(--brand-amber);
  color: oklch(10% 0.02 75);
  box-shadow: 0 4px 18px oklch(82% 0.18 75 / 0.25);
}

.btn-accent:hover {
  background: oklch(86% 0.19 75);
  box-shadow: 0 6px 24px oklch(82% 0.18 75 / 0.4);
}

/* Hero Section */
.hero-section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: oklch(20% 0.03 250);
  border: 1px solid var(--border-glow);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 960px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--brand-cyan) 85%, var(--brand-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Key Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

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

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.metric-val {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}

.metric-val.amber {
  color: var(--brand-amber);
}

.metric-val.emerald {
  color: var(--brand-emerald);
}

.metric-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.metric-desc {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Hero Showcase Banner Frame */
.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 24px 64px oklch(0% 0 0 / 0.65);
  background: var(--bg-surface);
  margin-bottom: 64px;
}

.hero-media-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(180deg, transparent 0%, oklch(11% 0.015 250 / 0.95) 80%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-badge-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-cyan);
  background: oklch(76% 0.16 205 / 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(76% 0.16 205 / 0.3);
}

/* Bento Grid System for Core Philosophy */
.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 680px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-7, .col-5, .col-6 { grid-column: span 12; }
}

.card-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.svg-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  color: var(--brand-cyan);
}

.svg-icon-box.amber {
  color: var(--brand-amber);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: oklch(20% 0.02 250);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.code-snippet-box {
  background: oklch(9% 0.015 250);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-cyan);
  overflow-x: auto;
  margin-top: auto;
}

/* Interactive Laboratory Modules */
.interactive-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.4);
  margin-bottom: 32px;
}

.interactive-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.interactive-title {
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.interactive-status-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: oklch(78% 0.18 150 / 0.12);
  color: var(--brand-emerald);
  border: 1px solid oklch(78% 0.18 150 / 0.35);
}

.interactive-status-pill.danger {
  background: oklch(68% 0.22 25 / 0.15);
  color: var(--brand-rose);
  border-color: oklch(68% 0.22 25 / 0.4);
}

/* Simulator 1: Lookahead Slider */
.timeline-slider-container {
  margin: 24px 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  outline: none;
  border: 1px solid var(--border-subtle);
  accent-color: var(--brand-cyan);
  cursor: pointer;
}

.bars-visualizer {
  display: flex;
  gap: 4px;
  height: 120px;
  align-items: flex-end;
  background: oklch(9% 0.015 250);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 20px 0;
  overflow-x: auto;
}

.price-bar {
  flex: 1;
  min-width: 6px;
  background: var(--border-glow);
  border-radius: 2px;
  position: relative;
  transition: height var(--transition-fast), background var(--transition-fast);
}

.price-bar.active {
  background: var(--brand-cyan);
}

.price-bar.future-peek {
  background: var(--brand-rose);
}

.price-bar.truncated {
  opacity: 0.2;
  background: var(--text-dim);
}

.sim-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .sim-comparison-grid { grid-template-columns: 1fr; }
}

.sim-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sim-box.safe {
  border-left: 4px solid var(--brand-emerald);
}

.sim-box.warning {
  border-left: 4px solid var(--brand-rose);
}

.sim-box-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-metric-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border-collapse: collapse;
}

.sim-metric-table td {
  padding: 6px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.05);
}

.sim-metric-table td:last-child {
  text-align: right;
  color: var(--brand-cyan);
  font-weight: 600;
}

/* Simulator 2: SHA-256 Ledger Tamper Demo */
.ledger-blocks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ledger-block {
  background: oklch(9% 0.015 250);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ledger-block.tampered {
  border-color: var(--brand-rose);
  background: oklch(14% 0.05 25 / 0.3);
}

.ledger-block-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ledger-hash-row {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: 6px;
}

.ledger-hash-val {
  color: var(--brand-cyan);
}

.ledger-block.tampered .ledger-hash-val {
  color: var(--brand-rose);
}

.ledger-payload {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin: 10px 0;
}

.btn-tamper {
  width: 100%;
  padding: 8px;
  font-size: var(--text-xs);
}

/* Tabs for the 10 Engines */
.engines-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.engine-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.engine-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.engine-tab-btn.active {
  color: var(--brand-cyan);
  background: oklch(76% 0.16 205 / 0.1);
  border-color: oklch(76% 0.16 205 / 0.4);
  font-weight: 600;
}

.engine-detail-pane {
  background: oklch(9% 0.015 250);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.engine-name-group h3 {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--text-main);
  margin-bottom: 4px;
}

.engine-role-badge {
  font-size: var(--text-xs);
  color: var(--brand-amber);
}

.code-display-block {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: oklch(90% 0.01 250);
  overflow-x: auto;
  line-height: 1.7;
}

.code-keyword { color: oklch(76% 0.18 310); }
.code-func { color: var(--brand-cyan); }
.code-str { color: var(--brand-emerald); }
.code-comment { color: var(--text-dim); }

/* Screenshots Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
}

.gallery-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.gallery-card-body {
  padding: 20px;
}

.gallery-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Antigravity CLI Command Box */
.terminal-block {
  background: oklch(7% 0.01 250);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.5);
  margin-top: 24px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: oklch(10% 0.015 250);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.dot.red { background: oklch(65% 0.22 25); }
.dot.yellow { background: oklch(80% 0.20 85); }
.dot.green { background: oklch(72% 0.20 145); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-main);
  overflow-x: auto;
  position: relative;
}

.terminal-line {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.prompt-symbol {
  color: var(--brand-cyan);
  user-select: none;
}

.copy-btn-inline {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--text-xs);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn-inline:hover {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
}

/* Modal Lightbox for Images */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: oklch(5% 0.01 250 / 0.92);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  box-shadow: 0 32px 80px oklch(0% 0 0 / 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 380px;
  margin-top: 10px;
}

.footer-links-group h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.05);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* Supported Contracts & Markets */
.contract-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.contract-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.contract-chip.cyan {
  background: oklch(76% 0.16 205 / 0.1);
  border-color: oklch(76% 0.16 205 / 0.35);
  color: var(--brand-cyan);
}

.contract-chip.amber {
  background: oklch(82% 0.18 75 / 0.1);
  border-color: oklch(82% 0.18 75 / 0.35);
  color: var(--brand-amber);
}

.contract-chip.emerald {
  background: oklch(78% 0.18 155 / 0.1);
  border-color: oklch(78% 0.18 155 / 0.35);
  color: var(--brand-emerald);
}

.market-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.05);
  font-size: var(--text-xs);
}

.market-stat-row:last-child {
  border-bottom: none;
}

.market-stat-label {
  color: var(--text-muted);
}

.market-stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}
