/* ================================================================
   Sabas OS — style.css
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #080C14;
  --bg-raised: #0C1120;
  --bg-card: #0E1428;
  --border: #1E2840;
  --border-soft: #141C30;
  --border-bright: #2A3A60;
  --text: #E8EDF8;
  --text-dim: #8A96B8;
  --text-faint: #4A5478;
  --accent: #1E90FF;
  --accent-bright: #7EC8FF;
  --accent-glow: rgba(30,144,255,0.18);
  --flame: #FF4500;
  --flame-dim: rgba(255,69,0,0.15);
  --green: #22C55E;
  --radius: 6px;
}

[data-theme="light"] {
  --bg: #F4F7FD;
  --bg-raised: #EAEEF8;
  --bg-card: #FFFFFF;
  --border: #D0D8EC;
  --border-soft: #E0E6F4;
  --border-bright: #B0BCDA;
  --text: #0E1428;
  --text-dim: #3A4A6A;
  --text-faint: #7A8AAA;
  --accent: #1060CC;
  --accent-bright: #1060CC;
  --accent-glow: rgba(16,96,204,0.12);
  --flame: #D93A00;
  --flame-dim: rgba(217,58,0,0.1);
  --green: #16A34A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.1; }
a { color: var(--accent-bright); text-decoration: none; transition: color .15s; }
a:hover { color: #B0DAFF; }
code, .mono { font-family: 'IBM Plex Mono', 'SF Mono', monospace; }
.display { font-family: 'Montserrat', system-ui, sans-serif; }
::selection { background: var(--accent); color: #04090F; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 48px; }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }

/* Grid bg */
.grid-bg {
  background-image:
    linear-gradient(rgba(126,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,200,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; font-family: 'IBM Plex Mono', monospace;
  cursor: pointer; border: none; transition: all .15s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #3498FF 0%, #1A72E8 100%);
  color: #04090F; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(126,200,255,0.3), 0 8px 28px -8px rgba(30,144,255,0.5);
}
.btn-primary:hover { filter: brightness(1.1); color: #04090F; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-bright); }
.btn-secondary:hover { border-color: #4A6090; background: rgba(126,200,255,0.05); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); }

/* Labels */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--accent-bright); letter-spacing: 1.5px; margin-bottom: 16px;
}
.label::before { content: ''; width: 16px; height: 1px; background: var(--accent-bright); opacity: .6; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card-top-accent { border-top: 2px solid var(--accent); }
.card-top-flame { border-top: 2px solid var(--flame); }

/* Terminal */
.terminal { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 64px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(126,200,255,0.06); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body { padding: 20px; font-size: 13px; line-height: 1.9; color: #8AA4CC; overflow-x: auto; }
.terminal-body .prompt { color: var(--text-faint); }
.terminal-body .out { color: #5A7090; }
.terminal-body .ok { color: var(--accent-bright); }
.terminal-body .cmd { color: #C8D8F0; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--accent-bright); border: 1px solid rgba(126,200,255,0.2); background: rgba(30,144,255,0.07); padding: 5px 12px; border-radius: 3px; margin-bottom: 28px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Nav */
#nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; border-bottom: 1px solid transparent; transition: border-color .2s, background .2s, backdrop-filter .2s; }
#nav.scrolled { border-bottom-color: var(--border-soft); background: rgba(8,12,20,0.9); backdrop-filter: blur(12px); }
[data-theme="light"] #nav { background: rgba(244,247,253,0.95); }
[data-theme="light"] #nav.scrolled { background: rgba(244,247,253,0.95); }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 2.5px; color: var(--text); }
.nav-logo-text span { color: var(--accent-bright); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--border-soft); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,144,255,0.12), transparent 65%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 28px; align-items: start; padding-block: 104px 96px; }
.hero-top { grid-column: 1 / -1; }
.hero-copy { display: flex; flex-direction: column; }
.hero-flash { align-self: center; }
.hero-headline { font-size: 52px; font-weight: 800; letter-spacing: -1px; color: var(--text); margin-bottom: 0; white-space: nowrap; }
.hero-flash { position: relative; }
.hero-flash-track { position: relative; height: 220px; }
.hero-card { position: absolute; inset: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity .26s ease, transform .26s ease, border-color .15s; pointer-events: none; }
.hero-card.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-card.active:hover { border-color: var(--accent-bright); }
.hero-card-icon { display: flex; }
.hero-card-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .3px; }
.hero-card-desc { font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.hero-flash-dots { display: flex; gap: 8px; margin-top: 16px; }
.flash-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-bright); transition: background .3s, transform .3s; cursor: pointer; }
.flash-dot.active { background: var(--accent-bright); transform: scale(1.4); }
.hero-headline em { font-style: normal; color: var(--accent-bright); }
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--text-dim); margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats bar */
.stats-bar { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-raised); }
.stats-inner { display: flex; align-items: stretch; }
.stat-item { flex: 1; padding: 28px 32px; border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 4px; }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent-bright); }
.stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 1px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature-card { background: var(--bg-card); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.feature-card-wide { grid-column: 1 / -1; }
.feature-icon { color: var(--accent-bright); flex-shrink: 0; }
.feature-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); letter-spacing: 1px; }
.feature-title { font-size: 19px; font-weight: 600; color: #F0F4FA; }
.feature-desc { font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.feature-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); padding-top: 8px; border-top: 1px solid var(--border-soft); margin-top: 4px; }

/* Value grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.value-card { background: var(--bg-card); padding: 32px; border-top: 2px solid var(--accent); }
.value-card.flame { border-top-color: var(--flame); }
.value-title { font-size: 16px; font-weight: 600; color: #F0F4FA; margin-bottom: 10px; }
.value-desc { font-size: 13.5px; line-height: 1.65; color: var(--text-dim); }

/* Apps grid */
.apps-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.app-cell { background: var(--bg-card); padding: 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.app-cell svg { color: var(--accent-bright); }
.app-cell.highlight { border-top: 2px solid var(--accent); background: rgba(30,144,255,0.04); }
.app-cell.highlight svg { color: var(--accent-bright); filter: drop-shadow(0 0 6px rgba(126,200,255,0.4)); }
.app-name { font-size: 14px; font-weight: 600; color: #F0F4FA; margin-bottom: 5px; }
.app-desc { font-size: 12px; line-height: 1.6; color: var(--text-dim); }
.app-badge { display: inline-flex; align-items: center; gap: 5px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent-bright); background: rgba(30,144,255,0.1); border: 1px solid rgba(126,200,255,0.2); padding: 3px 8px; border-radius: 3px; margin-top: 2px; width: fit-content; }

/* Architecture */
.arch-supervisor { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 8px; }
.arch-row { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 8px; align-items: stretch; }
.arch-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.arch-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.arch-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-faint); letter-spacing: 1px; margin-bottom: 6px; }
.arch-title { font-size: 15px; font-weight: 600; color: #F0F4FA; margin-bottom: 14px; }
.arch-list { font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 2; color: var(--text-dim); }

/* Path chips */
.path-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.path-chip { border: 1px solid var(--border); border-radius: 4px; padding: 12px 8px; text-align: center; }
.path-chip.active { border-color: var(--accent); background: rgba(30,144,255,0.08); }
.path-letter { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; color: var(--text-dim); }
.path-chip.active .path-letter { color: var(--accent-bright); }
.path-desc { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-faint); margin-top: 5px; }
.path-chip.active .path-desc { color: var(--accent-bright); opacity: .7; }

/* Pipeline */
.pipeline { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pipeline-step { flex: 1; padding: 20px 16px; background: var(--bg-card); border-right: 1px solid var(--border); position: relative; }
.pipeline-step:last-child { border-right: none; }
.pipeline-step::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); z-index: 1; }
.pipeline-step:last-child::after { display: none; }
.pipeline-num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent-bright); margin-bottom: 6px; }
.pipeline-name { font-size: 13px; font-weight: 600; color: #F0F4FA; margin-bottom: 4px; }
.pipeline-detail { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); line-height: 1.6; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 960px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: center; }
.cmp-table thead th { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.cmp-table td { color: var(--text-dim); font-size: 13px; }
.cmp-table .row-label { text-align: left; color: var(--text); font-weight: 500; }
.cmp-table .col-us { background: rgba(30,144,255,0.06); color: var(--accent-bright); border-left: 1px solid rgba(30,144,255,0.25); border-right: 1px solid rgba(30,144,255,0.25); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table .check { color: var(--green); }
.cmp-table .cross { color: var(--text-faint); }

/* Benchmarks */
.bench-env { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.bench-env-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px; letter-spacing: .3px; }
.bench-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.bench-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.bench-table thead tr { background: rgba(255,255,255,.03); }
.bench-table th { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; padding: 12px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.bench-table th.right { text-align: right; }
.bench-table td { padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table tbody tr:hover td { background: rgba(30,144,255,.04); }
.bench-cat-row td { background: rgba(255,255,255,.02); padding: 8px 18px; }
.bench-cat-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-bright); }
.bench-name { font-size: 13px; color: var(--text); font-weight: 500; }
.bench-method { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }
.bench-val { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: var(--accent-bright); text-align: right; white-space: nowrap; }
.bench-ci { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.bench-bar-cell { width: 140px; }
.bench-bar-track { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.bench-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); width: 0; transition: width 1.1s cubic-bezier(.4,0,.2,1); }

/* Install */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-dim); line-height: 1.8; }

/* About */
.about-stat-card { display: flex; align-items: flex-start; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color .2s; }
.about-stat-card:hover { border-color: var(--border-bright); }
.about-stat-icon { color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.about-stat-title { font-size: 14px; font-weight: 600; color: #F0F4FA; margin-bottom: 4px; }
.about-stat-desc { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

/* Reliability */
.rel-card { background: var(--bg-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--accent); }
.rel-card svg { color: var(--accent-bright); flex-shrink: 0; }
.rel-title { font-size: 16px; font-weight: 600; color: #F0F4FA; }
.rel-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }
.rel-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); padding-top: 8px; border-top: 1px solid var(--border-soft); margin-top: 4px; }

/* Security */
.sec-card { background: var(--bg-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.sec-header { display: flex; align-items: center; gap: 12px; }
.sec-header svg { color: var(--accent-bright); flex-shrink: 0; }
.sec-title { font-size: 15px; font-weight: 600; color: #F0F4FA; }
.sec-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }
.sec-desc code { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-bright); background: rgba(30,144,255,0.08); padding: 1px 5px; border-radius: 3px; }

/* Privacy */
.priv-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.priv-card:hover { border-color: var(--border-bright); }
.priv-icon { color: var(--accent-bright); }
.priv-title { font-size: 15px; font-weight: 600; color: #F0F4FA; }
.priv-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }

/* Files deep dive */
.files-feat { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.files-feat-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #F0F4FA; }
.files-feat-title svg { color: var(--accent-bright); flex-shrink: 0; }
.files-feat-desc { font-size: 12.5px; line-height: 1.65; color: var(--text-dim); }
.cloud-row { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.cloud-row:last-child { border-bottom: none; }
.cloud-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cloud-name { color: var(--text); font-weight: 500; min-width: 100px; }
.cloud-note { color: var(--text-faint); font-size: 11px; }

/* FAQ */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: var(--bg-card); border: none; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--text); text-align: left; transition: background .15s; }
.faq-q:hover { background: rgba(126,200,255,0.04); }
.faq-q[aria-expanded="true"] { color: var(--accent-bright); background: rgba(30,144,255,0.05); }
.faq-chevron { flex-shrink: 0; color: var(--text-faint); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--accent-bright); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease; padding: 0 28px; background: var(--bg-raised); }
.faq-a.open { max-height: 400px; padding: 20px 28px 24px; }
.faq-a p { font-size: 14px; line-height: 1.75; color: var(--text-dim); margin: 0; }
.faq-a code { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--accent-bright); background: rgba(30,144,255,0.08); padding: 1px 5px; border-radius: 3px; }

/* Community */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.community-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.community-card:hover { border-color: var(--border-bright); }
.community-card svg { color: var(--accent-bright); }
.community-title { font-size: 15px; font-weight: 600; color: #F0F4FA; }
.community-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); padding-block: 52px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-tagline { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); max-width: 220px; line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint); letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); }

/* Desktop mock */
.desktop-mock { background: #060A12; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; position: relative; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.mock-panel { position: absolute; top: 0; left: 0; right: 0; height: 36px; background: rgba(10,16,30,0.95); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.mock-panel-left { display: flex; align-items: center; gap: 16px; }
.mock-panel-item { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-faint); }
.mock-panel-item.active { color: var(--accent-bright); }
.mock-clock { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-dim); }
.mock-desktop { position: absolute; top: 36px; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.mock-window { background: rgba(12,18,32,0.96); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); }
.mock-btn { width: 8px; height: 8px; border-radius: 50%; }
.mock-content { padding: 12px; flex: 1; }
.mock-line { height: 6px; border-radius: 3px; background: var(--border); margin-bottom: 7px; }
.mock-line.accent { background: rgba(30,144,255,0.3); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border-bright);
  cursor: pointer; color: var(--text-dim); transition: all .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-bright); background: var(--accent-glow); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light theme overrides for elements with hardcoded dark colors */
[data-theme="light"] .hero-headline,
[data-theme="light"] h2.display { color: #0E1428 !important; }
[data-theme="light"] .hero-sub { color: var(--text-dim) !important; }
[data-theme="light"] .terminal { background: #1A1F2E; border-color: #2A3050; }
[data-theme="light"] .terminal-bar { background: rgba(0,0,0,0.15); border-color: #2A3050; }
[data-theme="light"] .desktop-mock { background: #1A1F2E; border-color: var(--border); }
[data-theme="light"] .mock-window { background: rgba(20,26,44,0.97); border-color: #2A3050; }
[data-theme="light"] .mock-panel { background: rgba(16,20,36,0.97); border-color: #2A3050; }
[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(16,96,204,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,96,204,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
[data-theme="light"] .hero-glow { background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16,96,204,0.1), transparent 65%); }
[data-theme="light"] .badge { color: var(--accent-bright); border-color: rgba(16,96,204,0.25); background: rgba(16,96,204,0.07); }
[data-theme="light"] .cmp-table .col-us { background: rgba(16,96,204,0.06); border-color: rgba(16,96,204,0.25); }
[data-theme="light"] .bench-bar-fill { background: linear-gradient(90deg, var(--accent), #4A90E2); }
[data-theme="light"] .app-cell.highlight { background: rgba(16,96,204,0.04); }
[data-theme="light"] .faq-q { background: var(--bg-card); color: var(--text); }
[data-theme="light"] .faq-q:hover { background: rgba(16,96,204,0.04); }
[data-theme="light"] .faq-q[aria-expanded="true"] { background: rgba(16,96,204,0.06); color: var(--accent-bright); }
[data-theme="light"] .faq-a { background: var(--bg-raised); }
[data-theme="light"] .path-chip.active { background: rgba(16,96,204,0.08); border-color: var(--accent); }
[data-theme="light"] .sec-desc code,
[data-theme="light"] .faq-a code { background: rgba(16,96,204,0.08); color: var(--accent-bright); }
[data-theme="light"] .app-badge { background: rgba(16,96,204,0.1); border-color: rgba(16,96,204,0.25); color: var(--accent-bright); }
[data-theme="light"] .bench-env-chip { background: rgba(0,0,0,.04); }
[data-theme="light"] .stats-bar { background: var(--bg-raised); }
[data-theme="light"] .footer { background: var(--bg-raised); }

/* Page nav active state */
.nav-links a.page-active { color: var(--accent-bright); }

/* Page nav strip cards */
.page-nav-card { display: flex; flex-direction: column; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; transition: border-color .15s, background .15s; }
.page-nav-card:hover { border-color: var(--accent-bright); background: var(--accent-glow); color: inherit; }
.page-nav-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent-bright); letter-spacing: 1px; }
.page-nav-title { font-size: 16px; font-weight: 600; color: var(--text); }
.page-nav-desc { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

/* Bench groups (performance page) */
.bench-groups { display:flex; flex-direction:column; gap:32px; }
.bench-group-label { font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--accent-bright); letter-spacing:1px; text-transform:uppercase; margin-bottom:12px; }
.bench-rows { display:flex; flex-direction:column; gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.bench-row { display:grid; grid-template-columns:1fr 140px 120px; gap:16px; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.04); align-items:center; transition:background .15s; }
.bench-row:last-child { border-bottom:none; }
.bench-row:hover { background:rgba(30,144,255,.04); }
.bench-row-name { font-size:13px; color:var(--text); font-weight:500; }
.bench-row-method { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--text-faint); margin-top:2px; }
.bench-val { display:flex; flex-direction:column; align-items:flex-end; }
.bench-val-num { font-family:'IBM Plex Mono',monospace; font-size:14px; font-weight:600; color:var(--accent-bright); }
.bench-val-unit { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--text-faint); }
.bench-val-ci { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--text-faint); }

/* Responsive */
@media (max-width: 900px) {
  .wrap { padding-inline: 24px; }
  #nav { padding-inline: 24px; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 72px 64px; }
  .hero-headline { font-size: 40px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border-soft); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: 1; }
  .value-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-row { grid-template-columns: 1fr; }
  .arch-connector { display: none; }
  .path-row { grid-template-columns: repeat(3, 1fr); }
  .pipeline { flex-direction: column; }
  .pipeline-step::after { display: none; }
  .install-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .about-grid { grid-template-columns: 1fr !important; }
  .section { padding-block: 64px; }
}
