@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Lore — landing site styles. Zero build. Edit the variables below to retheme.
   Warm, dark, amber. Serif display (Instrument Serif), Hanken Grotesk body,
   JetBrains Mono for code.
--------------------------------------------------------------------------- */

:root {
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ink: #15120d;            /* page background */
  --panel: #1c1711;          /* alternating sections */
  --surface: #1d1812;        /* cards */
  --border: #2f2719;
  --text: #f3ece0;
  --muted: #a79a85;
  --faint: #766b58;

  --accent: #22a06b;         /* emerald */
  --accent-strong: #34c98a;
  --accent-tint: rgba(34, 160, 107, 0.13);
  --accent-soft: #8fe0bd;

  --code-bg: #100d08;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.4em; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.9rem, 6.6vw, 5.1rem); line-height: 1.02;
  letter-spacing: -0.01em; text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent-strong); }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05;
  letter-spacing: -0.01em; text-wrap: balance;
}
h2 em { font-style: italic; color: var(--accent-strong); }
h3 { font-family: var(--sans); font-size: 1.16rem; font-weight: 600; line-height: 1.25; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #1a1206;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

.center { text-align: center; }
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.72rem; font-weight: 500; color: var(--accent); margin: 0 0 1.2em;
}
.eyebrow.center { display: block; }
.section-lede { color: var(--muted); font-size: 1.06rem; max-width: 62ch; text-wrap: pretty; }
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text) !important; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; background: var(--surface); font-weight: 600;
}
.nav-cta:hover { border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1206; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 118px) 0 clamp(44px, 5vw, 72px); }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 420px at 22% -12%, var(--accent-tint), transparent 60%),
    radial-gradient(680px 380px at 88% -4%, rgba(34, 160, 107, 0.08), transparent 58%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy h1 { margin: 0 0 0.36em; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 60ch; margin: 0 auto; text-wrap: pretty; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px 0 0; flex-wrap: wrap; }
.center-cta { justify-content: center; }
.hero-meta { font-size: 0.86rem; color: var(--faint); margin: 18px 0 0; text-align: center; }

/* ---------- terminal centerpiece ---------- */
.hero-demo { max-width: 880px; margin: clamp(44px, 5vw, 64px) auto 0; }
.terminal {
  background: var(--code-bg); border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-bar > span { width: 11px; height: 11px; border-radius: 50%; }
.term-bar > span:nth-child(1) { background: #ff5f57; }
.term-bar > span:nth-child(2) { background: #febc2e; }
.term-bar > span:nth-child(3) { background: #28c840; }
.term-title {
  width: auto !important; height: auto !important; border-radius: 0 !important;
  margin-left: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em;
}
.term-body { padding: 22px 24px; height: 300px; overflow: hidden; }
#term-out {
  font-family: var(--mono); font-size: 0.9rem; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word; display: block; color: var(--text);
}
.t-you { color: var(--accent); font-weight: 600; }
.t-recall { color: var(--faint); }
.t-path { color: var(--accent-soft); }
.t-quote { color: var(--faint); font-style: italic; }
.t-claude { color: var(--text); font-weight: 700; }
.t-reply { color: var(--muted); }
.term-cursor {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: -0.15em;
  margin-left: 2px; background: var(--accent-strong); animation: loreblink 1.05s steps(1) infinite;
}
@keyframes loreblink { 50% { opacity: 0; } }
.demo-caption { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section h2.center { margin-bottom: 0.3em; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { margin-bottom: 0.5em; font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.99rem; }
.card.cmd { display: flex; flex-direction: column; gap: 12px; }
.cmd-name {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--accent-soft);
  background: var(--accent-tint); padding: 7px 11px; border-radius: var(--radius-sm); align-self: flex-start;
}
.card code, .install-note code, .commands-note code, details code, .row-text code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--accent-tint); color: var(--accent-soft);
  padding: 1px 6px; border-radius: 6px;
}
.commands-note {
  color: var(--faint); font-size: 0.92rem; max-width: 64ch;
  margin: 28px auto 0; text-align: center; text-wrap: pretty;
}
.commands-note strong { color: var(--muted); font-weight: 600; }

/* ---------- loop ---------- */
.loop {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.loop-step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.loop-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #1a1206; font-weight: 700; font-size: 1rem; margin-bottom: 16px;
}
.loop-step h3 { margin-bottom: 0.35em; font-size: 1.14rem; }
.loop-step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- install tabs + code block ---------- */
.tabs { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 18px; }
.tab {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 9px 18px;
  border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); color: #1a1206; border-color: var(--accent); }

.code-block { position: relative; margin: 0 0 18px; text-align: left; }
.code-block .copy {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  padding: 6px 13px; cursor: pointer;
}
.code-block .copy:hover { background: rgba(255, 255, 255, 0.16); }
.code-block .copy.copied { color: var(--accent-soft); border-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.install-note { color: var(--muted); font-size: 0.96rem; max-width: 62ch; margin: 0 auto; text-wrap: pretty; }
.install-note[hidden] { display: none; }

/* ---------- code surfaces ---------- */
.code-block pre, .row-code pre {
  margin: 0; padding: 22px; overflow-x: auto;
  background: var(--code-bg); color: var(--text);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.7;
}
.code-block pre { min-height: 172px; }
.code-block code, .row-code code { font-family: var(--mono); white-space: pre; display: block; }
.row-code pre { font-size: 0.82rem; line-height: 1.65; padding: 20px 22px; }
.cm { color: var(--faint); }
.ca { color: var(--accent); }

/* ---------- rows (under the hood) ---------- */
.rows { display: flex; flex-direction: column; gap: 44px; margin-top: 48px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.row.reverse .row-text { order: 2; }
.row-text h3 { margin-bottom: 0.5em; font-size: 1.3rem; }
.row-text p { color: var(--muted); margin: 0; font-size: 1.01rem; }
.row-text em { font-style: italic; color: var(--accent-soft); }

/* ---------- faq ---------- */
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px; margin: 12px 0;
}
summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-strong); font-weight: 700; font-size: 1.3rem; margin-left: 16px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 16px; }
details strong { color: var(--text); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band { overflow: hidden; padding: clamp(72px, 9vw, 112px) 0; text-align: center; }
.cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 50% -30%, var(--accent-tint), transparent 60%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .section-lede { margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--panel); padding: 46px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-name { font-size: 1.35rem; }
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-fine {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--border); color: var(--faint); font-size: 0.86rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards.three, .loop { grid-template-columns: 1fr 1fr; }
  .row, .row.reverse .row-text { grid-template-columns: 1fr; order: 0; }
  .row-code { order: 2; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cards.three, .cards.two, .loop { grid-template-columns: 1fr; }
  .term-body { font-size: 0.82rem; }
  #term-out { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .term-cursor { animation: none; }
}
