/* octo — landing site styles. No build step; plain CSS custom properties. */

:root {
  --bg: #0b0f14;
  --bg-soft: #11161d;
  --bg-card: #141b24;
  --bg-elev: #1a232e;
  --border: #243140;
  --border-soft: #1c2530;
  --text: #e6edf3;
  --text-dim: #9fb0c0;
  --text-faint: #6b7d8f;
  --accent: #36d399;
  --accent-2: #4aa8ff;
  --accent-3: #b692ff;
  --warn: #f5b14c;
  --danger: #ff6b6b;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.4em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p { color: var(--text-dim); }

code, kbd { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(74, 168, 255, 0.45)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-gh {
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 9px;
  color: var(--text) !important; font-weight: 600;
}
.nav-gh:hover { border-color: var(--accent); background: var(--bg-elev); }
@media (max-width: 820px) { .nav-links a:not(.nav-gh) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; border-top: none; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(54, 211, 153, 0.16), transparent 60%),
    radial-gradient(50% 50% at 12% 0%, rgba(74, 168, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-logo {
  width: 84px; height: 84px; object-fit: contain; margin: 0 0 18px;
  filter: drop-shadow(0 8px 28px rgba(74, 168, 255, 0.4));
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); margin: 0 0 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 1.18rem; color: var(--text-dim); max-width: 36ch; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.badge {
  font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; background: var(--bg-card);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.96rem;
  padding: 12px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06231a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--accent-2); }

.hero-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); overflow: hidden;
}
.hero-card .titlebar {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  border-bottom: 1px solid var(--border-soft); background: var(--bg-elev);
}
.hero-card .titlebar .tdot { width: 11px; height: 11px; border-radius: 50%; background: #2c3a48; }
.hero-card .titlebar .fname { margin-left: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); }
.hero-card pre { margin: 0; }

/* ---------- code blocks ---------- */
pre {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; overflow: auto; font-size: 0.85rem; line-height: 1.6;
}
pre code.hljs { background: transparent; padding: 0; }
.cmd {
  font-family: var(--mono); font-size: 0.85rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; color: var(--text);
  overflow-x: auto; white-space: nowrap;
}
.cmd .p { color: var(--accent); user-select: none; }
.cmd .c { color: var(--text-faint); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--border); margin-bottom: 14px; font-size: 1.1rem;
}
.card h3 { color: var(--text); }
.card p { margin: 0; font-size: 0.94rem; }

/* ---------- diagrams ---------- */
.diagram {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin: 0;
}
.diagram .mermaid { text-align: center; }
.diagram-cap { color: var(--text-faint); font-size: 0.86rem; margin: 14px 4px 0; text-align: center; }
.diagram-stack { display: grid; gap: 22px; }
/* Screenshot images render edge-to-edge inside a .diagram figure. */
.diagram img.shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-soft); }

/* ---------- screenshot placeholders (swapped for <img class="shot"> later) ---------- */
.shot-placeholder {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 24px;
  background: var(--bg-elev); border: 1px dashed var(--border);
  border-radius: 10px; color: var(--text-faint);
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.5;
}

/* ---------- EIP table ---------- */
.eip-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.eip-table th, .eip-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; }
.eip-table th { background: var(--bg-elev); color: var(--text); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.eip-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.eip-table td code { color: var(--accent); background: var(--bg-elev); padding: 2px 7px; border-radius: 6px; }
.eip-table tr:last-child td { border-bottom: none; }
.eip-table tr:hover td { background: var(--bg-soft); }

/* ---------- samples ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  font-family: var(--mono); font-size: 0.82rem; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); cursor: pointer;
}
.tab:hover { color: var(--text); border-color: var(--border); }
.tab.active { background: var(--accent); color: #06231a; border-color: var(--accent); font-weight: 600; }
.sample-panel { display: none; }
.sample-panel.active { display: block; }
.sample-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 22px; align-items: start; }
/* Let both columns shrink below their content so a long YAML line or run command
   scrolls inside its box instead of stretching the whole page. */
.sample-grid > * { min-width: 0; }
@media (max-width: 920px) { .sample-grid { grid-template-columns: 1fr; } }
.sample-meta h3 { color: var(--text); }
/* Per-sample editor screenshot shown alongside the YAML. */
.sample-shot { margin: 14px 0 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.sample-shot img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; object-position: top; border-radius: 6px; }
.sample-shot figcaption { color: var(--text-faint); font-size: 0.78rem; margin-top: 10px; text-align: center; }
.sample-meta p { font-size: 0.95rem; }
.sample-meta .run-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin: 22px 0 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pill { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); border: 1px solid var(--border); background: var(--bg-elev); border-radius: 100px; padding: 3px 11px; }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }
.phase { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.phase.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.phase .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.phase.now .tag { color: var(--accent); }
.phase.next .tag { color: var(--accent-2); }
.phase.later .tag { color: var(--accent-3); }
.phase h3 { color: var(--text); margin-top: 10px; }
.phase ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; }
.phase li { margin-bottom: 7px; }

/* ---------- story ---------- */
.story { max-width: 760px; margin: 0 auto; text-align: center; }
.story p { font-size: 1.18rem; line-height: 1.7; }
.story .sig { font-family: var(--mono); font-size: 0.85rem; color: var(--text-faint); margin-top: 24px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border-soft); padding: 48px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .muted { color: var(--text-faint); font-size: 0.88rem; }
footer .foot-links { display: flex; gap: 20px; }

/* ---------- misc ---------- */
.note {
  border-left: 3px solid var(--accent-2); background: var(--bg-card); border-radius: 0 10px 10px 0;
  padding: 14px 18px; color: var(--text-dim); font-size: 0.92rem; margin-top: 20px;
}
.note strong { color: var(--text); }
