/* LabLocal */

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

:root {
  --bg:        #0d0e10;
  --bg-2:      #131418;
  --surface:   #16181d;
  --surface-2: #1d2026;
  --line:      #25282f;
  --line-2:    #2f333c;
  --text:      #f4f5f7;
  --text-2:    #a8acb5;
  --text-3:    #6b6f78;
  --accent:    #c8ff3d;
  --accent-ink:#0d0e10;
  --good:      #3ed598;
  --warn:      #ff9a3d;
  --bad:       #ff5566;

  --r-pill:    999px;
  --r-btn:     10px;

  --pad-x:     clamp(20px, 4vw, 56px);
  --pad-y:     clamp(40px, 6vw, 70px);
  --maxw:      1240px;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg:        #f3f1ec;
  --bg-2:      #eae7df;
  --surface:   #ffffff;
  --surface-2: #f6f4ee;
  --line:      #e2ddd0;
  --line-2:    #cfc9b8;
  --text:      #15171a;
  --text-2:    #5a5d65;
  --text-3:    #8c8f97;
  --accent:    #4f7f1f;
  --accent-ink:#ffffff;
  --good:      #2e8b3f;
  --warn:      #d97706;
  --bad:       #dc2626;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
em { font-style: italic; color: var(--accent); font-family: var(--font-display); }
.hero-title em { margin-right: 0.12em; }
s { text-decoration: line-through; opacity: .55; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--pad-x);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.brand-mark span { background: var(--accent); border-radius: 3px; }
.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) { background: var(--text-2); opacity: .35; }
.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 14px; color: var(--text-2);
}
.nav-links a:hover { color: var(--text); }
.nav-controls { display: flex; gap: 8px; align-items: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-controls { margin-left: auto; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--r-btn);
  transition: transform .15s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 130px) var(--pad-x) clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-floor {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .4;
}
.glow {
  position: absolute; left: 50%; top: 0;
  width: 800px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in oklch, var(--accent) 25%, transparent) 0%, transparent 60%);
  filter: blur(40px);
  opacity: .5;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  text-align: center;
  display: grid; gap: 28px;
  justify-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--r-pill);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s infinite;
  color: var(--accent);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, currentColor 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}

/* ===================== MOCKUP ===================== */
.mockup-wrap {
  padding: clamp(20px, 4vw, 50px) var(--pad-x) var(--pad-y);
  position: relative;
}
.mockup-frame {
  max-width: 1100px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,.7),
    0 0 0 1px color-mix(in oklch, var(--accent) 20%, transparent);
  position: relative;
}
.mockup-frame::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 16px; pointer-events: none;
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--text) 10%, transparent);
}
.chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.chrome-url {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  margin: 0 auto; min-width: 280px; justify-content: center;
}
.chrome-url em { font-style: normal; color: var(--text-3); font-family: var(--font-mono); }
.chrome-url svg { color: var(--good); }
.chrome-spacer { width: 60px; }

/* ---------- dashboard ---------- */
.dash {
  background: linear-gradient(180deg, #f0f0f3 0%, #e8e9ee 100%);
  padding: 28px 32px 32px;
  color: #0f172a;
  font-family: var(--font-body);
}
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.dash-greet { font-family: var(--font-mono); font-size: 11px; color: #94a3b8; letter-spacing: .12em; }
.dash h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #0f172a; margin-top: 4px; }
.dash-actions { display: flex; gap: 8px; align-items: center; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #ffffff; border: 1px solid #e2e7ef;
  border-radius: 999px; font-size: 13px; color: #0f172a; font-weight: 500;
}
.dash-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd0a8, #ec9b6b);
  border: 2px solid #fff; position: relative;
}
.dash-avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, transparent 25%, rgba(0,0,0,.15) 100%);
}
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card-wide { grid-column: span 2; }
.card-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 14px;
}
.chev { color: #cbd5e1; font-size: 18px; line-height: 1; }
.bio-age { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-display); margin-bottom: 10px; }
.ba-num { font-size: 36px; font-weight: 700; color: #0f172a; line-height: 1; }
.ba-unit { font-size: 14px; color: #64748b; margin-right: 8px; font-weight: 400; }
.bio-pill {
  display: inline-block; padding: 5px 11px;
  background: #fee5e5; color: #c83a3a;
  border-radius: 999px; font-size: 12px; font-weight: 500;
}
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.row-icon { color: #94a3b8; }
.row-title { font-size: 13px; color: #0f172a; flex: 1; font-weight: 500; }
.row-date { font-size: 12px; color: #94a3b8; font-family: var(--font-mono); }
.bar-track { display: flex; gap: 3px; height: 10px; border-radius: 4px; overflow: visible; margin-top: 6px; }
.seg { border-radius: 3px; }
.seg-good { background: #2e8b3f; }
.seg-okay { background: #7ed192; }
.seg-warn { background: #f59e0b; }
.seg-bad  { background: #ef4444; }
.bar-thumb {
  position: absolute; top: -3px;
  width: 12px; height: 16px;
  background: #fff; border: 2px solid #0f172a; border-radius: 3px;
}
.bar-foot {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #94a3b8; font-family: var(--font-mono); margin-top: 4px;
}
.bar-value { text-align: right; font-weight: 700; font-size: 16px; margin-top: -10px; color: #0f172a; }
.bar-value-c { text-align: center; }
.markers-legend { display: flex; justify-content: space-around; margin-bottom: 14px; }
.markers-legend div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #64748b; }
.markers-legend strong { font-family: var(--font-display); font-size: 22px; color: #0f172a; font-weight: 700; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.m-good { background: #2e8b3f; }
.m-okay { background: #7ed192; }
.m-warn { background: #f59e0b; }
.markers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 5px; margin-top: 8px;
}
.markers-grid span { width: 12px; height: 12px; border-radius: 50%; }
.chat-card { padding: 16px 18px 14px; }
.badge-local {
  font-family: var(--font-mono); font-size: 10px;
  background: #d1fae5; color: #047857;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 500;
}
.chat-msg { padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; margin-bottom: 8px; max-width: 80%; }
.chat-msg.user { background: #f1f5f9; color: #0f172a; }
.chat-msg.ai { background: #ecfdf5; color: #065f46; margin-left: auto; border: 1px solid #a7f3d0; }
.ai-tag { font-family: var(--font-mono); font-size: 10px; color: #047857; margin-bottom: 4px; letter-spacing: .04em; }
.chat-disclaimer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #94a3b8; margin-top: 4px; font-family: var(--font-mono);
}

@media (max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .dash { padding: 18px 16px; }
}

/* ===================== MANIFESTO ===================== */
.manifesto {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
}
.manifesto-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.manifesto-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em; text-wrap: balance; margin-bottom: 24px;
}
.manifesto-body {
  font-size: clamp(15px, 1.4vw, 18px); color: var(--text-2);
  max-width: 60ch; margin: 0 auto 50px; text-wrap: pretty;
}
.manifesto-body strong { color: var(--text); }
.manifesto-diagram {
  display: grid; grid-template-columns: 1fr 1.2fr 1.4fr 1.2fr 1fr;
  align-items: center; gap: 8px; max-width: 800px; margin: 0 auto;
}
.dia-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
}
.dia-icon {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px;
  background: var(--surface-2); border-radius: 10px; color: var(--text-2);
}
.dia-node-main {
  background: color-mix(in oklch, var(--accent) 12%, var(--surface));
  border-color: var(--accent); transform: scale(1.05);
}
.dia-node-main .dia-icon { background: var(--accent); color: var(--accent-ink); }
.dia-node-bad { opacity: .45; }
.dia-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); text-align: center; line-height: 1.3; }
.dia-label em { font-style: normal; color: var(--text); font-weight: 600; }
.dia-arrow { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; }
.dia-line {
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.dia-line.dashed {
  background: repeating-linear-gradient(90deg, var(--bad) 0 4px, transparent 4px 8px);
  opacity: .6;
}
.dia-tag {
  position: absolute; top: -4px;
  background: var(--bg); padding: 2px 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); border: 1px solid var(--line); border-radius: 4px;
}
.dia-tag.tag-x { color: var(--bad); }
.dia-arrow-x::before {
  content: "✕"; position: absolute;
  font-size: 24px; color: var(--bad);
  background: var(--bg); padding: 0 8px;
}

@media (max-width: 700px) {
  .manifesto-diagram { grid-template-columns: 1fr; gap: 0; }
  .dia-arrow { height: 28px; flex-direction: column; justify-content: center; }
  .dia-line {
    width: 1.5px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    margin: 0 auto;
  }
  .dia-line.dashed { background: repeating-linear-gradient(to bottom, var(--bad) 0 4px, transparent 4px 8px); }
  .dia-tag { display: none; }
  .dia-arrow-x::before { display: none; }
}

/* ===================== FEATURES ===================== */
.features { padding: var(--pad-y) var(--pad-x); border-top: 1px solid var(--line); }
.section-head {
  max-width: var(--maxw); margin: 0 auto 50px;
  text-align: left; display: flex; flex-direction: column; gap: 14px;
}
.section-head .eyebrow { align-self: flex-start; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em; max-width: 22ch; text-wrap: balance;
}
.features-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.feat {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.feat:hover { transform: translateY(-3px); border-color: var(--text-3); }
.feat-lg { grid-column: span 6; flex-direction: row; }
.feat-half { grid-column: span 3; }
@media (max-width: 900px) {
  .feat, .feat-half { grid-column: span 6; }
  .feat-lg { flex-direction: column; }
}
.feat-art {
  flex: 1; min-height: 200px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  border-bottom: 1px solid var(--line);
  position: relative; display: grid; place-items: center;
  overflow: hidden; color: var(--accent);
}
.feat-lg .feat-art { border-bottom: 0; border-right: 1px solid var(--line); min-height: 280px; min-width: 50%; }
.feat-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.feat-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .05em; }
.feat h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.feat p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* feature artworks */
.hub-center {
  width: 110px; height: 110px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  z-index: 2; box-shadow: 0 0 60px color-mix(in oklch, var(--accent) 40%, transparent);
}
.hub-orbit {
  position: absolute; inset: 0; display: grid; place-items: center;
  animation: orbit-spin 100s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orb:nth-child(2),
.orb:nth-child(4),
.orb:nth-child(5),
.orb:nth-child(6) { animation: orb-counter 90s linear infinite; }
@keyframes orb-counter { to { transform: rotate(-360deg); } }
.orb:nth-child(1),
.orb:nth-child(3) { animation: orb-counter-tx 90s linear infinite; }
@keyframes orb-counter-tx {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}
.hub-orbit::before, .hub-orbit::after {
  content: ""; position: absolute;
  border: 1px dashed var(--line-2); border-radius: 50%;
}
.hub-orbit::before { width: 200px; height: 200px; }
.hub-orbit::after  { width: 280px; height: 280px; }
.orb {
  position: absolute;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
}
.orb:nth-child(1) { top: 10%;    left: 50%;   transform: translateX(-50%); }
.orb:nth-child(2) { top: 50%;    right: 5%;   }
.orb:nth-child(3) { bottom: 10%; left: 50%;   transform: translateX(-50%); }
.orb:nth-child(4) { top: 50%;    left: 5%;    }
.orb:nth-child(5) { top: 18%;    right: 18%;  }
.orb:nth-child(6) { bottom: 18%; left: 18%;   }

.feat-art-chart svg { width: 80%; height: 60%; color: var(--accent); }

.feat-art-ai { position: relative; padding: 30px; }
.ai-bubble {
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 18px; border-radius: 16px 16px 16px 4px;
  display: inline-flex; gap: 5px; align-items: center;
  position: absolute; top: 30%; left: 25%;
}
.ai-bubble-q {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 16px 16px 4px 16px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 10px 14px; top: 60%; left: auto; right: 25%; line-height: 1.4;
}
.dot-typing {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .8; animation: bounce 1.4s infinite;
}
.dot-typing:nth-child(2) { animation-delay: .2s; }
.dot-typing:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.feat-art-enc { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.wl-left { display: flex; flex-direction: column; gap: 10px; }
.wl-row { display: flex; align-items: center; gap: 8px; }
.wl-chip {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 14%, var(--surface-2));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--line-2));
  color: var(--text); white-space: nowrap;
}
.wl-arr { font-size: 14px; color: var(--text-3); font-family: var(--font-mono); }
.enc-lock {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; flex-shrink: 0;
  background: color-mix(in oklch, var(--accent) 12%, var(--surface-2));
  border: 1.5px solid color-mix(in oklch, var(--accent) 55%, transparent);
  border-radius: 16px; color: var(--accent);
  box-shadow:
    0 0 28px color-mix(in oklch, var(--accent) 28%, transparent),
    0 0  8px color-mix(in oklch, var(--accent) 14%, transparent);
}
.enc-vapor-wrap { position: relative; width: 52px; height: 90px; }
.enc-v {
  position: absolute;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); opacity: 0;
  animation: evap 2.6s ease-out infinite;
  white-space: nowrap; letter-spacing: .04em;
}
.v1 { left: 2px;  top: 55%; animation-delay: 0s;    }
.v2 { left: 14px; top: 42%; animation-delay: .45s;  }
.v3 { left: 0px;  top: 68%; animation-delay: .9s;   }
.v4 { left: 16px; top: 30%; animation-delay: 1.35s; }
.v5 { left: 4px;  top: 58%; animation-delay: 1.8s;  }
.v6 { left: 10px; top: 48%; animation-delay: 2.25s; }
@keyframes evap {
  0%   { opacity: 0;   transform: translate(0, 0) scale(1); }
  18%  { opacity: .95; }
  100% { opacity: 0;   transform: translate(10px, -30px) scale(.6); }
}

.feat-art-code {
  align-items: stretch; display: flex; flex-direction: column;
  padding: 24px; background: var(--bg-2);
}
.snippet { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.snippet .c { color: var(--accent); }
.snippet .g { color: var(--good); }

.feat-art-time {
  display: flex; flex-direction: column; justify-content: center;
  align-items: stretch; padding: 40px 30px; position: relative;
}
.time-axis { display: flex; justify-content: space-between; position: relative; margin-bottom: 24px; }
.time-axis::before {
  content: ""; position: absolute;
  bottom: 5px; left: 5%; right: 5%; height: 1px; background: var(--line-2);
}
.tick { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.tick em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-bottom: 6px; }
.tick i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.tick.active i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent); }
.time-events { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ev {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; color: var(--text-2);
}
.ev-1 { align-self: flex-start; }
.ev-2 { align-self: center; }
.ev-3 { align-self: flex-end; background: color-mix(in oklch, var(--accent) 18%, var(--surface-2)); color: var(--text); border-color: var(--accent); }

/* ===================== OPEN SOURCE ===================== */
.oss {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 100% 50%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 70%),
    var(--bg);
}
.oss-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
@media (max-width: 900px) { .oss-grid { grid-template-columns: 1fr; } }
.oss-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px); font-weight: 700;
  line-height: 1.05; letter-spacing: -.025em; margin: 16px 0 18px; text-wrap: balance;
}
.oss-text > p { color: var(--text-2); font-size: 16px; max-width: 50ch; }
.oss-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: 32px 0; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.oss-stats div { display: flex; flex-direction: column; gap: 2px; }
.oss-stats strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.oss-stats span { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.oss-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.oss-terminal {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.term-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); position: relative;
}
.term-head span:not(em) { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-head em { font-style: normal; font-size: 11px; color: var(--text-3); position: absolute; left: 50%; transform: translateX(-50%); }
.term-body {
  padding: 18px 20px; font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; min-height: 320px;
}
.term-body .c { color: var(--accent); }
.term-body .m { color: var(--text-3); }
.term-body .g { color: var(--good); }
.cursor { color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===================== FAQ ===================== */
.faq { padding: var(--pad-y) var(--pad-x); border-top: 1px solid var(--line); }
.faq-list {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; border-top: 1px solid var(--line);
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { font-family: var(--font-mono); font-size: 22px; color: var(--accent); transition: transform .25s; }
details[open] .plus { transform: rotate(45deg); }
.faq-list p { padding: 0 4px 22px; color: var(--text-2); font-size: 15px; max-width: 70ch; }

/* ===================== FOOTER ===================== */
.foot { padding: var(--pad-y) var(--pad-x) 30px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding-bottom: 40px; }
.foot-brand p { color: var(--text-2); font-size: 14px; margin-top: 14px; max-width: 36ch; }
.foot-bar {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
}
.foot-license { color: var(--accent); }

/* ===================== NAV CONTROLS ===================== */
#lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 10px;
  border-radius: var(--r-btn);
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text-2); font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  flex-shrink: 0;
}
#lang-toggle:hover {
  background: var(--surface-2); border-color: var(--text-3);
  color: var(--text); transform: translateY(-1px);
}
#theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-btn);
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  flex-shrink: 0;
}
#theme-toggle:hover {
  background: var(--surface-2); border-color: var(--text-3);
  color: var(--text); transform: translateY(-1px);
}
#theme-toggle .icon-sun,
#theme-toggle .icon-moon { display: none; }
[data-theme="dark"]  #theme-toggle .icon-sun  { display: block; }
[data-theme="light"] #theme-toggle .icon-moon { display: block; }
