:root {
  --ink: #15201d;
  --muted: #66706d;
  --paper: #f4f3ed;
  --paper-deep: #e9e7de;
  --white: #fffefa;
  --night: #0c1110;
  --night-soft: #141b19;
  --mint: #a8f3c6;
  --mint-bright: #54df91;
  --orange: #ff8f5b;
  --line: rgba(21, 32, 29, 0.14);
  --radius: 24px;
  --shadow: 0 30px 80px rgba(16, 28, 23, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8f5;
  background: rgba(12, 17, 16, 0.9);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(168, 243, 198, 0.5);
  border-radius: 10px;
  color: var(--mint);
  background: rgba(168, 243, 198, 0.08);
  font-weight: 800;
}
.brand-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.brand strong { color: var(--mint); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-header nav a { color: rgba(244, 248, 245, 0.72); text-decoration: none; transition: color 160ms ease; }
.site-header nav a:hover { color: #fff; }
.site-header .nav-cta { padding: 10px 17px; border: 1px solid rgba(168, 243, 198, 0.45); border-radius: 999px; color: var(--mint); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 80px clamp(24px, 7vw, 112px) 100px;
  overflow: hidden;
  color: #eef5f0;
  background:
    radial-gradient(circle at 80% 15%, rgba(84, 223, 145, 0.1), transparent 34%),
    linear-gradient(145deg, #0a0f0e 0%, #111a17 62%, #0e1513 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 9px; align-items: center; margin: 0 0 24px; color: #4d675d; font-size: 12px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--mint); }
.hero h1, .section-heading h2, .guide-intro h2, .final-cta h2, .security-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.hero h1 { max-width: 760px; font-size: clamp(56px, 7.5vw, 108px); line-height: 0.92; }
.hero h1 em { color: var(--mint); font-weight: 400; }
.hero-lead { max-width: 650px; margin: 32px 0 0; color: rgba(238, 245, 240, 0.67); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 760; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0b1711; background: var(--mint); box-shadow: 0 14px 40px rgba(84, 223, 145, 0.16); }
.button-primary:hover { background: #c0f9d5; }
.button-secondary { border: 1px solid rgba(255,255,255,.16); color: #eff5f1; background: rgba(255,255,255,.04); }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; margin: 34px 0 0; padding: 0; color: rgba(238,245,240,.48); font-size: 12px; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--mint-bright); }

.hero-visual { position: relative; min-height: 560px; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(168,243,198,.14); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 330px; height: 330px; border-style: dashed; }
.context-core, .agent-card { position: absolute; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 28px 70px rgba(0,0,0,.36); backdrop-filter: blur(18px); }
.context-core {
  top: 50%; left: 50%; width: 310px; min-height: 210px; padding: 30px; border-color: rgba(168,243,198,.25); border-radius: 30px; background: linear-gradient(145deg, rgba(42,65,55,.86), rgba(18,29,25,.9)); transform: translate(-50%, -50%) rotate(-2deg);
}
.core-label { display: block; margin-bottom: 22px; color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.context-core strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 19px; }
.context-files { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.context-files span { padding: 8px 10px; border-left: 2px solid var(--mint); color: rgba(238,245,240,.56); background: rgba(255,255,255,.035); font-size: 9px; letter-spacing: .12em; }
.agent-card { display: flex; gap: 12px; align-items: center; width: 190px; padding: 15px; border-radius: 18px; background: rgba(17,25,23,.82); }
.agent-card small { display: block; color: rgba(238,245,240,.43); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.agent-card strong { display: block; margin-top: 2px; font-size: 14px; }
.agent-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #0c1511; background: var(--mint); font-family: Georgia, serif; font-weight: 800; }
.status-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 0 5px rgba(84,223,145,.08); }
.codex-card { top: 12%; left: 0; transform: rotate(-4deg); }
.claude-card { right: 0; bottom: 13%; transform: rotate(4deg); }
.claude-card .agent-icon { background: var(--orange); }
.visual-caption { position: absolute; right: 12%; bottom: 2%; margin: 0; color: rgba(238,245,240,.35); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.install-section, .principles, .guide-section, .faq-section { padding: 110px clamp(24px, 7vw, 112px); }
.install-section { background: var(--paper-deep); }
.section-heading { max-width: 730px; margin-bottom: 50px; }
.section-heading.compact { max-width: 860px; }
.section-heading h2, .guide-intro h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1; }
.section-heading > p:last-child, .guide-intro > p:last-child { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.installer-card { max-width: 1080px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,254,250,.74); box-shadow: var(--shadow); }
.installer-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.install-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: #dddbd2; }
.mode-button { padding: 9px 16px; border: 0; border-radius: 999px; color: #6d7471; background: transparent; cursor: pointer; font-size: 13px; }
.mode-button.is-active { color: #eff6f1; background: var(--night-soft); box-shadow: 0 4px 12px rgba(12,17,16,.16); }
.guided-intro { display: flex; gap: 8px; flex-direction: column; margin-bottom: 22px; padding: 18px 20px; border: 1px solid rgba(52,129,91,.16); border-radius: 14px; color: var(--muted); background: rgba(168,243,198,.12); font-size: 13px; }
.guided-intro strong { color: #294538; }
.guided-intro[hidden], .direct-options[hidden] { display: none; }
.direct-options { margin-bottom: 22px; }
.direct-options .os-tabs { margin-bottom: 18px; }
.os-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #dddbd2; }
.os-tab { padding: 9px 16px; border: 0; border-radius: 999px; color: #6d7471; background: transparent; cursor: pointer; font-size: 13px; }
.os-tab.is-active { color: #eff6f1; background: var(--night-soft); box-shadow: 0 4px 12px rgba(12,17,16,.16); }
.version-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: monospace; font-size: 11px; }
.installer-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .35fr); gap: 14px; }
.path-field, .agent-field { display: block; }
.path-field span, .agent-field span { display: block; margin-bottom: 8px; color: #5c6662; font-size: 12px; font-weight: 700; }
.path-field input, .agent-field select { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); }
.path-field input { font-family: monospace; }
.command-shell { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; color: #dff9e8; background: #0c1210; }
.shell-topbar { display: flex; gap: 7px; align-items: center; height: 42px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.06); background: #111916; }
.shell-topbar span { width: 8px; height: 8px; border-radius: 50%; background: #2d3a35; }
.shell-topbar span:first-child { background: #fd795e; }
.shell-topbar span:nth-child(2) { background: #e8c564; }
.shell-topbar span:nth-child(3) { background: #5fd18c; }
.shell-topbar small { margin-left: auto; color: rgba(223,249,232,.3); font-size: 10px; }
.command-shell pre { min-height: 108px; margin: 0; padding: 28px 118px 28px 24px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.75; }
.copy-button { position: absolute; right: 17px; bottom: 21px; display: flex; gap: 7px; align-items: center; padding: 9px 12px; border: 1px solid rgba(168,243,198,.18); border-radius: 9px; color: var(--mint); background: rgba(168,243,198,.06); cursor: pointer; font-size: 11px; }
.copy-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.installer-notes { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.installer-notes strong { color: var(--ink); }
.release-proof { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.release-proof a { color: #1f6d4a; font-weight: 800; }
.release-proof code { overflow-wrap: anywhere; color: #355a49; font-size: 10px; }
.copy-status { min-height: 18px; margin: 12px 0 -10px; color: #278352; font-size: 12px; }

.principles { background: var(--white); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card { position: relative; min-height: 390px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f7f2; }
.principle-card.featured { color: #edf6f0; background: var(--night-soft); }
.card-number { position: absolute; top: 25px; right: 25px; color: rgba(21,32,29,.25); font-family: monospace; font-size: 11px; }
.featured .card-number { color: rgba(255,255,255,.3); }
.card-icon { position: relative; width: 76px; height: 76px; margin: 30px 0 60px; }
.file-stack i { position: absolute; width: 50px; height: 60px; border: 1px solid rgba(168,243,198,.5); border-radius: 8px; background: #1c2b26; }
.file-stack i:nth-child(1) { left: 0; transform: rotate(-9deg); }
.file-stack i:nth-child(2) { left: 13px; transform: rotate(-2deg); }
.file-stack i:nth-child(3) { left: 26px; border-color: var(--mint); background: #243d33; transform: rotate(7deg); }
.nodes i { position: absolute; width: 18px; height: 18px; border: 3px solid #597268; border-radius: 50%; }
.nodes i:nth-child(1) { top: 8px; left: 6px; }
.nodes i:nth-child(2) { right: 7px; bottom: 7px; }
.nodes i:nth-child(3) { top: 20px; right: 5px; width: 8px; height: 8px; background: var(--orange); border: 0; }
.nodes::before, .nodes::after { content: ""; position: absolute; top: 28px; left: 20px; width: 45px; height: 1px; background: #94a39d; transform: rotate(35deg); transform-origin: left; }
.nodes::after { top: 47px; transform: rotate(-15deg); }
.shield { width: 62px; height: 72px; border: 2px solid #597268; border-radius: 30px 30px 38px 38px; background: radial-gradient(circle at 50% 42%, var(--mint) 0 5px, transparent 6px); }
.principle-card h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.principle-card p { margin: 15px 0 0; color: var(--muted); line-height: 1.65; }
.principle-card.featured p { color: rgba(237,246,240,.57); }
.principle-card code { font-size: .84em; }
.card-tag { position: absolute; right: 28px; bottom: 28px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #65716c; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.featured .card-tag { border-color: rgba(168,243,198,.2); color: var(--mint); }

.guide-section { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(500px, 1.3fr); gap: clamp(50px, 8vw, 130px); background: var(--paper); }
.guide-section, .guide-intro, .steps, .step, .step-content, .inline-command, .agent-prompts, .agent-prompts article { min-width: 0; }
.guide-intro { position: sticky; top: 130px; align-self: start; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 52px; }
.step-marker { position: relative; }
.step-marker::after { content: ""; position: absolute; top: 43px; bottom: -52px; left: 20px; width: 1px; background: #ced1c9; }
.step:last-child .step-marker::after { display: none; }
.step-marker span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #b9c1bc; border-radius: 50%; color: #587066; background: var(--paper); font-family: monospace; }
.step-content { padding: 4px 0 8px; }
.step-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.step-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.step-heading > span { padding: 6px 9px; border-radius: 999px; color: #66746e; background: #e2e1da; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.step-content > p { margin: 12px 0 18px; color: var(--muted); line-height: 1.6; }
.inline-command { display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.inline-command code { flex: 1; max-width: 100%; overflow-x: auto; color: #355a49; font-size: 11px; white-space: nowrap; }
.inline-command button, .agent-prompts button { flex: 0 0 auto; border: 0; color: #365b4a; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.agent-prompts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agent-prompts article { display: flex; min-height: 220px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.agent-prompts header { display: flex; justify-content: space-between; color: #294538; font-size: 12px; }
.agent-prompts header span { color: #8b9691; font-family: monospace; }
.agent-prompts p { flex: 1; margin: 22px 0; color: #626d68; font-size: 13px; line-height: 1.6; }
.agent-prompts button { align-self: flex-start; padding: 0; }
.trust-prompts article { min-height: 180px; }
.trust-prompts p { margin-bottom: 0; }
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.state-grid span { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: #65716c; background: var(--white); font-size: 12px; line-height: 1.45; }
.state-grid strong { display: block; margin-bottom: 4px; color: #315846; font-family: monospace; font-size: 10px; letter-spacing: .05em; }
.manual-note { margin-top: 18px !important; }

.security-section { padding: 0 clamp(24px, 5vw, 80px) 110px; background: var(--paper); }
.security-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: clamp(36px, 6vw, 80px); border-radius: 34px; color: #eaf4ed; background: linear-gradient(135deg, #14241e, #0c1110); }
.eyebrow.light { color: var(--mint); }
.security-panel h2 { font-size: clamp(40px, 4vw, 62px); line-height: 1.02; }
.security-panel > div:first-child > p:last-child { color: rgba(234,244,237,.55); line-height: 1.7; }
.security-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.security-columns article { padding: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(255,255,255,.035); }
.security-columns h3 { margin: 20px 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.security-columns ul { margin: 0; padding: 0; color: rgba(234,244,237,.55); font-size: 13px; line-height: 1.7; list-style: none; }
.security-columns li { margin: 9px 0; }
.security-columns li::before { content: "—"; margin-right: 8px; color: rgba(168,243,198,.5); }
.check-icon, .no-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #0b1510; background: var(--mint); font-weight: 900; }
.no-icon { color: #2c120a; background: var(--orange); }
.security-columns code { color: var(--mint); }

.faq-section { background: var(--white); }
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 52px 25px 0; cursor: pointer; font-family: Georgia, serif; font-size: 20px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 21px; right: 4px; color: #537165; font-family: sans-serif; font-size: 26px; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; margin: -4px 0 24px; color: var(--muted); line-height: 1.7; }
.faq-list code { padding: 2px 5px; border-radius: 4px; background: #eeede7; font-size: .86em; }

.final-cta { padding: 110px 24px; text-align: center; color: #eff7f1; background: var(--night); }
.final-cta p { margin: 0 0 24px; color: var(--mint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.final-cta h2 { margin-bottom: 38px; font-size: clamp(52px, 7vw, 92px); line-height: .95; }
.button-light { color: var(--night); background: var(--white); }
footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 34px; align-items: center; padding: 34px clamp(24px, 5vw, 80px); border-top: 1px solid rgba(255,255,255,.07); color: rgba(239,247,241,.42); background: var(--night); font-size: 12px; }
.footer-brand { color: #eff7f1; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--mint); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 820px; }
  .hero-visual { width: min(650px, 100%); min-height: 500px; margin: 0 auto; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle-card:last-child { grid-column: 1 / -1; min-height: 320px; }
  .guide-section { grid-template-columns: 1fr; }
  .guide-intro { position: static; max-width: 720px; }
  .security-panel { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding-top: 66px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-visual { min-height: 420px; transform: scale(.9); }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 270px; height: 270px; }
  .context-core { width: 270px; }
  .codex-card { left: -20px; }
  .claude-card { right: -20px; }
  .principle-grid, .security-columns, .agent-prompts, .state-grid { grid-template-columns: 1fr; }
  .principle-card:last-child { grid-column: auto; }
  .command-shell pre { padding: 24px 20px 74px; }
  .installer-toolbar { align-items: flex-start; flex-direction: column-reverse; }
  .install-mode { width: 100%; }
  .mode-button { flex: 1; }
  .installer-fields { grid-template-columns: 1fr; }
  .installer-notes { flex-direction: column; gap: 8px; }
  .step { grid-template-columns: 44px 1fr; gap: 12px; }
  .step-marker span { width: 36px; height: 36px; }
  .step-marker::after { top: 37px; left: 17px; }
  .step-heading { align-items: flex-start; flex-direction: column; }
  .inline-command { align-items: flex-start; flex-direction: column; }
  .inline-command code { width: 100%; }
  .security-panel { gap: 40px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
