/* ══════════════════════════════════════════════════════════════
   Heros — main page (landing)
   ══════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.page-landing { background: var(--bg); overflow-x: hidden; }
.wrap { min-height: 100vh; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.mono { font-family: var(--font-mono); }

/* ── Reveal animations ─────────────────────────────────────── */
.reveal { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.slide-up { transform: translateY(18px); }
.reveal.slide-left { transform: translateX(-24px); }
.reveal.slide-right { transform: translateX(24px); }
.reveal.scale { transform: scale(0.97); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .brand-word { font-size: 1.4rem; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { display: inline-flex; padding: 8px 12px; border-radius: var(--radius-full); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.nav-links a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-toggle { display: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-intro { text-align: center; padding: 72px 20px 40px; max-width: 1200px; margin: 0 auto; }
.new-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.new-badge:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.new-badge i { font-size: 0.7rem; color: var(--text-muted); }
.new-pill { padding: 3px 10px; border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary); font-size: 0.7rem; font-weight: 650; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero-intro .eyebrow { display: flex; justify-content: center; margin-top: 28px; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-intro h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px auto 0; max-width: 900px;
}
.hero-intro h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-muted); line-height: 1.6; }
.hero-intro .lede { max-width: 620px; margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-intro .hero-actions { justify-content: center; }

/* Product shot */
.product-shot { margin: 56px auto 0; max-width: 1040px; padding: 10px; border-radius: 26px; background: linear-gradient(180deg, var(--surface-3), transparent); }
.ps-window {
  display: grid; grid-template-columns: 220px 1fr; text-align: left;
  height: 440px; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow-lg);
}
.ps-side { background: var(--sidebar); border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.ps-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.1rem; padding: 2px 6px 12px; }
.ps-brand img { width: 24px; height: 24px; object-fit: contain; }
.ps-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-item i { width: 14px; color: var(--text-muted); font-size: 0.72rem; }
.ps-item.strong { font-weight: 600; color: var(--text); }
.ps-item.active { background: var(--active); color: var(--text); }
.ps-label { font-size: 0.66rem; color: var(--text-faint); font-weight: 600; padding: 12px 8px 4px; }
.ps-main { display: flex; flex-direction: column; min-width: 0; }
.ps-top { padding: 14px 20px; font-family: var(--font-serif); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.ps-top span { font-family: var(--font-sans); font-size: 0.82rem; color: var(--text-muted); font-weight: 550; }
.ps-top i { font-size: 0.6rem; color: var(--text-faint); }
.ps-msgs { flex: 1; padding: 6px 48px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.ps-user { align-self: flex-end; max-width: 70%; padding: 9px 15px; border-radius: 18px; background: var(--user-bubble); font-size: 0.86rem; }
.ps-ai { display: flex; gap: 12px; font-size: 0.86rem; color: var(--text); }
.ps-ai p { margin-bottom: 6px; }
.ps-ai ul { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.7; }
.ps-avatar { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ps-avatar img { width: 26px; height: 26px; object-fit: contain; }
.ps-route { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--warning-soft); color: var(--warning); font-size: 0.72rem; font-weight: 600; }
.dot.warn { background: var(--warning); }
.ps-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid var(--border); font-size: 0.72rem; color: var(--text-muted); }
.ps-composer { margin: 0 40px 18px; padding: 12px 14px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--composer-shadow); font-size: 0.86rem; color: var(--text-faint); }
.ps-tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ps-chip { padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--border); font-size: 0.72rem; color: var(--text-2); }
.ps-chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ps-send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: 0.75rem; }

/* ── Stats ─────────────────────────────────────────────────── */
.stats-banner { padding: 28px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.stat-card { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.stat-card:last-child { border-right: 0; }
.stat-num-wrapper { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.stat-suffix { color: var(--accent); }
.stat-lbl { font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.tinted { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.spaced { margin-top: 96px; }
.section-eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2, .dev-band h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.08; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); margin-top: 14px; line-height: 1.65; }
.section-head p strong { color: var(--text-2); }

.grid-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcard { padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur); }
.fcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.fcard .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); margin-bottom: 18px; }
.fcard h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.fcard p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 8px; line-height: 1.65; }
.fcard ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.fcard ul li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-2); }
.fcard ul li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fcard.large { padding: 30px; }
.icon-list li { padding-left: 0 !important; display: flex; gap: 12px; }
.icon-list li::before { display: none; }
.icon-list li i { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-size: 0.78rem; }

/* Failover tiers */
.tier-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tier { position: relative; padding: 26px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.tier-index { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tier h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; margin-top: 14px; }
.tier p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 6px; line-height: 1.6; }
.tier-arrow { position: absolute; right: -21px; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: 0.7rem; }
.center-actions { display: flex; justify-content: center; margin-top: 28px; }

/* ── Showcase (models & features) ──────────────────────────── */
.showcase { padding: 96px 0 40px; border-top: 1px solid var(--border); }
.hero-tabs-wrapper { position: sticky; top: 72px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-bottom: 24px; }
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(560px, 100%); padding: 4px; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: var(--radius-full); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 550; transition: color var(--dur); }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { color: var(--on-primary); }
.glider { position: absolute; z-index: 0; top: 4px; left: 4px; height: 36px; width: calc((100% - 8px) / 5); border-radius: var(--radius-full); background: var(--primary); transition: transform 0.3s var(--ease); }

.hero-row { max-width: 1160px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 16px; }
.grad { font-style: italic; color: var(--accent); }
.kind-tag { display: inline-flex; margin-right: 10px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.kind-tag.feature { background: var(--surface-3); color: var(--text-2); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-xs); color: var(--text-2); }
.hero-meta i { color: var(--accent); }
.step-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step-list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-base); color: var(--text-2); }
.step-list li i { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-size: 0.8rem; }

/* Chain card (Baymax / Halo) */
.chain-card { padding: 20px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.chain-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.chain-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); }
.chain-status .dot { animation: dot-pulse 2s infinite; }
.chain { display: flex; flex-direction: column; }
.chain-node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); transition: border-color 0.3s, background 0.3s, opacity 0.3s; }
.chain-node .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); transition: background 0.3s, color 0.3s; }
.chain-node .info { flex: 1; }
.chain-node .name { font-weight: 600; font-size: var(--fs-sm); }
.chain-node .role { font-size: var(--fs-xs); color: var(--text-muted); }
.chain-node .tag { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.chain-node.active { border-color: var(--accent); background: var(--accent-soft); }
.chain-node.active .ic { background: var(--primary); color: var(--on-primary); }
.chain-node.active .tag { color: var(--accent); }
.chain-node.outage { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); opacity: 0.75; }
.chain-node.outage .ic { background: var(--danger); color: #fff; }
.chain-link { width: 2px; height: 14px; margin-left: 31px; background: var(--border-strong); }
.chain-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.55; }
.sim-header { margin-top: 16px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.sim-console { margin-top: 8px; height: 132px; overflow-y: auto; padding: 12px; border-radius: var(--radius); background: var(--code-bg); font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.6; color: #c9cdbe; }
.log-line.system { color: #a7aa9d; }
.log-line.error { color: #f08f7c; }
.log-line.success { color: #a9bf8c; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sim-btn { height: 34px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.sim-btn:hover { background: var(--surface-2); }
.sim-btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.sim-btn.danger:hover { background: var(--danger-soft); }

.halo-flow { display: flex; flex-direction: column; align-items: stretch; }
.halo-req { align-self: center; padding: 8px 16px; border-radius: var(--radius-full); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 550; display: inline-flex; gap: 8px; align-items: center; }
.halo-line { width: 2px; height: 18px; background: var(--border-strong); align-self: center; }
.halo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.halo-branch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--border-strong); text-align: center; }
.halo-q { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.halo-branch > i { color: var(--text-faint); }
.halo-out { padding: 8px 12px; border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.halo-out.fast { background: var(--warning-soft); color: var(--warning); }
.halo-out.deep { background: var(--primary); color: var(--on-primary); }

/* Infinsight data panel */
.data-panel { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.data-panel-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.fdot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.fdot:first-child { margin-right: 0; }
.data-panel-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.upload-chip { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: var(--radius-full); background: var(--success-soft); color: var(--success); font-size: var(--fs-xs); font-weight: 600; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--user-bubble); }
.msg.ai { background: var(--bg); border: 1px solid var(--border); }
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 92px; padding: 12px 14px 0; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.mini-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: var(--accent); opacity: 0.85; }
.mini-chart span.low { background: var(--danger); }

/* Zeno popup mock */
.zeno-popup { max-width: 360px; margin: 0 auto; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.zp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.zp-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.1rem; }
.zp-brand img { width: 26px; height: 26px; object-fit: contain; }
.zp-modes { display: flex; padding: 3px; border-radius: var(--radius-full); background: var(--surface-2); font-size: 0.72rem; font-weight: 600; }
.zp-modes span { padding: 3px 10px; border-radius: var(--radius-full); color: var(--text-muted); }
.zp-modes span.on { background: var(--primary); color: var(--on-primary); }
.zp-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; font-size: var(--fs-sm); }
.zp-ai { align-self: flex-start; max-width: 80%; padding: 9px 13px; border-radius: 14px; background: var(--surface-2); }
.zp-user { align-self: flex-end; max-width: 80%; padding: 9px 13px; border-radius: 14px; background: var(--primary); color: var(--on-primary); }
.zp-input { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; padding: 9px 9px 9px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--text-faint); font-size: var(--fs-sm); }
.zp-actions { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.zp-actions b { padding: 5px 12px; border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary); font-size: 0.72rem; }

/* Zuno player mock */
.zuno-mock { max-width: 380px; margin: 0 auto; padding: 18px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.zm-track { display: flex; align-items: center; gap: 14px; }
.zm-track img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.zm-info { flex: 1; min-width: 0; }
.zm-title { font-weight: 650; }
.zm-artist { font-size: var(--fs-sm); color: var(--text-muted); }
.zm-eq { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.zm-eq span { width: 3px; height: 40%; border-radius: 2px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.zm-eq span:nth-child(2) { animation-duration: 0.8s; } .zm-eq span:nth-child(3) { animation-duration: 1.2s; } .zm-eq span:nth-child(4) { animation-duration: 0.9s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.zm-time { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.72rem; color: var(--text-muted); }
.zm-bar { height: 5px; margin-top: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.zm-bar div { width: 33%; height: 100%; background: var(--primary); }
.zm-controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 14px; color: var(--text-2); }
.zm-play { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); }

/* ── Documents ─────────────────────────────────────────────── */
.doc-overview { max-width: 820px; margin: 0 auto 56px; padding: 30px 32px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); }
.doc-overview h3, .doc-block h3, .doc-subhead { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
.doc-overview p { color: var(--text-2); margin-top: 12px; line-height: 1.75; }
.doc-subhead { text-align: center; margin-bottom: 20px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 56px; }
.doc-card { padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.doc-card-title { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.doc-card-title i { color: var(--accent); }
.doc-card p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.doc-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.doc-block { padding: 28px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.component-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.component-list h4 { font-size: var(--fs-base); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.component-list h4 i { color: var(--accent); width: 18px; text-align: center; }
.component-list p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; line-height: 1.6; padding-left: 28px; }
.pipeline { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.pipeline li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.pipeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--border); }
.pipeline .step { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: var(--fs-sm); }
.pipeline strong { font-size: var(--fs-base); }
.pipeline p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; line-height: 1.6; }
.pipeline.compact li { padding-bottom: 14px; }

/* Developers */
.dev-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.dev-band p { color: var(--text-muted); margin-top: 14px; line-height: 1.7; }
.dev-code { margin: 0; padding: 22px; border-radius: var(--radius-lg); background: var(--code-bg); color: var(--code-text); font-size: 0.8rem; line-height: 1.7; overflow-x: auto; }
.dev-code .c { color: #7d8275; } .dev-code .k { color: #d9a2ff; } .dev-code .s { color: #a9bf8c; }

/* Company */
.company-copy p { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--text-2); margin-bottom: 18px; }

/* FAQ */
.faq-accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; border: 0; background: transparent; text-align: left; font-size: var(--fs-md); font-weight: 550; color: var(--text); }
.faq-trigger i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-size: 0.75rem; transition: transform 0.25s var(--ease), background var(--dur); }
.faq-item.open .faq-trigger i { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.faq-item.open .faq-content { grid-template-rows: 1fr; }
.faq-content-inner { overflow: hidden; color: var(--text-muted); line-height: 1.7; padding: 0 48px 0 4px; }
.faq-item.open .faq-content-inner { padding-bottom: 22px; }

/* CTA */
.cta-band { max-width: 1112px; margin: 40px auto; padding: 72px 24px; border-radius: 32px; text-align: center; background: var(--olive-800); color: var(--bone-50); position: relative; overflow: hidden; }
:root[data-theme="dark"] .cta-band { background: #2a3125; border: 1px solid var(--border); }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 80%; background: radial-gradient(closest-side, rgba(169, 191, 140, 0.22), transparent); pointer-events: none; }
.cta-logo { width: 64px; height: 64px; margin: 0 auto 20px; object-fit: contain; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.03em; line-height: 1.08; color: var(--bone-50); }
.cta-band p { color: rgba(234, 236, 223, 0.72); margin: 16px auto 0; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; position: relative; z-index: 1; }
.btn-invert { background: var(--bone-100); color: var(--olive-900); }
.btn-invert:hover { background: #fff; }
.btn-ghost-invert { background: transparent; color: var(--bone-50); border-color: rgba(234, 236, 223, 0.3); }
.btn-ghost-invert:hover { background: rgba(234, 236, 223, 0.08); }

/* Changelog */
.changelog { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.changelog li { display: flex; gap: 16px; padding: 0 0 26px 24px; position: relative; }
.cl-ic { position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--border); color: var(--accent); font-size: 0.8rem; }
.changelog strong { font-size: var(--fs-md); }
.changelog p { color: var(--text-muted); margin-top: 4px; line-height: 1.6; }

/* Footer */
.footer-refined { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 24px 28px; }
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand-col .brand .brand-word { font-size: 1.35rem; }
.brand-desc { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 12px; max-width: 300px; line-height: 1.6; }
.status-indicator { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 550; color: var(--text-2); }
.footer-nav-col h5 { margin: 0 0 14px; font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.footer-nav-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-nav-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1160px; margin: 44px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--fs-xs); color: var(--text-faint); }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px solid var(--border); }
.footer-socials a:hover { color: var(--text); text-decoration: none; background: var(--hover); }

/* ── Modals (landing) ──────────────────────────────────────── */
.promo-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.promo-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); flex-shrink: 0; }
.promo-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: var(--fs-sm); }
.promo-tx .mono { font-size: 0.72rem; color: var(--text-muted); }
.promo-desc { font-size: var(--fs-xs); color: var(--text-muted); margin: 10px 0 18px; line-height: 1.55; }
.key-field { margin-bottom: 14px; }
.key-field label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
.key-field .hint { margin-left: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--text-faint); }
.label-link { font-weight: 600; }
.label-link i { font-size: 0.6rem; }
.provider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.provider-dot.t2 { background: var(--info); } .provider-dot.t3 { background: var(--warning); } .provider-dot.t4 { background: var(--text-faint); }
.key-input { position: relative; display: flex; }
.key-input input { width: 100%; height: 42px; padding: 0 44px 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: var(--fs-sm); outline: none; }
.key-input input[id$="Key"] { font-family: var(--font-mono); }
.key-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toggle-vis { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border-radius: 7px; border: 0; background: transparent; color: var(--text-muted); }
.toggle-vis:hover { background: var(--hover); color: var(--text); }
.trust-signal { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: var(--fs-xs); color: var(--text-2); line-height: 1.55; }
.trust-signal i { color: var(--accent); margin-top: 2px; }
.auth-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 550; color: var(--text); }
.auth-google-btn:hover { background: var(--surface-2); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-faint); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-alt { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.graceful-body p { color: var(--text-2); line-height: 1.65; }
.save-toast.error { background: var(--danger); color: #fff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  body.nav-open .nav-links a { padding: 12px; font-size: var(--fs-base); }
  .hero-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
  .hero-row.alt .hero-right { order: 2; }
  .tier-strip, .grid-two, .doc-two, .dev-band { grid-template-columns: 1fr; }
  .tier-arrow { right: 50%; top: auto; bottom: -21px; transform: translateX(50%) rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ps-window { grid-template-columns: 1fr; }
  .ps-side { display: none; }
  .ps-msgs { padding: 6px 20px; }
  .ps-composer { margin: 0 16px 16px; }
  .dev-band { padding: 28px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero-intro { padding: 48px 16px 24px; }
  .grid-features, .doc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .ps-window { height: 400px; }
  .ps-route { font-size: 0.66rem; }
  .tab { font-size: var(--fs-xs); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { margin: 24px 12px; padding: 52px 20px; border-radius: 24px; }
  .doc-overview, .doc-block { padding: 22px; }
  .faq-content-inner { padding-right: 4px; }
}
