:root {
  --bg:        #1a1812;
  --surface:   #22201a;
  --surface2:  #2a2720;
  --border:    #3c3828;
  --text:      #c4ba96;
  --text-dim:  #7a7260;
  --bright:    #e8ddb8;
  --amber:     #b87a1a;
  --amber-lit: #d4921e;
  --amber-glow:#e0a830;
  --danger:    #c04040;
  --success:   #4a8a38;
  --font:      'Share Tech Mono', 'Courier New', monospace;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
  --radius:    4px;
  --max:       1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--bright);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .06em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .08em; }
h3 { font-size: 1.1rem; letter-spacing: .06em; }
h4 { font-size: .85rem; letter-spacing: .14em; color: var(--amber); }

p { color: var(--text); }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-glow); }
code, pre { font-family: var(--font); }

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Nav ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f0e09;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-dot {
  width: 8px; height: 8px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.nav-dot::before, .nav-dot::after {
  content: '';
  position: absolute;
  background: var(--amber);
}
.nav-dot::before { width: 1.5px; height: 3px; left: 50%; top: -4px; transform: translateX(-50%); }
.nav-dot::after  { width: 3px; height: 1.5px; top: 50%; left: -4px; transform: translateY(-50%); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-dim);
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

.nav-gh {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

.nav-gh:hover { border-color: var(--amber); color: var(--amber); }

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(184,122,26,.015) 2px,
    rgba(184,122,26,.015) 4px
  );
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.hero-title {
  margin-bottom: 6px;
}

.hero-sub {
  font-family: var(--font);
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: var(--amber);
  color: #0f0e09;
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-glow);
  border-color: var(--amber-glow);
  color: #0f0e09;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ── Code block ─────────────────────────────────────── */
.code-block {
  background: #0f0e09;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
}

.code-block pre {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.code-block .cmt { color: var(--text-dim); }
.code-block .cmd { color: var(--amber-glow); }
.code-block .arg { color: #a8d0a8; }

.code-header {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Feature grid ───────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s;
}

.feature-card:hover { border-color: var(--amber); }

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: .95rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Section divider ────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Stack table ────────────────────────────────────── */
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.stack-table th,
.stack-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stack-table th {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--amber);
  background: var(--surface2);
}

.stack-table td:first-child { color: var(--bright); font-family: var(--font); font-size: 12px; }
.stack-table tr:last-child td { border-bottom: none; }

/* ── Docs layout ────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
}

.docs-nav-label {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--amber);
  margin-bottom: 8px;
  margin-top: 20px;
}

.docs-nav-label:first-child { margin-top: 0; }

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 4px;
}

.docs-sidebar li a {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-dim);
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color .15s, border-color .15s;
}

.docs-sidebar li a:hover,
.docs-sidebar li a.active {
  color: var(--amber);
  border-left-color: var(--amber);
}

.docs-content h2 {
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.docs-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.docs-content h3 { margin: 28px 0 10px; }
.docs-content p  { margin-bottom: 14px; }
.docs-content ul { margin: 10px 0 14px 20px; }
.docs-content li { margin-bottom: 6px; }

.docs-content .code-block { margin: 16px 0; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}

/* ── Badge ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(184,122,26,.15);
  color: var(--amber);
  border: 1px solid rgba(184,122,26,.3);
  vertical-align: middle;
}

/* ── Screenshots ────────────────────────────────────── */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.shot-card {
  background: transparent;
  border: none;
}

.shot-card.shot-wide {
  grid-column: 1 / -1;
}

/* Fake app window so dark UI doesn't melt into the page */
.shot-window {
  background: #14120e;
  border: 1px solid #4a4330;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(184,122,26,.08),
    0 18px 50px rgba(0,0,0,.55),
    0 4px 12px rgba(0,0,0,.35);
}

.shot-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, #2a261c 0%, #1e1b14 100%);
  border-bottom: 1px solid #3c3828;
}

.shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4436;
  display: inline-block;
}
.shot-dot:nth-child(1) { background: #8a4030; }
.shot-dot:nth-child(2) { background: #8a6a28; }
.shot-dot:nth-child(3) { background: #3a6a30; }

.shot-titlebar-label {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .12em;
  color: #7a7260;
}

.shot-frame {
  background: #0d0c09;
  line-height: 0;
  position: relative;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-mobile-stage {
  display: flex;
  justify-content: center;
  padding: 36px 20px 28px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(184,122,26,.1), transparent 50%),
    #14120e;
}

.shot-phone {
  width: min(260px, 72%);
  background: #0a0907;
  border: 2px solid #3c3828;
  border-radius: 28px;
  padding: 10px 8px 14px;
  box-shadow:
    0 0 0 1px rgba(184,122,26,.12),
    0 20px 48px rgba(0,0,0,.55);
  position: relative;
}

.shot-phone::before {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 4px;
  background: #2a261c;
  margin: 0 auto 8px;
}

.shot-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #2a261c;
}

.shot-caption {
  padding: 16px 4px 0;
}

.shot-caption h3 {
  font-size: .85rem;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.shot-caption p {
  font-size: .85rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
  max-width: 52ch;
}

@media (max-width: 768px) {
  .shot-grid { grid-template-columns: 1fr; gap: 36px; }
  .shot-card.shot-wide { grid-column: auto; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-dim);
  line-height: 2;
}

.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--amber); }

.footer-whisper {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .12em;
  color: #5a5240;
  margin-top: 10px;
  line-height: 1.7;
}

.footer-whisper .egg-code {
  color: var(--amber);
  letter-spacing: .18em;
  font-weight: 700;
}

.footer-whisper .egg-hint {
  display: inline;
  color: #4a4436;
  letter-spacing: .08em;
}

.egg-box {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px dashed rgba(184,122,26,.35);
  border-radius: var(--radius);
  background: rgba(184,122,26,.04);
  max-width: 640px;
}

.egg-box h3 {
  font-size: .85rem;
  letter-spacing: .12em;
  margin-bottom: 8px;
  color: var(--amber);
}

.egg-box p {
  font-size: .9rem;
  color: var(--text-dim);
  margin: 0 0 10px;
  line-height: 1.5;
}

.egg-box p:last-child { margin-bottom: 0; }

.egg-box code {
  color: var(--amber-lit);
  letter-spacing: .12em;
}
