/* ══════════════════════════════════════════════════════
   Insomniacs Bot — Website Styles
   Matches adameaston.co.uk design language
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&family=Space+Mono&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:       #0D0D12;
  --surface:  #16161F;
  --surface2: #1E1E2A;
  --border:   #252535;
  --orange:   #FF6B35;
  --purple:   #7C3AED;
  --green:    #10B981;
  --yellow:   #FFD23F;
  --text:     #EEEEF0;
  --muted:    #8888A0;
  --radius:   12px;
  --nav-height: 60px;
  --max-width:  1100px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.8; text-decoration: underline; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ── Layout ─────────────────────────────────────────── */
.wrap        { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px;            margin: 0 auto; padding: 0 32px; }
.section     { padding: 60px 0; }

/* ── Eyebrow label ───────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { opacity: 1; text-decoration: none; }
.nav-brand .dot { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface); color: var(--text); opacity: 1; text-decoration: none; }
.nav-links a.active { color: var(--orange); }

.nav-gh {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-gh:hover { border-color: var(--orange); color: var(--orange); opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  padding: 4px 8px;
  margin-left: auto;
}
.nav-toggle:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 1; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e85a24; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 100px 32px 80px; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── Section header ──────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.section-header .lead { font-size: 17px; color: var(--muted); }

/* ── Feature cards ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

a.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
a.feature-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  opacity: 1;
  text-decoration: none;
}

.feature-icon { font-size: 32px; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.feature-card .card-arrow { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--orange); margin-top: 4px; }

/* ── Command cards ───────────────────────────────────── */
.commands-section { margin-bottom: 56px; }

.commands-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s;
}
.command-card:hover { border-color: var(--orange); }

.command-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.command-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

.command-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.command-usage {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.8;
}

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}
.badge-available { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.badge-planned   { background: rgba(255,107,53,0.08); color: var(--orange); border: 1px solid rgba(255,107,53,0.2); }

/* ── Search bar ──────────────────────────────────────── */
.search-bar { position: relative; max-width: 420px; margin-bottom: 40px; }
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--orange); }

/* ── Code blocks ─────────────────────────────────────── */
pre, code { font-family: 'Space Mono', monospace; }
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text);
  margin: 1rem 0 1.5rem;
  position: relative;
}
code:not(pre code) {
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--orange);
}

/* ── Callout ─────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--orange);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout.success { border-left-color: var(--green); }
.callout.warning { border-left-color: var(--yellow); }
.callout svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.callout.success svg { color: var(--green); }
.callout.warning svg { color: var(--yellow); }
.callout strong { display: block; color: var(--text); margin-bottom: 4px; }
.callout p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ── Setup steps ─────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step  { display: flex; gap: 20px; }
.step-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: #fff;
  margin-top: 2px;
}
.step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-body p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }

/* ── Table ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  background: var(--surface2);
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 16px; text-align: left;
}
td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; }
td:first-child { font-family: 'Space Mono', monospace; font-size: 0.82rem; color: var(--text); }
tr:hover td { background: rgba(255,255,255,0.01); }

/* ── Page header (inner pages) ───────────────────────── */
.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.page-header h1 { font-size: 42px; font-weight: 700; margin-bottom: 8px; }
.page-header p  { font-size: 18px; color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 32px; text-align: center; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--orange); opacity: 1; text-decoration: none; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; flex-wrap: wrap; }

/* ── Utility ─────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-muted { color: var(--muted); } .text-orange { color: var(--orange); }

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px; gap: 2px;
  }
  .nav-toggle { display: block; }
  .nav-gh { display: none; }
  .hero { padding: 60px 20px 48px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .features-grid, .command-grid { grid-template-columns: 1fr; }
}
