:root {
  --ink: #14241e;
  --ink-soft: #486057;
  --paper: #f4f3eb;
  --paper-bright: #fbfaf5;
  --line: rgba(20, 36, 30, 0.14);
  --green: #174d3c;
  --green-bright: #1f6a51;
  --moss: #8ca18c;
  --signal: #dc7b47;
  --signal-pale: #f2cbb5;
  --night: #10251f;
  --night-soft: #17342b;
  --success: #1f7556;
  --danger: #a44b3e;
  --shadow: 0 22px 70px rgba(34, 49, 42, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20,36,30,.028) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(20,36,30,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(90px); opacity: .25; pointer-events: none; z-index: -1; }
.ambient-one { width: 460px; height: 460px; background: #e4b99f; top: -200px; right: 8%; }
.ambient-two { width: 380px; height: 380px; background: #9dbbab; bottom: -220px; left: -120px; }

.site-header {
  width: min(1380px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; font: 700 20px/1 Georgia, serif; letter-spacing: -.02em; }
.brand-mark { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid var(--green); border-radius: 999px; inset: 2px 8px; transform: rotate(42deg); }
.brand-mark::after { transform: rotate(-42deg); }
.brand-mark i { width: 3px; height: 3px; border-radius: 50%; background: var(--signal); position: absolute; }
.brand-mark i:first-child { transform: translate(-7px,-7px); }
.brand-mark i:last-child { transform: translate(7px,7px); }
.top-actions { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 650; }
.top-actions a, .text-button { color: var(--ink-soft); }
.text-button { background: none; border: 0; padding: 8px 0; cursor: pointer; }
.top-actions a:hover, .text-button:hover { color: var(--ink); }

.button { border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, textarea:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(220,123,71,.35); outline-offset: 3px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary { background: var(--green); color: #fff; padding: 16px 22px; box-shadow: 0 12px 30px rgba(23,77,60,.18); }
.button-primary:hover { background: var(--green-bright); box-shadow: 0 16px 38px rgba(23,77,60,.24); }
.button-small { background: var(--ink); color: white; padding: 11px 17px; font-size: 12px; }
.button-ghost { padding: 9px 13px; background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

.landing { width: min(1380px, calc(100% - 48px)); margin: 0 auto; }
.hero-grid { min-height: 680px; padding: 88px 0 76px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 1px; background: var(--signal); }
.hero-copy h1, .workspace-intro h1 { margin: 0; font: 500 clamp(54px, 6.1vw, 94px)/.94 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero-copy h1 em, .workspace-intro h1 em { color: var(--green); font-weight: 400; }
.hero-lede { width: min(630px, 100%); margin: 34px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.64; }
.hero-actions { margin-top: 40px; display: flex; align-items: center; gap: 20px; }
.hero-note { max-width: 210px; color: #64766f; font-size: 12px; line-height: 1.5; }

.memory-orbit { display: flex; justify-content: center; }
.orbit-surface { width: min(100%, 540px); aspect-ratio: 1; position: relative; border-radius: 50%; background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.9), rgba(239,238,227,.72) 51%, rgba(23,77,60,.06)); border: 1px solid rgba(23,77,60,.14); box-shadow: inset 0 0 70px rgba(255,255,255,.65), var(--shadow); }
.orbit-surface::before, .orbit-surface::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(23,77,60,.18); }
.orbit-surface::after { inset: 28%; border-style: solid; border-color: rgba(23,77,60,.1); }
.orbit-core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; align-content: center; color: white; background: var(--night); box-shadow: 0 20px 46px rgba(16,37,31,.24); z-index: 3; }
.orbit-core span { font: italic 42px/1 Georgia, serif; color: var(--signal-pale); }
.orbit-core small { margin-top: 5px; text-align: center; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; line-height: 1.45; opacity: .72; }
.orbit-path { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); transform-origin: left center; left: 50%; top: 50%; width: 35%; opacity: .38; }
.path-one { transform: rotate(-37deg); }
.path-two { transform: rotate(148deg); }
.orbit-node { position: absolute; width: 104px; padding: 12px 14px; border-radius: 14px; background: rgba(251,250,245,.9); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(20,36,30,.09); display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.orbit-node b { color: var(--signal); font: 600 9px/1 monospace; }
.orbit-node span { margin-top: 5px; font: 600 15px/1 Georgia, serif; }
.node-skill { top: 12%; left: 13%; }
.node-execute { top: 20%; right: 6%; }
.node-recall { bottom: 11%; left: 16%; }
.signal-dot { position: absolute; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 7px rgba(220,123,71,.12); animation: pulse 2.4s infinite; }
.dot-one { top: 19%; left: 47%; }
.dot-two { right: 18%; bottom: 24%; animation-delay: .7s; }

.thesis-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.thesis-band > p { color: var(--signal); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.thesis-band h2, .proof-section h2 { margin: 14px 0 48px; font: 500 clamp(36px,4vw,58px)/1.08 Georgia, serif; letter-spacing: -.035em; }
.thesis-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.thesis-points article { border-left: 1px solid var(--line); padding-left: 22px; }
.thesis-points span { color: var(--green); font: 600 18px/1 Georgia, serif; }
.thesis-points p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.proof-section { padding: 120px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.proof-section h2 { margin-bottom: 0; }
.proof-list article { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.proof-list article:first-child { border-top: 1px solid var(--line); }
.proof-list b { color: var(--signal); font: 600 11px/1.5 monospace; }
.proof-list h3 { margin: 0 0 8px; font: 600 22px/1.15 Georgia, serif; }
.proof-list p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.workspace { width: min(1420px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 120px; }
.workspace-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.workspace-intro h1 { font-size: clamp(48px,5.4vw,80px); }
.demo-meta { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251,250,245,.65); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2f9b6d; box-shadow: 0 0 0 5px rgba(47,155,109,.1); }
.demo-meta div { display: flex; flex-direction: column; gap: 4px; min-width: 100px; }
.demo-meta small, .panel-kicker { color: var(--ink-soft); font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.demo-meta code, .demo-meta strong { font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(330px,.78fr); gap: 24px; align-items: start; }
.run-column, .memory-column { display: grid; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251,250,245,.84); box-shadow: 0 10px 38px rgba(34,49,42,.06); overflow: hidden; }
.composer-panel { padding: 28px; }
.panel-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.panel-label span { color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.panel-label i { color: var(--ink-soft); font-size: 11px; font-style: normal; }
.composer-panel label { display: block; margin-bottom: 12px; font: 600 24px/1.2 Georgia, serif; }
.composer-panel textarea { width: 100%; min-height: 118px; resize: vertical; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 20px 0; font: 500 20px/1.5 Georgia, serif; }
.composer-panel textarea:focus { outline: none; border-color: var(--signal); }
.composer-footer { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.composer-footer p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.panel-heading { padding: 24px 24px 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 6px 0 0; font: 600 25px/1.1 Georgia, serif; }
.count-chip { min-width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 12px; }
.memory-list { padding: 12px; }
.empty-memory { padding: 38px 20px 42px; text-align: center; color: var(--ink-soft); }
.empty-memory .empty-glyph { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 1px dashed var(--moss); display: grid; place-items: center; font: italic 24px Georgia, serif; color: var(--green); }
.empty-memory b { display: block; color: var(--ink); font: 600 17px Georgia, serif; margin-bottom: 8px; }
.empty-memory p { margin: 0; font-size: 12px; line-height: 1.6; }
.memory-card { padding: 18px; border-radius: 15px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--paper-bright); }
.memory-card.invalid { opacity: .58; }
.memory-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.memory-card header span { color: var(--success); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.memory-card.invalid header span { color: var(--danger); }
.memory-card h3 { margin: 14px 0 8px; font: 600 17px/1.25 Georgia, serif; }
.memory-card p { color: var(--ink-soft); margin: 0; font-size: 12px; line-height: 1.6; }
.memory-card dl { margin: 16px 0 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.memory-card dt { font-size: 9px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.memory-card dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; }
.boundary-note { display: flex; gap: 14px; padding: 20px; color: #d8e6df; background: var(--night); border-radius: 18px; }
.boundary-icon { color: var(--signal-pale); font-size: 28px; }
.boundary-note b { font: 600 15px Georgia, serif; }
.boundary-note p { margin: 5px 0 0; color: #9fb4aa; font-size: 11px; line-height: 1.55; }

.run-card { margin-top: 24px; }
.run-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.run-summary .run-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.run-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.run-tag.failed i { background: var(--danger); }
.run-summary h2 { margin: 8px 0 0; font: 600 22px/1.25 Georgia, serif; }
.metric-strip { display: flex; gap: 22px; }
.metric-strip div { min-width: 62px; text-align: right; }
.metric-strip b { display: block; font: 600 17px/1 monospace; }
.metric-strip span { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.run-body { display: grid; grid-template-columns: .86fr 1.14fr; }
.trace { padding: 25px; border-right: 1px solid var(--line); background: #f0efe7; }
.trace h3, .diagnosis h3 { margin: 0 0 20px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.trace-event { position: relative; padding: 0 0 20px 28px; }
.trace-event:last-child { padding-bottom: 0; }
.trace-event::before { content: ""; position: absolute; left: 6px; top: 11px; bottom: -3px; width: 1px; background: var(--line); }
.trace-event:last-child::before { display: none; }
.trace-event::after { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--paper); background: var(--moss); box-shadow: 0 0 0 1px var(--moss); }
.trace-event.tool_failed::after, .trace-event.run_failed::after { background: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.trace-event.memory_found::after, .trace-event.experience_persisted::after { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.trace-event b { display: block; font-size: 12px; margin-bottom: 4px; }
.trace-event p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.diagnosis { padding: 28px; }
.diagnosis blockquote { margin: 0; font: 500 19px/1.55 Georgia, serif; white-space: pre-line; }
.error-copy { color: var(--danger); }
.comparison-panel { padding: 25px; background: var(--night); color: white; }
.comparison-panel header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.comparison-panel h2 { margin: 0; font: 600 24px Georgia, serif; }
.comparison-panel header span { color: var(--signal-pale); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.compare-run { padding: 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; }
.compare-run > span { color: #92a99f; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.compare-metrics { margin-top: 13px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.compare-metrics b { display: block; color: #fff; font: 600 17px monospace; }
.compare-metrics small { color: #92a99f; font-size: 8px; text-transform: uppercase; }
.compare-arrow { color: var(--signal-pale); font-size: 22px; }

.loading-layer { position: fixed; inset: 0; z-index: 20; background: rgba(244,243,235,.9); backdrop-filter: blur(13px); display: grid; place-content: center; justify-items: center; text-align: center; }
.loader-signal { position: relative; width: 86px; height: 86px; margin-bottom: 24px; border: 1px solid rgba(23,77,60,.18); border-radius: 50%; display: grid; place-items: center; }
.loader-signal::before { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(23,77,60,.3); border-radius: 50%; animation: spin 7s linear infinite; }
.loader-signal i { width: 6px; height: 6px; position: absolute; border-radius: 50%; background: var(--signal); animation: glow 1.5s infinite; }
.loader-signal i:first-child { transform: translate(-22px,12px); }
.loader-signal i:last-child { transform: translate(22px,-12px); animation-delay: .5s; }
.loading-layer strong { font: 600 25px Georgia, serif; }
.loading-layer span { color: var(--ink-soft); margin-top: 9px; font-size: 12px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); color: white; background: var(--night); border-radius: 14px; padding: 15px 18px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); }
footer { width: min(1380px, calc(100% - 48px)); margin: 0 auto; min-height: 100px; display: flex; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
footer span { margin-right: auto; color: var(--ink); font: 700 17px Georgia, serif; }

.reveal { animation: rise .7s both; }
.delay-one { animation-delay: .12s; }
.delay-two { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes glow { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 68px; }
  .memory-orbit { width: min(560px,100%); margin: 0 auto; }
  .proof-section { grid-template-columns: 1fr; gap: 50px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .memory-column { grid-template-columns: 1.2fr .8fr; }
}
@media (max-width: 760px) {
  .site-header, .landing, .workspace, footer { width: min(100% - 28px, 1380px); }
  .site-header { height: 72px; }
  .top-actions > a, #copy-link { display: none !important; }
  .hero-grid { padding: 58px 0; gap: 54px; min-height: auto; }
  .hero-copy h1 { font-size: clamp(46px,14vw,66px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .orbit-node { width: 88px; padding: 10px; }
  .node-skill { left: 5%; }
  .node-execute { right: 2%; }
  .thesis-points { grid-template-columns: 1fr; }
  .thesis-points article { padding: 0 0 18px 18px; }
  .workspace { padding-top: 48px; }
  .workspace-intro { align-items: flex-start; flex-direction: column; }
  .demo-meta { width: 100%; }
  .composer-footer { align-items: stretch; flex-direction: column; }
  .composer-footer .button { width: 100%; }
  .run-summary { align-items: flex-start; flex-direction: column; }
  .metric-strip { width: 100%; justify-content: space-between; }
  .metric-strip div { text-align: left; }
  .run-body { grid-template-columns: 1fr; }
  .trace { border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-column { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); text-align: center; }
  footer { flex-wrap: wrap; padding: 25px 0; gap: 10px 20px; }
  footer span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
