/* oneagent — landing page
   One idea: a terminal session, framed at full bleed.
   Two typefaces, one accent, no cards. */

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --line:      #262c35;
  --line-soft: #1c222a;
  --fg:        #e6edf3;
  --muted:     #8b949e;
  --dim:       #6e7681;
  --accent:    #58a6ff;
  --accent-dim:#1f6feb;
  --green:     #3fb950;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --measure: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

code, pre, kbd { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- header ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--gut);
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wordmark {
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: -.02em;
  color: var(--fg);
}
.nav .wordmark:hover { text-decoration: none; color: var(--accent); }
.nav nav { display: flex; gap: 1.4rem; font-size: .9rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 560px) { .nav nav { gap: 1rem; } .nav nav a.hide-sm { display: none; } }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3.5rem, 11vh, 7rem) var(--gut) clamp(3rem, 9vh, 5.5rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  /* The plane the hero sits on: a faint terminal glow. Painted as a background
     rather than an absolutely positioned layer — an offset pseudo-element
     widened the page and clipped text on narrow screens. */
  background: radial-gradient(ellipse 62rem 34rem at 88% -12%, rgba(88, 166, 255, .13), transparent 62%);
}
.hero-inner { position: relative; }

/* Wide screens: a poster, not a left-aligned column with a dead right half.
   Copy on one side, the running session on the other. */
@media (min-width: 1080px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 3.5rem;
    align-items: center;
  }
  .hero h1 { font-size: clamp(2.9rem, 4.4vw, 4rem); }
  .term { margin-top: 0; }
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0;
  font-weight: 600;
}
.hero h1 .bin { color: var(--dim); font-weight: 400; font-size: .5em; letter-spacing: 0; }

.tagline {
  font-family: var(--mono);
  color: var(--accent);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: .01em;
  margin: 1.1rem 0 0;
}

.lede {
  max-width: var(--measure);
  margin: 1.8rem 0 0;
  font-size: clamp(1.02rem, 2.3vw, 1.16rem);
  color: #c9d3dd;
}
.lede strong { color: var(--fg); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; align-items: center; }
.btn {
  font-family: var(--mono);
  font-size: .92rem;
  padding: .68rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { border-color: var(--accent-dim); background: rgba(88,166,255,.07); text-decoration: none; }
.btn.primary { border-color: var(--accent-dim); background: rgba(88,166,255,.1); color: #cfe4ff; }
.btn.primary:hover { background: rgba(88,166,255,.17); }

/* ---------- the terminal ---------- */

.term {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(0,0,0,.9);
  max-width: 60rem;
}
.term-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--line);
  background: #12171e;
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.term-title {
  margin-left: .6rem; font-family: var(--mono); font-size: .78rem; color: var(--dim);
}
.term-body {
  margin: 0; padding: 1.15rem 1.25rem 1.3rem;
  font-size: clamp(.78rem, 2.1vw, .9rem);
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  color: #c9d3dd;
}
/* Below tablet width the session scrolls sideways, which cuts off the model's
   answer — the one line worth reading. Let it soft-wrap instead, the way a
   real terminal does. */
@media (max-width: 700px) {
  .term-body { white-space: pre-wrap; font-size: .74rem; }
}
.term-body .p   { color: var(--green); }
.term-body .c   { color: var(--fg); }
.term-body .s   { color: #a5d6ff; }
.term-body .o   { color: var(--muted); }
.term-body .ok  { color: var(--green); }

/* The terminal is the hero's one visual anchor, so it is never hidden behind
   an entrance animation. An opacity-from-zero stagger renders as an empty box
   whenever the animation has not finished (slow load, a screenshot, a JS-less
   reader) — and an empty anchor is worse than no motion. The blinking caret
   carries the "live session" cue instead, and degrades to a static block. */
.term-line { display: block; }

.caret {
  display: inline-block; width: .6em; height: 1.05em;
  background: var(--accent); vertical-align: -.18em;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 10vh, 6.5rem) var(--gut); }
section + section { border-top: 1px solid var(--line-soft); }

.wrap { max-width: 68rem; margin: 0 auto; }

h2 {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 1.4rem;
  font-weight: 600;
}
h3 {
  font-size: 1.06rem;
  letter-spacing: -.01em;
  margin: 2.4rem 0 .7rem;
  font-weight: 600;
}
p { max-width: var(--measure); }
p.lead { font-size: 1.1rem; color: #c9d3dd; }

.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1rem;
}

/* Sections are never hidden. An earlier version revealed them on scroll by
   starting at opacity 0 and adding a class from JavaScript; anything that
   stopped the observer from firing left the whole page below the hero
   permanently blank. Content that needs script to become readable is content
   that can be lost. */


/* ---------- comparison ---------- */

.table-scroll { overflow-x: auto; margin: 1.6rem 0 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 42rem;
  font-size: .93rem;
}
th, td {
  text-align: left;
  padding: .78rem 1rem .78rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  border-bottom-color: var(--line);
}
tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; padding-right: 1.6rem; }
td.us { color: var(--fg); }
td.them { color: var(--muted); }
th.col-us { color: var(--accent); }

/* ---------- code blocks ---------- */

pre.code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
  margin: .9rem 0 0;
  color: #c9d3dd;
}
pre.code .cmt { color: var(--dim); }
.kbd-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin-top: 1rem; }
.kbd-row pre.code { margin: 0; flex: 1 1 22rem; }

/* For blocks whose command is wider than the column: give the code the full
   width and drop the copy button underneath. Side by side, a long line was
   clipped mid-word at the right edge, which reads as a broken command. */
.kbd-row--stack { flex-direction: column; align-items: stretch; }
/* The shared rule's `flex: 1 1 22rem` is a *width* basis; in a column it would
   become a height basis and stretch the block to 22rem tall. Size to content. */
.kbd-row--stack pre.code { flex: 0 0 auto; white-space: pre-wrap; overflow-wrap: break-word; }
.kbd-row--stack .copy { align-self: flex-end; min-height: 2.1rem; }

.copy {
  font-family: var(--mono); font-size: .78rem;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 8px; padding: 0 1rem; cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.copy:hover { color: var(--fg); border-color: var(--accent-dim); }
.copy.done { color: var(--green); border-color: var(--green); }

/* ---------- install / steps ---------- */

.cols { display: grid; gap: 2.6rem 4rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin-top: 1rem; }
.col h3 { margin-top: 0; }
.col p { color: var(--muted); font-size: .96rem; }

/* ---------- faq ---------- */

.faq { margin-top: .5rem; max-width: var(--measure); }
.faq h3 { color: var(--fg); margin-top: 2.1rem; }
.faq p { color: var(--muted); }

/* ---------- final ---------- */

.final { text-align: left; }
.final h2 { margin-bottom: .9rem; }

footer {
  padding: 2.4rem var(--gut);
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: .86rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; justify-content: space-between;
}
footer a { color: var(--muted); }
footer .mono { font-family: var(--mono); }
; align-items: center; justify-content: space-between;
}
footer a { color: var(--muted); }
footer .mono { font-family: var(--mono); }
