/* TigerFS — shared styles for all pages.
   Page-specific differences are scoped with body classes:
   .page-home (index), .page-mode (file-first/data-first), .page-docs (docs). */

:root {
  --cream: #f4ede0;
  --ink: #111;
  --mid: #555;
  --rule: #bbb;
  --code-bg: #e8dfd0;
  --code-dark: #ede5d5;
  --yes: #1a7f37;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); color: var(--ink); font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.page-docs { font-size: 15px; line-height: 1.7; }
h1, h2, h3 { font-family: 'Georgia', serif; }
code, pre, .mono { font-family: 'Courier New', Courier, monospace; }

/* NAV */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 48px; border-bottom: 2px solid var(--ink); line-height: 1.6; }
.nav-logo { font-family: monospace; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; text-decoration: none; color: var(--mid); }
.nav-logo .slash, .f-logo .slash { color: #bbb; margin: 0 3px; font-weight: 400; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a { font-family: monospace; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--mid); letter-spacing: 1px; text-transform: uppercase; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.nav-active { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body.page-mode .nav-dropdown-trigger { color: var(--ink); }
body.page-mode .nav-dropdown-trigger .trigger-label { text-decoration: underline; text-underline-offset: 3px; }
.nav-cta { font-family: monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 8px 16px; text-decoration: none; color: var(--ink); background: transparent; }
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* PRODUCT DROPDOWN */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--mid); letter-spacing: 1px; text-transform: uppercase; background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-trigger:hover, .nav-dropdown:focus-within .nav-dropdown-trigger { color: var(--ink); }
.nav-dropdown-caret { font-size: 9px; }
.nav-dropdown-panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px); background: var(--cream); border: 2px solid var(--ink); min-width: 340px; padding: 14px 0 8px; z-index: 50; opacity: 0; visibility: hidden; transition: opacity .12s ease, transform .12s ease; }
.nav-dropdown-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-eyebrow { font-family: monospace; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mid); padding: 0 22px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.nav-dropdown-item { display: block; padding: 10px 22px; text-decoration: none; }
.nav-dropdown-item:hover { background: var(--code-bg); }
.nav-dropdown-item strong { display: block; font-family: monospace; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
.nav-dropdown-item.active strong { text-decoration: underline; text-underline-offset: 3px; }
.nav-dropdown-item span { display: block; font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12px; color: var(--mid); margin-top: 3px; letter-spacing: 0; text-transform: none; }

/* BUTTONS */
.btn-primary { background: var(--ink); color: var(--cream); font-family: monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border: none; padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-secondary { background: transparent; color: var(--ink); font-family: monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

/* SHARED SECTION LABEL (margin scoped per page) */
.section-label { font-family: monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); margin-bottom: 28px; display: block; }
body.page-mode .section-label { margin-bottom: 16px; }
body.page-docs .section-label { margin-bottom: 20px; }

/* CODE BLOCK (margin only in flowing content contexts) */
.code-block { background: var(--code-bg); border: 1px solid #ccc; padding: 16px 20px; font-family: monospace; font-size: 12.5px; line-height: 1.9; color: var(--ink); white-space: pre; overflow-x: auto; }
.code-block .c { color: #888; }
.block .code-block, .doc-section .code-block { margin-bottom: 16px; }

/* PROSE LINKS — plain in-content anchors */
.hero-body a, .mode-card p a, .mode-problem a, .mode-compare-text a, .usecase-meta a, .install p a, .hiw-caption a,
.block a, .doc-section a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px;
}
.hero-body a:visited, .mode-card p a:visited, .mode-problem a:visited, .mode-compare-text a:visited, .usecase-meta a:visited, .install p a:visited, .hiw-caption a:visited,
.block a:visited, .doc-section a:visited { color: var(--ink); }
.hero-body a:hover, .mode-card p a:hover, .mode-problem a:hover, .mode-compare-text a:hover, .usecase-meta a:hover, .install p a:hover, .hiw-caption a:hover,
.block a:hover, .doc-section a:hover { text-decoration-color: var(--ink); }

/* FOOTER */
footer { padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); }
.f-logo { font-family: monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); display: flex; align-items: center; text-decoration: none; }
.f-links { display: flex; gap: 28px; }
.f-links a { font-family: monospace; font-size: 11px; color: var(--mid); text-decoration: none; }
.f-links a:hover { color: var(--ink); }
.f-badge { font-family: monospace; font-size: 10px; letter-spacing: 1px; color: var(--mid); border: 1px solid var(--rule); padding: 4px 10px; text-decoration: none; }

/* HERO TERMINAL — CSS-only animated agent session, macOS-style window */
.hero-terminal { min-width: 0; container-type: inline-size; }
.term { --scene: 9s; --count: 4; border: 1px solid rgba(0,0,0,0.5); border-radius: 10px; overflow: hidden; background: #1b1813; color: #e9e2d4; font-family: 'Courier New', Courier, monospace; box-shadow: 0 22px 48px -16px rgba(0,0,0,0.45), 0 6px 16px -8px rgba(0,0,0,0.30); }
.term-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #262019; border-bottom: 1px solid rgba(0,0,0,0.35); }
.term-dot { width: 12px; height: 12px; border-radius: 50%; background: #4a4036; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 1px; color: #8a7f6f; }
.term-body { position: relative; height: 320px; overflow: hidden; }
.term-scene { position: absolute; inset: 20px; opacity: 0; animation: term-scene calc(var(--scene) * var(--count)) infinite; animation-delay: calc(var(--scene) * var(--i) * -1); }
.term-mode { position: absolute; right: 0; top: 0; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #6f6557; }
@container (max-width: 440px) { .term-mode { display: none; } }
.term-you { font-size: 13.5px; line-height: 1.6; color: #f1ebdd; white-space: nowrap; }
.term-prompt { color: #7fae6f; margin-right: 8px; font-weight: 700; }
.term-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; animation: term-type var(--scene) infinite; }
.term-cursor { display: inline-block; width: 7px; height: 1.05em; background: #e9e2d4; vertical-align: text-bottom; margin-left: 3px; animation: term-blink 1s steps(1) infinite; }
.term-think { margin-top: 14px; font-size: 12px; font-style: italic; color: #8a8070; opacity: 0; animation: term-think var(--scene) infinite; }
.term-cmd { margin-top: 10px; font-size: 12.5px; color: #9bbcf0; white-space: pre-wrap; word-break: break-word; opacity: 0; animation: term-cmd var(--scene) infinite; }
.term-cmd::before { content: "$ "; color: #6f6557; }
.term-agent { margin-top: 10px; font-size: 13px; line-height: 1.8; color: #c9c1b0; opacity: 0; animation: term-reveal var(--scene) infinite; }
.term-agent .p { color: #8ab4ff; }
.term-agent .ok { color: #7fc97f; font-weight: 700; }
.term-agent .q { display: block; margin-top: 8px; color: #f1ebdd; }
@keyframes term-scene { 0% { opacity: 0; } 1.2% { opacity: 1; } 23.5% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes term-type { 0% { max-width: 0; } 14% { max-width: 36ch; } 100% { max-width: 36ch; } }
@keyframes term-think { 0%, 17% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 1; } }
@keyframes term-cmd { 0%, 25% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 1; } }
@keyframes term-reveal { 0%, 36% { opacity: 0; transform: translateY(4px); } 42% { opacity: 1; transform: none; } 100% { opacity: 1; } }
@keyframes term-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .term-scene { animation: none; }
  .term-scene:not(:first-child) { display: none; }
  .term-scene:first-child { opacity: 1; }
  .term-type { animation: none; max-width: none; }
  .term-think, .term-cmd, .term-agent { animation: none; opacity: 1; transform: none; }
  .term-cursor { animation: none; }
}

/* CONVERSATION BLOCK (mode pages) */
.convo { border: 2px solid var(--ink); background: var(--code-dark); margin: 18px 0 8px; }
.convo + .convo { margin-top: 16px; }
.convo-row { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.convo-row:last-child { border-bottom: none; }
.convo-who { font-family: monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); font-weight: 700; margin-bottom: 7px; display: block; }
.convo-you .convo-who { color: var(--ink); }
.convo-text { font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.7; color: #222; overflow-wrap: anywhere; }
.convo-text code { font-family: inherit; font-size: inherit; background: none; padding: 0; }
.convo-list { list-style: none; margin: 10px 0 0; font-family: monospace; font-size: 12px; color: #555; }
.convo-list li { padding: 2px 0; }
.convo-q { margin-top: 10px; font-weight: 700; }
.convo-group { display: block; font-weight: 700; font-size: 13px; margin-top: 12px; }
.convo-pre { font-family: monospace; font-size: 12px; line-height: 1.7; color: #444; margin: 10px 0 0; white-space: pre; overflow-x: auto; }
.convo-note { font-size: 13px; color: var(--mid); line-height: 1.7; margin-top: 14px; }
.under-hood { font-size: 13px; color: var(--mid); line-height: 1.7; margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--rule); }
.under-hood strong { color: var(--ink); font-weight: 700; }
.under-hood code { font-size: 12px; background: var(--code-bg); padding: 1px 4px; }
.under-hood p + p { margin-top: 10px; }
/* Agent interaction: conversation box (left) + explanation (right) on desktop */
.agent-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 36px; align-items: start; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--rule); }
.agent-pair .convo { margin: 0; }
.agent-pair .under-hood { margin: 0; padding-left: 0; border-left: none; }

/* ============ HOME (index) ============ */
/* Hero layout is shared between the landing (.hero) and mode pages (.page-hero)
   so the kicker line and terminal sit at identical positions across all three. */
.hero { padding: 56px 48px; border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hero > * { min-width: 0; }
.hero-kicker { font-family: monospace; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); margin-bottom: 16px; }
.hero-kicker .hl { color: var(--ink); font-weight: 700; }
.kicker-phrase { white-space: nowrap; }
.hero h1 { font-size: clamp(42px, 5.5vw, 68px); font-weight: 900; line-height: 1.0; letter-spacing: -3px; margin-bottom: 20px; }
.hero h1 .invert { background: var(--ink); color: var(--cream); padding: 2px 10px; display: inline-block; line-height: 1.05; }
.hero-body { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.65; color: #333; margin-bottom: 22px; }
.hero-install { background: var(--code-bg); padding: 14px 18px; font-family: monospace; font-size: 13px; color: var(--ink); margin-bottom: 16px; border: 1px solid #ccc; white-space: nowrap; overflow-x: auto; }
.hero-install span { color: #888; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.how-it-works { padding: 48px 48px; border-bottom: 2px solid var(--ink); }
.how-it-works .section-label { margin-bottom: 32px; }
.hiw-pipeline { display: flex; align-items: center; justify-content: center; gap: 0; }
.hiw-box { border: 2px solid var(--ink); padding: 20px 28px; text-align: center; min-width: 160px; background: var(--code-bg); }
.hiw-box-title { font-family: monospace; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.hiw-box-detail { font-family: monospace; font-size: 11px; color: var(--mid); }
.hiw-arrow { font-size: 24px; color: var(--mid); padding: 0 12px; flex-shrink: 0; }
.hiw-caption { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; color: #555; text-align: center; margin-top: 24px; line-height: 1.6; }

.modes { border-bottom: 2px solid var(--ink); }
.modes-header { padding: 24px 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.modes-header-text { padding: 0 24px 0 48px; min-width: 0; }
.modes-illustration { display: block; width: clamp(240px, 28vw, 400px); max-width: 100%; height: auto; justify-self: center; }
.modes-header .section-label { margin-bottom: 12px; }
.modes-header h2 { font-size: clamp(26px, 2.5vw, 42px); font-weight: 900; letter-spacing: -1px; margin-bottom: 40px; line-height: 1.2; }
.h2-break { white-space: nowrap; }
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto auto; border-top: 1px solid var(--rule); }
.mode-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; padding: 40px 48px; }
.mode-card:first-child { border-right: 2px solid var(--ink); }
.mode-tag { font-family: monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); margin-bottom: 16px; display: block; }
.mode-card h3 { font-size: 24px; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.1; }
.mode-card p { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 24px; }
.mode-problem { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 18px; }
.mode-compare-list { list-style: none; margin: 0 0 28px; }
.mode-compare-item { padding: 12px 0; border-top: 1px solid var(--rule); }
.mode-compare-item:last-child { border-bottom: 1px solid var(--rule); }
.mode-compare-label { font-family: monospace; font-size: 11px; color: var(--ink); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 4px; }
.mode-compare-text { font-size: 13px; color: #444; line-height: 1.6; }
.mode-link { font-family: monospace; font-size: 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; letter-spacing: 1px; text-transform: uppercase; }
.mode-link:hover { opacity: 0.6; }

.usecases { border-bottom: 2px solid var(--ink); }
.usecases-header { padding: 48px 48px 40px; border-bottom: 1px solid var(--rule); }
.usecases-header h2 { font-size: 36px; font-weight: 900; letter-spacing: -1.5px; }
.usecase-group { border-bottom: 2px solid var(--ink); }
.usecase-group:last-child { border-bottom: none; }
.usecase-group-label { padding: 20px 48px; background: #ece4d4; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 16px; }
.usecase-group-label span { font-family: monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); }
.usecase-group-label strong { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--ink); }
.usecase { border-bottom: 1px solid var(--rule); padding: 40px 48px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; align-items: start; }
.usecase:last-child { border-bottom: none; }
.usecase-meta h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; line-height: 1.2; }
.usecase-meta p { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; color: #555; line-height: 1.8; }
.usecase-meta .without-line { margin-top: 14px; font-size: 14px; color: #555; line-height: 1.6; }
.without-label { font-family: monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); font-weight: 700; display: block; margin-bottom: 4px; }
.usecase-code { min-width: 0; }
body.page-home pre { font-family: monospace; font-size: 12px; line-height: 1.9; color: #222; white-space: pre; overflow-x: auto; border-left: 3px solid var(--rule); padding-left: 20px; }
body.page-home pre .c { color: #aaa; }
body.page-home pre .cmd { font-weight: 700; }

.install { padding: 80px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; border-bottom: 2px solid var(--ink); }
.install > * { min-width: 0; }
.install h2 { font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1.0; margin-bottom: 20px; }
.install p { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; color: #444; line-height: 1.8; }
.install p + p { margin-top: 16px; }
.install-step { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; min-width: 0; }
.step-label { font-family: monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); }

.safe-band { padding: 26px 48px; border-bottom: 2px solid var(--ink); background: var(--code-dark); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.safe-band-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.safe-band-tag { font-family: monospace; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink); font-weight: 700; border: 1.5px solid var(--ink); padding: 4px 8px; white-space: nowrap; }
.safe-band-flow { font-family: monospace; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; white-space: nowrap; }
.safe-band-flow .arrow { color: var(--mid); margin: 0 8px; font-weight: 400; }
.safe-band-text { font-size: 14px; color: #444; line-height: 1.6; flex: 1; min-width: 220px; }
.safe-band-text a { font-family: monospace; font-size: 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.safe-band-text a:hover { opacity: 0.6; }

.usecase-strip { padding: 48px 48px; border-bottom: 2px solid var(--ink); }
.usecase-strip .section-label { margin-bottom: 8px; }
.usecase-strip h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 900; letter-spacing: -1.2px; margin-bottom: 8px; line-height: 1.1; }
.usecase-strip-grid { border-top: 1px solid var(--rule); margin-top: 24px; }
.strip-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.strip-item:last-child { border-bottom: none; }
.strip-item:nth-child(even) .strip-meta { order: 2; }
.strip-item:nth-child(even) .strip-code { order: 1; }
.strip-meta .mode-tag { margin-bottom: 12px; }
.strip-meta h3 { font-size: 23px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 12px; line-height: 1.15; }
.strip-meta p { font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14.5px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.strip-meta a { font-family: monospace; font-size: 11px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; letter-spacing: 0.5px; text-transform: uppercase; }
.strip-meta a:hover { opacity: 0.6; }
.strip-code { background: var(--code-bg); border: 1px solid #ccc; padding: 16px 20px; font-family: monospace; font-size: 12px; line-height: 1.85; color: #222; white-space: pre; overflow-x: auto; }
.strip-code .c { color: #999; }

/* COPY BUTTON (install commands) — ghost.build-style icon button */
.copyable { display: flex; align-items: center; gap: 10px; }
.copy-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; color: var(--mid); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.copy-btn svg { display: block; }
.copyable:hover .copy-btn { color: var(--ink); }
.copy-btn:hover { color: var(--ink); background: rgba(0,0,0,0.07); }
.copy-btn .ic-check { display: none; }
.copy-btn.copied { color: var(--yes); background: rgba(26,127,55,0.12); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: block; }

/* ============ MODE PAGES (file-first / data-first) ============ */
.page-hero { padding: 56px 48px; border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.page-hero > * { min-width: 0; }
.page-hero-kicker { font-family: monospace; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 900; line-height: 1.0; letter-spacing: -2px; margin-bottom: 22px; }
.page-hero h1 .invert { background: var(--ink); color: var(--cream); padding: 2px 10px; display: inline-block; line-height: 1.1; }
.page-hero p { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 28px; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.illus-placeholder { border: 2px dashed var(--rule); background: var(--code-dark); aspect-ratio: 4 / 3; width: 100%; max-width: 420px; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: monospace; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); padding: 24px; }
.illus-placeholder span { font-size: 10px; letter-spacing: 2px; margin-top: 8px; color: var(--rule); }
.wrap { max-width: 940px; margin: 0 auto; padding: 0 48px; }
.block { padding: 48px 0; border-bottom: 1px solid var(--rule); }
.block h2 { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.1; }
.block h3 { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; margin: 28px 0 10px; line-height: 1.2; }
.block p { color: #333; line-height: 1.8; margin-bottom: 14px; font-size: 15px; }
.block p.lead { font-size: 17px; color: #222; }
.block ul { margin: 0 0 14px 20px; color: #333; }
.block li { margin-bottom: 6px; line-height: 1.7; }
.block code { font-size: 13px; background: var(--code-bg); padding: 1px 5px; }
.cta { padding: 64px 48px; border-bottom: 2px solid var(--ink); text-align: center; }
.cta h2 { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 10px; }
.cta p { color: #444; margin-bottom: 24px; }
.cta .page-hero-actions { justify-content: center; }

/* Mode-page comparison table */
.table-scroll { overflow-x: auto; margin-bottom: 8px; }
body.page-mode .doc-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
body.page-mode .doc-table th { font-family: monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid); text-align: center; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
body.page-mode .doc-table th.tigerfs { color: var(--ink); }
body.page-mode .doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; text-align: center; }
body.page-mode .doc-table td:first-child { text-align: left; font-size: 13px; color: #333; }
body.page-mode .doc-table td.tigerfs { background: var(--code-dark); font-weight: 700; }
body.page-mode .doc-table tr:last-child td { border-bottom: none; }
.yes { color: var(--yes); font-weight: 900; font-size: 15px; }
.no { color: var(--rule); }
.partial { color: var(--mid); }

/* COMPARISON TABLE (landing) */
.compare { padding: 48px 48px; border-bottom: 2px solid var(--ink); }
.compare .section-label { margin-bottom: 8px; }
.compare h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 900; letter-spacing: -1.2px; margin-bottom: 8px; line-height: 1.1; }
.compare p { font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; color: #444; line-height: 1.7; margin-bottom: 24px; max-width: 640px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.cmp-table th { font-family: monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid); text-align: center; padding: 12px; border-bottom: 2px solid var(--ink); }
.cmp-table th.tigerfs { color: var(--ink); }
.cmp-table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.4; text-align: center; }
.cmp-table td:first-child { text-align: left; color: #333; }
.cmp-table td.tigerfs { background: var(--code-dark); font-weight: 700; }
.cmp-table tr:last-child td { border-bottom: none; }

/* Equal-width comparison columns (landing + mode-page tables; not docs ref table) */
.cmp-table, body.page-mode .doc-table { table-layout: fixed; }
.cmp-table th:first-child, .cmp-table td:first-child,
body.page-mode .doc-table th:first-child, body.page-mode .doc-table td:first-child { width: 34%; text-align: left; }

/* ============ DOCS ============ */
.docs-layout { display: grid; grid-template-columns: 200px 1fr; max-width: 1000px; margin: 0 auto; padding: 0 48px; min-width: 0; }
.sidebar { position: sticky; top: 0; align-self: start; padding: 40px 0 40px; border-right: 1px solid var(--rule); }
.sidebar a { display: block; font-family: monospace; font-size: 11px; letter-spacing: 0.5px; text-decoration: none; color: var(--mid); padding: 6px 20px 6px 0; }
.sidebar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.content { padding: 0 0 80px 40px; min-width: 0; }
.doc-section { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.doc-section:last-child { border-bottom: none; }
.doc-section h2 { font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.1; }
.doc-section h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.5px; margin: 28px 0 12px; line-height: 1.2; }
.doc-section p { color: #333; line-height: 1.8; margin-bottom: 14px; }
.doc-section ul, .doc-section ol { margin: 0 0 14px 20px; color: #333; }
.doc-section li { margin-bottom: 6px; line-height: 1.7; }
.doc-section li code { font-size: 13px; background: var(--code-bg); padding: 1px 5px; }
body.page-docs code { font-size: 13px; background: var(--code-bg); padding: 1px 5px; }
body.page-docs .doc-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
body.page-docs .doc-table th { font-family: monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
body.page-docs .doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.6; }
body.page-docs .doc-table td:first-child { font-family: monospace; font-size: 12.5px; white-space: nowrap; }
body.page-docs .doc-table tr:last-child td { border-bottom: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  body.page-docs nav { padding: 20px 24px; }
  .docs-layout { padding: 0 24px; }
  .sidebar { width: auto; }
  .content { padding: 0 0 80px 24px; }
  body.page-docs footer { padding: 32px 24px; }
}

@media (max-width: 700px) {
  nav { padding: 16px 20px; flex-wrap: wrap; gap: 12px 16px; }
  body.page-docs nav { padding: 16px 24px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .nav-dropdown { position: static; }
  .nav-dropdown-trigger { display: none; }
  .nav-dropdown-panel { position: static; transform: none; opacity: 1; visibility: visible; border: none; background: none; min-width: 0; padding: 0; display: flex; gap: 16px; }
  .nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { transform: none; }
  .nav-dropdown-eyebrow { display: none; }
  .nav-dropdown-item { padding: 0; }
  .nav-dropdown-item:hover { background: none; }
  .nav-dropdown-item span { display: none; }
  .nav-dropdown-item strong { font-size: 13px; color: var(--mid); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  footer { padding: 24px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
  body.page-docs footer { padding: 24px; }
  .term-body { height: 300px; }
  .term { box-shadow: 0 12px 30px -12px rgba(0,0,0,0.40); }

  /* home */
  .hero { grid-template-columns: 1fr; padding: 40px 20px; gap: 32px; }
  .hero > * { max-width: 100%; }
  .how-it-works { padding: 40px 20px; }
  .hiw-pipeline { flex-direction: column; }
  .hiw-arrow { transform: rotate(90deg); padding: 8px 0; }
  .modes-header { padding: 16px 20px 0; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 16px; grid-template-columns: none; }
  .modes-header-text { padding: 0; }
  .modes-header h2 { font-size: clamp(22px, 7vw, 30px); }
  .modes-illustration { width: 260px; max-width: 100%; align-self: center; margin: 0; justify-self: auto; }
  .modes-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .mode-card { display: block; grid-row: auto; padding: 32px 20px; }
  .mode-card:first-child { border-right: none; border-bottom: 2px solid var(--ink); }
  .usecases-header { padding: 40px 20px; }
  .usecase-group-label { padding: 16px 20px; }
  .usecase { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; }
  .install { grid-template-columns: 1fr; padding: 48px 20px; gap: 40px; }
  .install h2 { font-size: 36px; }
  .safe-band { padding: 20px; gap: 16px; }
  .usecase-strip { padding: 32px 20px; }
  .compare { padding: 32px 20px; }
  /* Narrower comparison columns on mobile so more fit on screen */
  .cmp-table, body.page-mode .doc-table { min-width: 0; font-size: 11px; }
  .cmp-table th, .cmp-table td,
  body.page-mode .doc-table th, body.page-mode .doc-table td { padding: 7px 4px; }
  .cmp-table th:first-child, .cmp-table td:first-child,
  body.page-mode .doc-table th:first-child, body.page-mode .doc-table td:first-child { width: 30%; }
  .yes { font-size: 13px; }
  .strip-item { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .strip-item:nth-child(even) .strip-meta { order: 0; }
  .strip-item:nth-child(even) .strip-code { order: 0; }

  /* mode pages */
  .page-hero { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .illus-placeholder { order: -1; max-width: 100%; }
  .wrap { padding: 0 20px; }
  .block { padding: 36px 0; }
  .block h2 { font-size: 24px; }
  .cta { padding: 48px 20px; }
  .cta h2 { font-size: 26px; }
  .agent-pair { grid-template-columns: 1fr; gap: 0; }
  .agent-pair .under-hood { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--rule); }

  /* docs */
  .docs-layout { grid-template-columns: 1fr; padding: 0 24px; }
  .sidebar { position: static; border-right: none; border-bottom: 1px solid var(--rule); padding: 20px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .sidebar a { padding: 4px 0; }
  .content { padding: 0 0 60px; min-width: 0; }
  .doc-section h2 { font-size: 22px; }
  body.page-docs .doc-table td:first-child { white-space: normal; }
}
