/* ==========================================================================
   AI.LIVE Showcase — Modern Design System (Dark-First + Porcelain Light Mode)
   ========================================================================== */

:root {
  --bg: #050814;
  --bg-elevated: rgba(13, 20, 38, 0.72);
  --bg-solid: #0c1326;
  --surface-hover: rgba(56, 189, 248, 0.08);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.36);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-1: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-solid: #ffffff;
  --surface-hover: rgba(37, 99, 235, 0.06);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(37, 99, 235, 0.35);
  --text: #0f172a;
  --text-muted: #475569;
  --accent-1: #0284c7;
  --accent-2: #4f46e5;
  --accent-3: #059669;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.presentation-mode {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle radial ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 75vh;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(560px circle at 80% 15%, rgba(129, 140, 248, 0.18), transparent 65%);
  pointer-events: none;
  z-index: -2;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(600px circle at 20% 20%, rgba(2, 132, 199, 0.12), transparent 65%),
    radial-gradient(560px circle at 80% 15%, rgba(79, 70, 229, 0.12), transparent 65%);
}

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.72;
}

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

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

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

.accent {
  color: var(--accent-1);
}

.gradient-text {
  background: linear-gradient(110deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border: 1px solid var(--border-strong);
  color: var(--accent-1);
}

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

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn-icon:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.36);
}

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

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

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

/* Hero */
.hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.1);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-1);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 1.8s infinite;
}

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

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Telemetry Card */
.telemetry-card {
  overflow: hidden;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .card-header-bar {
  background: rgba(15, 23, 42, 0.04);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #fb7185; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-online {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent-3);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.telemetry-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tele-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.tele-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.tele-val {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.telemetry-console {
  margin: 0 16px 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #060a15;
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.console-line .prompt { color: #38bdf8; margin-right: 6px; }
.console-line.ok { color: #34d399; }
.console-line.info { color: #93c5fd; word-break: break-all; }

/* Timeline */
.timeline-shell {
  padding: 26px;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.era-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-align: left;
}

.era-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.era-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.18));
  border-color: var(--accent-1);
  color: var(--text);
}

.era-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-1);
}

.era-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.era-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(129, 140, 248, 0.16);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.era-info h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.era-info p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.era-example {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-1);
  background: var(--surface-hover);
  font-size: 0.92rem;
}

.example-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-1);
  margin-bottom: 4px;
}

.era-meters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lab Container */
.lab-container {
  overflow: hidden;
}

.lab-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.lab-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lab-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.lab-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent-1);
  background: var(--surface-hover);
}

.tab-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-1);
}

.lab-panel {
  display: none;
  padding: 30px;
}

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

/* Pipeline Simulator */
.pipeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pipeline-header h3, .nlp-input-col h3, .calc-controls h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.pipeline-header p, .nlp-input-col > p, .calc-controls > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.p-step {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
}

.p-step.active {
  border-color: var(--accent-1);
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}

.p-step.done {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.p-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.16);
  margin-bottom: 10px;
}

.p-step.active .p-step-num {
  background: var(--accent-1);
  color: #050814;
}

.p-step.done .p-step-num {
  background: var(--accent-3);
  color: #050814;
}

.p-step-text strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.p-step-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sim-terminal {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #060a15;
}

.sim-terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sim-timer {
  font-size: 0.78rem;
  color: #34d399;
}

.sim-log {
  margin: 0;
  padding: 18px;
  min-height: 175px;
  max-height: 260px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-wrap;
}

/* NLP Panel */
.nlp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.chip:hover {
  border-color: var(--accent-1);
  transform: translateY(-1px);
}

#nlp-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-solid);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

#nlp-textarea:focus {
  border-color: var(--accent-1);
}

.nlp-summary-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  border: 1px solid var(--border);
}

.summary-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  margin-bottom: 5px;
}

.nlp-summary-box p {
  margin: 0;
  font-size: 0.92rem;
}

.sentiment-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-solid);
  margin-bottom: 16px;
}

.sentiment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sentiment-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent-3);
}

.sentiment-badge.negative {
  background: rgba(251, 113, 133, 0.16);
  color: var(--danger);
}

.sentiment-badge.neutral {
  background: rgba(251, 191, 36, 0.16);
  color: var(--warning);
}

.sentiment-bar-wrap {
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-bottom: 8px;
}

.sentiment-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, #fbbf24 50%, #34d399);
  transition: width 0.35s ease;
}

.sentiment-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nlp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mini-metric {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-solid);
  text-align: center;
}

.mini-val {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
}

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

.keywords-box {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-solid);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kw-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text);
}

/* Calculator Panel */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.slider-group {
  margin-top: 20px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-1);
  cursor: pointer;
}

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.cbar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 7px;
}

.cbar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.cbar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cbar-fill.manual {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.cbar-fill.ai {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
}

.calc-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.c-card {
  padding: 15px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-solid);
}

.c-lbl {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.c-val {
  font-size: 1.05rem;
  font-weight: 800;
}

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

.arch-card {
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.arch-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.arch-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

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

.callout-banner {
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: var(--border-strong);
}

.callout-banner h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.callout-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand span, .footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  text-align: center;
  background: var(--bg-solid);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.modal-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  margin-bottom: 20px;
  min-width: 252px;
  min-height: 252px;
}

.qr-frame img {
  display: block;
  border-radius: 8px;
}

.qr-fallback {
  color: #0f172a;
  font-size: 0.85rem;
  max-width: 210px;
}

.copy-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.copy-url-box code {
  flex: 1;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .timeline-detail,
  .nlp-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .nav-links,
  .btn-label {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .lab-nav {
    grid-template-columns: 1fr;
  }

  .lab-tab {
    justify-content: flex-start;
  }

  .lab-panel {
    padding: 20px;
  }

  .arch-grid,
  .calc-summary-cards,
  .timeline-tabs,
  .pipeline-steps {
    grid-template-columns: 1fr;
  }

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

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