/* ============================================================
   CNA Website — Design System
   Modern dark theme, no external dependencies
   ============================================================ */

:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-tertiary:   #21262d;
  --bg-hover:      #2d333b;
  --border:        #30363d;
  --border-light:  #3d444d;

  --accent-blue:   #58a6ff;
  --accent-blue-dim:#1f6feb;
  --accent-green:  #3fb950;
  --accent-orange: #d29922;
  --accent-red:    #f85149;
  --accent-purple: #bc8cff;

  --text-primary:  #f0f6fc;
  --text-secondary:#8b949e;
  --text-muted:    #6e7681;
  --text-link:     #58a6ff;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 12px;

  --nav-height: 64px;
  --max-width: 1200px;
  --sidebar-width: 240px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

img { max-width: 100%; height: auto; display: block; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); }
li { margin-bottom: 0.25rem; }

strong { color: var(--text-primary); font-weight: 600; }
em { color: var(--accent-orange); font-style: normal; }

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono',
               Consolas, 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.4em;
  color: var(--accent-blue);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.7;
}

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

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; opacity: 0.9; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-blue);
}

.nav-link--github {
  color: var(--accent-green) !important;
  border: 1px solid var(--accent-green);
  margin-left: 0.5rem;
}

.nav-link--github:hover {
  background: rgba(63, 185, 80, 0.1) !important;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  padding: clamp(5rem, 12vw, 10rem) 1.5rem clamp(4rem, 8vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 166, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(188, 140, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-badge::before { content: '⚙'; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f0f6fc 0%, var(--accent-blue) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--accent-blue-dim);
  border-color: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-blue); color: #fff; box-shadow: 0 4px 16px rgba(88,166,255,0.3); }

.btn-secondary {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-secondary); color: var(--text-primary); }

.btn-outline {
  background: transparent;
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.btn-outline:hover { background: rgba(63,185,80,0.1); color: var(--accent-green); }

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* ---- Section layout --------------------------------------- */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 3rem;
}

/* ---- Cards ------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cards--2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.card p { font-size: 0.9rem; }

/* ---- Status badge ----------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.status-wip { background: rgba(210,153,34,0.15); color: var(--accent-orange); border: 1px solid rgba(210,153,34,0.35); }
.status-done { background: rgba(63,185,80,0.12); color: var(--accent-green); border: 1px solid rgba(63,185,80,0.3); }
.status-planned { background: rgba(88,166,255,0.1); color: var(--accent-blue); border: 1px solid rgba(88,166,255,0.3); }
.status-partial { background: rgba(188,140,255,0.1); color: var(--accent-purple); border: 1px solid rgba(188,140,255,0.3); }

/* ---- Tables ----------------------------------------------- */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead tr {
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--border);
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 700;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }

/* ---- Architecture diagram --------------------------------- */
.arch-diagram {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.arch-layer {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.arch-layer::after {
  content: '▼';
  position: absolute;
  bottom: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 1;
}

.arch-layer:last-child::after { display: none; }

.arch-layer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.arch-layer h4 { margin-bottom: 0.25rem; }
.arch-layer p { font-size: 0.875rem; margin: 0; }

/* Coloured layer borders */
.arch-layer--app    { border-color: var(--accent-green);  }
.arch-layer--api    { border-color: var(--accent-blue);   }
.arch-layer--internal{ border-color: var(--accent-purple);}
.arch-layer--backend{ border-color: var(--accent-orange); }

/* ---- Docs layout ------------------------------------------ */
.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.docs-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.docs-nav-list { list-style: none; padding: 0; }

.docs-nav-list li + li { margin-top: 0.1rem; }

.docs-nav-link {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.docs-nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}

.docs-nav-link.active {
  background: rgba(88,166,255,0.1);
  color: var(--accent-blue);
}

.docs-content h1 { margin-bottom: 0.5rem; }
.docs-content .doc-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.375rem;
}

.docs-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.docs-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* ---- Callouts --------------------------------------------- */
.callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border-left: 3px solid;
}

.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout p { margin: 0; font-size: 0.9rem; }

.callout--info { background: rgba(88,166,255,0.07); border-color: var(--accent-blue); }
.callout--warn { background: rgba(210,153,34,0.08); border-color: var(--accent-orange); }
.callout--note { background: rgba(63,185,80,0.07); border-color: var(--accent-green); }

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-blue-dim);
  box-shadow: 0 0 0 1px rgba(88,166,255,0.15), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.icon-blue   { background: rgba(88,166,255,0.12);  }
.icon-green  { background: rgba(63,185,80,0.12);   }
.icon-orange { background: rgba(210,153,34,0.12);  }
.icon-purple { background: rgba(188,140,255,0.12); }
.icon-red    { background: rgba(248,81,73,0.12);   }

/* ---- Timeline (roadmap) ----------------------------------- */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border);
}

.timeline-item.done::before { border-color: var(--accent-green); background: rgba(63,185,80,0.3); }
.timeline-item.active::before { border-color: var(--accent-blue); background: rgba(88,166,255,0.3); }
.timeline-item.planned::before { border-color: var(--text-muted); }

.timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-item.done .timeline-label { color: var(--accent-green); }
.timeline-item.active .timeline-label { color: var(--accent-blue); }
.timeline-item.planned .timeline-label { color: var(--text-muted); }

.timeline-item h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.timeline-item p { font-size: 0.9rem; }

/* ---- Video embeds ----------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-embed-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.video-embed-placeholder .play-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.video-embed-placeholder .todo-tag {
  background: rgba(210,153,34,0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(210,153,34,0.3);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-card-body { padding: 1.25rem; }
.video-card-body h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.video-card-body p { font-size: 0.85rem; }

/* Actual iframe embed (for when URL is set) */
.video-iframe-wrap {
  aspect-ratio: 16/9;
  width: 100%;
}

.video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Demo cards ------------------------------------------- */
.demo-platform {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.demo-platform h2 { margin-bottom: 0.5rem; }
.demo-platform > p { margin-bottom: 1.5rem; }

.demo-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.demo-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-item h4 { font-size: 0.95rem; margin: 0; }
.demo-item p { font-size: 0.85rem; margin: 0; }

.todo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px dashed rgba(210,153,34,0.4);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  cursor: default;
}

/* ---- Page header ------------------------------------------ */
.page-header {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.page-header .container { max-width: var(--max-width); margin: 0 auto; }

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { font-size: 1.05rem; max-width: 620px; }

/* ---- FAQ -------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover { color: var(--accent-blue); }

.faq-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---- Contact / links -------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card-icon { font-size: 2rem; }
.contact-card h3 { margin: 0; font-size: 1.05rem; }
.contact-card p { margin: 0; font-size: 0.875rem; }

/* ---- Footer ----------------------------------------------- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand { max-width: 280px; }
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* ---- Misc utilities --------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.tag-blue { background: rgba(88,166,255,0.12); color: var(--accent-blue); }
.tag-green { background: rgba(63,185,80,0.12); color: var(--accent-green); }
.tag-orange { background: rgba(210,153,34,0.12); color: var(--accent-orange); }
.tag-purple { background: rgba(188,140,255,0.12); color: var(--accent-purple); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    margin: 0;
  }

  .nav-menu.open { display: flex; }

  .nav-link--github { margin-left: 0; }

  .hero-cta { flex-direction: column; align-items: center; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .cards--2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
