/* ==========================================================================
   Orchicon landing page
   Basic, dark, readable. No frameworks.
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-elev-2: #161a22;
  --line: #1f2531;
  --line-2: #2a3140;
  --text: #e6e8ee;
  --text-dim: #aab0bd;
  --muted: #7c8497;
  --accent: #00d4aa;
  --accent-2: #5eead4;
  --warn: #fbbf24;
  --danger: #f87171;
  --maxw: 1080px;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

code, pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

p code, li code, td code {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--accent-2);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.05rem; }

.muted { color: var(--text-dim); }
.small { font-size: 0.875rem; }

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

/* --- top bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 800; font-family: var(--mono);
  font-size: 15px;
}
.brand-name { letter-spacing: -0.01em; }

.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-dim); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* --- hero --- */
.hero {
  padding: 96px 0 64px;
  background:
    radial-gradient(800px 400px at 70% -20%, rgba(0, 212, 170, 0.12), transparent 60%),
    radial-gradient(600px 300px at 10% 10%, rgba(94, 234, 212, 0.06), transparent 60%);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 18px 0;
  font-weight: 600;
}
.hero h1 { margin-bottom: 18px; }
.lede {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 0 36px 0;
}

/* --- install block --- */
.install {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  max-width: 820px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.install-tabs {
  display: flex;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: var(--bg-elev);
}
.install-body { padding: 4px 0; }
.install-cmd {
  display: none;
  margin: 0;
  padding: 18px 22px;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
}
.install-cmd.active { display: block; }
.prompt { color: var(--accent); user-select: none; margin-right: 8px; }
.install-note {
  padding: 12px 22px 16px;
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-elev-2);
}
.install-note a { color: var(--accent-2); }
.install-note code { font-size: 0.85em; }

/* --- sections --- */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* quick start */
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; }
.steps > li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps > li:first-child { border-top: 0; padding-top: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.steps h3 { margin: 0 0 6px 0; }
.steps p { margin: 0 0 8px 0; color: var(--text-dim); }
.steps p:last-child { margin-bottom: 0; }

.cmd {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0 12px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.cmt { color: var(--muted); }

/* what grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* principle */
.principle { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle blockquote { margin: 0 0 16px 0; padding: 0; }
.principle blockquote p {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* options / flags */
.options h3, .build h3 { margin-top: 24px; color: var(--text-dim); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.options h3:first-of-type, .build h3:first-of-type { margin-top: 0; }
.flags {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.flags th, .flags td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.flags th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-elev-2);
}
.flags td { color: var(--text-dim); }
.flags td:first-child { color: var(--text); font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; }

/* build */
.build p, .options p, .quick p { color: var(--text-dim); }

/* CTA */
.cta { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px 0; }
.cta p { margin: 0; color: var(--text-dim); }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: transform 0.06s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-2); }

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--bg-elev);
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

/* responsive */
@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .nav { gap: 14px; font-size: 0.9rem; }
  section { padding: 48px 0; }
  .steps > li { grid-template-columns: 28px 1fr; gap: 12px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
