/* soli-one landing page.
   Same palette and type as docs.css, so crossing from / into the docs does not
   feel like changing sites. Same rule for the accent too: green marks what runs
   today, amber what does not yet. Hand-written, like docs.css — no build step. */

:root {
  --bg: #0b0d10;
  --bg-2: #0e1115;
  --panel: #111419;
  --line: #1e242c;
  --ink: #d7dee6;
  --ink-dim: #8794a3;
  --ink-faint: #5a6673;
  --accent: #4ee39a;
  --accent-dim: #1f6f4b;
  --amber: #e3b04e;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body.landing {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
p { margin: 0 0 14px; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .tld { color: var(--accent); }
.bar-nav { display: flex; gap: 22px; flex: 1; }
.bar-nav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.bar-nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #06140d;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #6cf0b0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--ink-faint); }
.btn-small { padding: 6px 12px; font-size: 12.5px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-dim); max-width: 34em; }
.fineprint { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

/* three nodes resolving onto one ring — the sidebar motif, at hero scale */
.converge { position: relative; width: 150px; height: 44px; margin-bottom: 18px; }
.converge .ring {
  position: absolute;
  right: 0; top: 50%;
  width: 40px; height: 40px;
  margin-top: -20px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(78, 227, 154, 0.12);
}
.converge .dot {
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  animation: converge 3.6s ease-in-out infinite;
}
.converge .d2 { animation-delay: 1.2s; }
.converge .d3 { animation-delay: 2.4s; }
@keyframes converge {
  0%   { left: 0;   opacity: 0; }
  20%  { opacity: 0.9; }
  70%  { left: 127px; opacity: 0.9; }
  100% { left: 127px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .converge .dot { animation: none; left: 127px; opacity: 0.9; }
  .btn { transition: none; }
}

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

.term {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(78, 227, 154, 0.04);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term-bar b {
  margin-left: 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.term pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre;
}
.term .prompt { color: var(--accent); }
.term .k { color: var(--ink-faint); }
.term .v { color: var(--ink); font-weight: 700; }
.term .dim { color: var(--ink-faint); }
.term .ok { color: var(--accent); }
.term figcaption {
  padding: 10px 20px 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}
.term-quiet { box-shadow: none; }

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

section { padding-top: 88px; padding-bottom: 88px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 6px 0 12px;
}
.section-head p { color: var(--ink-dim); }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.005em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split .section-head { margin-bottom: 18px; }
.split p { color: var(--ink-dim); }
.more { font-family: var(--mono); font-size: 13px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* the tutorial video: a recording of a terminal, so it is framed like one */
.video {
  margin: 0 0 28px;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b0d10;
}
.video figcaption {
  padding: 10px 18px 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}
.more-row { margin: 22px 0 0; }

/* the tutorial's steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.steps li {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
}
.step-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}
.steps pre {
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}
.steps pre code { background: none; border: 0; padding: 0; font-size: 11.5px; line-height: 1.6; white-space: pre; }
.steps p { color: var(--ink-dim); font-size: 14px; margin: auto 0 0; }

/* what runs today */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 8px 8px 0;
  padding: 20px 20px 16px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-left-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--ink-dim); font-size: 14px; margin: 0; }
.tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* the three layers of the illusion */
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
}
.layer p { color: var(--ink-dim); font-size: 14px; margin: 0; }
.layer.planned { border-left-color: var(--amber); }
.layer.planned .tag { color: var(--amber); }

/* where the line is */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ledger .col {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}
.ledger h3 { display: flex; align-items: center; gap: 10px; }
.ledger ul { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 14px; }
.ledger li { margin: 6px 0; }
.led { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.led.built { background: var(--amber); }
.led.none { background: var(--ink-faint); }

.closing { text-align: center; }
.closing p { color: var(--ink-dim); }
.closing .cta { justify-content: center; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--ink-faint); }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot p { margin: 6px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links span a { text-decoration: underline; }

/* ---------- narrow screens ---------- */

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 12px 16px; gap: 16px; }
  .bar-nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  section { padding-top: 64px; padding-bottom: 64px; }
  .steps, .grid, .ledger, .foot-inner { grid-template-columns: minmax(0, 1fr); }
}
