/* ============================================================================
   goaly — landing page styles
   Near-black neutral · monochrome text · monospace-forward UI · one lime accent.
   Landing-page energy with restraint: one hero glow, hairline dividers,
   generous whitespace — no gradients-everywhere, no motion gimmicks.
   ========================================================================== */

:root {
  /* surfaces — neutral near-black, not blue */
  --bg:        #0a0a0b;
  --bg-2:      #0d0d0f;
  --panel:     #121214;
  --panel-2:   #17171a;
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* text — neutral grays */
  --fg:        #ededeb;
  --fg-dim:    #9b9b96;
  --fg-faint:  #67675f;

  /* one accent + minimal semantic hues (used sparingly, small elements only) */
  --accent:    #c5f04e;   /* lime — go / verified / done */
  --accent-dim:#a6cf3f;
  --on-accent: #14180a;
  --red:       #ef6f5e;   /* fail / veto */
  --gold:      #e0b24e;   /* gate / pending */
  --mute-violet:#aaa5d6;  /* judge / fuzzy (tiny pills only) */

  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1140px;

  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--fg); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--fg-dim); }
strong, b { color: var(--fg); font-weight: 600; }
em { font-style: normal; color: var(--fg); border-bottom: 1px solid var(--accent-dim); padding-bottom: 1px; }
code { font-family: var(--mono); font-size: 0.85em; }
::selection { background: rgba(197, 240, 78, 0.25); color: #fff; }

/* ---------- layout & utilities ---------- */
.wrap { width: min(var(--maxw), 90vw); margin-inline: auto; }
section { padding: clamp(3.6rem, 7vw, 6.5rem) 0; position: relative; }
.section-line { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-start { align-items: start; }
.footnote { margin-top: 1.6rem; font-size: 0.92rem; }
.more { color: var(--accent); font-family: var(--mono); font-size: 0.85em; white-space: nowrap; }
.more:hover { color: #d4fa64; }

/* eyebrow — mono caps with a lime dot (the signature label) */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim);
  margin: 0 0 1.4rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.lede { font-family: var(--mono); font-size: 0.95rem; line-height: 1.75; color: var(--fg-dim); max-width: 64ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.2rem; height: 60px; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand img { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 0.1rem; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-dim); padding: 0.4rem 0.7rem; border-radius: 6px; transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  margin-left: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 0.4rem 0.8rem; border-radius: 6px; color: var(--fg);
}
.nav-cta:hover { border-color: var(--fg-dim); color: var(--fg); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(2.4rem, 5vw, 4rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 90%;
  background:
    radial-gradient(46% 60% at 68% 18%, rgba(197, 240, 78, 0.10), transparent 68%),
    radial-gradient(34% 46% at 22% 4%, rgba(197, 240, 78, 0.05), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; position: relative; }
.hero-grid > * { min-width: 0; } /* the terminal pre must scroll inside its track, not widen it */
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 500; letter-spacing: -0.035em;
  line-height: 1.04; margin-bottom: 1.1rem; color: var(--fg);
}
.hero h1 .hl { color: var(--accent); }
.hero-lede { font-size: 1.05rem; line-height: 1.7; color: var(--fg-dim); max-width: 44ch; }
.hero-lede em { border-bottom-color: var(--accent-dim); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.75rem 1.25rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #d4fa64; color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg-dim); color: var(--fg); }

/* harness strip — quiet social-proof row under the hero */
.harness-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem;
  margin-top: clamp(2.4rem, 5vw, 4rem); position: relative;
}
.hs-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-right: 0.4rem; }
.hs-item {
  font-family: var(--mono); font-size: 0.78rem; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.85rem; white-space: nowrap;
}
.hs-yours { color: var(--accent); border-color: rgba(197, 240, 78, 0.3); border-style: dashed; }

/* ---------- cards (promises) ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; transition: border-color 0.18s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 1.04rem; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.92rem; line-height: 1.65; }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- code ---------- */
.code { position: relative; background: #060607; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 0.82rem; color: #cfcfca; overflow: hidden; }
.hero-install { margin: 1.5rem 0 1.7rem; max-width: 20rem; }
.code pre { margin: 0; padding: 1rem 1.05rem; overflow: auto; }
.code .cmt { color: var(--fg-faint); }
.code .tok { color: var(--accent); }
.code .str { color: #d8c98a; }
.code .fn  { color: #e7e7e2; }
.code .bad { color: var(--red); }
.copy-btn {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.22rem 0.5rem; cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--line-2); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent-dim); }

/* terminal window chrome (hero demo) */
.code.term { border-radius: var(--radius); box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.85); }
.term-bar {
  display: flex; align-items: center; gap: 0.42rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar em { font-style: normal; font-size: 0.68rem; color: var(--fg-faint); margin-left: 0.4rem; letter-spacing: 0.08em; border: 0; padding: 0; }
.code.term .copy-btn { top: 42px; }

/* ---------- status pills ---------- */
.pill { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; padding: 0.16rem 0.5rem; border-radius: 5px; letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.pill.pass   { color: var(--accent);      background: rgba(197,240,78,0.10);  border: 1px solid rgba(197,240,78,0.28); }
.pill.gate   { color: var(--gold);        background: rgba(224,178,78,0.10);  border: 1px solid rgba(224,178,78,0.28); }
.pill.fail   { color: var(--red);         background: rgba(239,111,94,0.10);  border: 1px solid rgba(239,111,94,0.28); }
.pill.neutral{ color: var(--fg-dim);      background: transparent;            border: 1px solid var(--line-2); }
.pill.violet { color: var(--mute-violet); background: rgba(170,165,214,0.08);  border: 1px solid rgba(170,165,214,0.25); }

/* ============================================================================
   Pipeline (interactive, no animation)
   ========================================================================== */
.pipeline-wrap { margin-top: 1.6rem; }
.pipeline { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; padding: 1.2rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.stage { position: relative; flex: 1 1 0; min-width: 128px; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem; text-align: center; transition: border-color 0.15s, background 0.15s; }
.stage:hover { border-color: var(--line-2); }
.stage.active { border-color: var(--accent); background: var(--panel-2); }
.stage .st-k { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; color: var(--fg); display: block; }
.stage .st-s { font-family: var(--mono); font-size: 0.68rem; color: var(--fg-faint); }
.stage.gate { border-style: dashed; }
.stage.gate .st-k { color: var(--gold); }
.stage.gate.active { border-color: var(--gold); }
.loop-band { flex: 1 1 100%; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; border: 1px dashed var(--line-2); border-radius: 9px; padding: 0.7rem; position: relative; }
.loop-band > .loop-tag { position: absolute; top: -9px; left: 13px; font-family: var(--mono); font-size: 0.64rem; color: var(--accent); background: var(--bg-2); padding: 0 0.4rem; letter-spacing: 0.06em; }
.arrow { align-self: center; color: var(--fg-faint); font-size: 1rem; flex: 0 0 auto; }
.term-row { display: flex; gap: 0.5rem; margin-top: 0.85rem; flex-wrap: wrap; }
.term-cell { flex: 1 1 0; min-width: 108px; text-align: center; padding: 0.55rem; border-radius: 8px; font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); color: var(--fg-dim); }
.term-cell.done { color: var(--accent); border-color: rgba(197,240,78,0.35); }
.term-cell.failed { color: var(--gold); border-color: rgba(224,178,78,0.3); }
.term-cell.aborted { color: var(--red); border-color: rgba(239,111,94,0.3); }

.detail { margin-top: 1rem; background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 9px; padding: 1rem 1.15rem; min-height: 88px; }
.detail h4 { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; font-weight: 500; margin: 0 0 0.45rem; letter-spacing: 0; }
.detail p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.detail .meta { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ============================================================================
   Feature index — one hairline row per feature, no cards, no deep links
   ========================================================================== */
.feature-index { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-index li {
  display: grid; grid-template-columns: 220px 1fr; gap: 0.4rem 2rem;
  padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.feature-index li:hover { background: rgba(255, 255, 255, 0.018); }
.fi-name { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--fg); }
.fi-desc { font-size: 0.92rem; color: var(--fg-dim); line-height: 1.6; }
.fi-desc code { color: var(--accent-dim); }

/* ---------- CTA band ---------- */
#cta { padding-top: 0; }
.cta-band {
  text-align: center; padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(197, 240, 78, 0.07), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px;
}
.cta-band h2 { margin-bottom: 1.4rem; }
.cta-band .hero-install { margin-inline: auto; text-align: left; }
.cta-band .btn-row { justify-content: center; }

/* ---------- docs (slim link row) ---------- */
#docs { padding-top: clamp(2rem, 4vw, 3rem); }
.doc-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.doc-links a {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.18s;
}
.doc-links a:hover { border-color: var(--accent-dim); color: var(--fg); }
.doc-links b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.doc-links span { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-faint); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; }
.footer .legal { color: var(--fg-faint); font-family: var(--mono); font-size: 0.76rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- subtle reveal (opacity only, no motion gimmicks) ---------- */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .doc-links { grid-template-columns: repeat(2, 1fr); }
  .feature-index li { grid-template-columns: 170px 1fr; gap: 0.3rem 1.2rem; }
}
@media (max-width: 660px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.55rem 0.7rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--fg); border-radius: 6px; padding: 0.35rem 0.55rem; cursor: pointer; }
  .grid-3, .doc-links { grid-template-columns: 1fr; }
  .feature-index li { grid-template-columns: 1fr; padding: 0.9rem 0.2rem; }
}
