/* ════════════════════════════════════════
   Flappy Board — Developer Docs
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Custom Properties ── */
:root {
  --bg:            #09080B;
  --bg-alt:        #0D0C10;
  --bg-section:    #0B0A0D;
  --bg-card:       #131118;
  --bg-code:       #0F0E12;

  --tile-border:   #2E2A38;

  --amber:         #E8A820;
  --amber-bright:  #FFC840;
  --amber-muted:   rgba(232, 168, 32, 0.14);
  --amber-line:    rgba(232, 168, 32, 0.25);

  --cream:         #EDE0C0;
  --cream-dim:     #8A7C5E;

  --text:          #BEB2A0;
  --text-muted:    #5A5040;
  --text-subtle:   #3A342A;

  --border:        #1E1C24;
  --border-mid:    #2A2732;

  --method-get:    #3B7DD8;
  --method-post:   #2E9B5F;
  --method-put:    #C87A20;
  --method-delete: #C84040;

  --font-display:  'Abril Fatface', Georgia, serif;
  --font-body:     'Crimson Pro', Georgia, serif;
  --font-mono:     'Courier Prime', 'Courier New', monospace;

  --r:             4px;
  --r-lg:          8px;
  --sidebar-w:     230px;
  --max:           960px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9000;
}

/* ════════════════════════
   NAV
   ════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(9, 8, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-logo:hover { color: var(--amber-bright); }

.nav-sep {
  color: var(--border-mid);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-cta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 0.4rem 1rem;
  border-radius: var(--r);
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
}

/* ════════════════════════
   PAGE LAYOUT
   ════════════════════════ */
.page-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - 52px);
  max-width: 1320px;
  margin: 0 auto;
}

/* ════════════════════════
   SIDEBAR
   ════════════════════════ */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 0 4rem;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.sidebar-group {
  margin-bottom: 0.25rem;
}

.sidebar-group-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 1.2rem 1.6rem 0.4rem;
}

.sidebar-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.35rem 1.6rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.sidebar-link:hover {
  color: var(--cream);
  background: rgba(255,255,255,0.02);
}
.sidebar-link.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: var(--amber-muted);
}

.sidebar-link.method-link {
  font-size: 0.65rem;
  padding-left: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-method {
  display: inline-block;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  line-height: 1.4;
  flex-shrink: 0;
}

.sidebar-method.get    { background: rgba(59, 125, 216, 0.2); color: #6aaeff; }
.sidebar-method.post   { background: rgba(46, 155, 95, 0.2);  color: #5ecf8a; }
.sidebar-method.put    { background: rgba(200, 122, 32, 0.2); color: #e8a040; }
.sidebar-method.delete { background: rgba(200, 64, 64, 0.2);  color: #e87070; }

/* ════════════════════════
   MAIN CONTENT
   ════════════════════════ */
.main {
  padding: 0 0 8rem;
  min-width: 0;
}

/* ════════════════════════
   HERO
   ════════════════════════ */
.hero {
  padding: 5rem 3rem 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(40, 30, 8, 0.4) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-callouts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  max-width: 320px;
}

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

.callout-text {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
}

.callout-text strong {
  color: var(--cream);
  font-weight: 500;
}

/* ════════════════════════
   SECTIONS
   ════════════════════════ */
.section {
  padding: 4rem 3rem;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-alt {
  background: var(--bg-section);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.subsection {
  margin-top: 2.5rem;
}

.subsection-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.body-text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.body-text + .body-text {
  margin-top: -0.25rem;
}

.body-text a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 2px;
}
.body-text a:hover { color: var(--amber-bright); }

/* ════════════════════════
   CODE BLOCKS
   ════════════════════════ */
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A3440;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-left: 0.5rem;
}

.code-copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.code-copy:hover {
  color: var(--cream);
  border-color: var(--border-mid);
  background: rgba(255,255,255,0.04);
}
.code-copy.copied {
  color: var(--method-post);
  border-color: rgba(46,155,95,0.4);
}

.code-body {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

/* Syntax highlight spans */
.code-body .c  { color: #3A3450; }             /* comment */
.code-body .k  { color: #C080E8; }             /* keyword */
.code-body .s  { color: #80C890; }             /* string */
.code-body .n  { color: #90C8F0; }             /* name/key */
.code-body .v  { color: var(--amber); }        /* value/number */
.code-body .p  { color: var(--text-muted); }   /* punctuation */
.code-body .m  { color: #A0D0FF; }             /* method/http-verb */
.code-body .u  { color: var(--cream-dim); }    /* url */
.code-body .h  { color: #D0A0FF; }             /* header */
.code-body .cm { color: var(--text-muted); }   /* comment-marker */

/* ════════════════════════
   INLINE CODE
   ════════════════════════ */
.inline-code, code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--amber);
  background: rgba(232, 168, 32, 0.08);
  border: 1px solid rgba(232, 168, 32, 0.15);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

/* ════════════════════════
   ENDPOINT CARDS
   ════════════════════════ */
.endpoint-group {
  margin-bottom: 3rem;
}

.endpoint-card {
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  flex-wrap: wrap;
}

.method-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.method-badge.get    { background: rgba(59,125,216,0.18); color: #6aaeff; border: 1px solid rgba(59,125,216,0.3); }
.method-badge.post   { background: rgba(46,155,95,0.18);  color: #5ecf8a; border: 1px solid rgba(46,155,95,0.3);  }
.method-badge.put    { background: rgba(200,122,32,0.18); color: #e8a040; border: 1px solid rgba(200,122,32,0.3); }
.method-badge.delete { background: rgba(200,64,64,0.18);  color: #e87070; border: 1px solid rgba(200,64,64,0.3);  }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.auth-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  background: var(--amber-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  margin-left: auto;
}

.endpoint-body {
  padding: 1.4rem;
}

.endpoint-desc {
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 600px;
}

.endpoint-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  margin-top: 1.25rem;
}

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

/* ════════════════════════
   RESPONSE TABLE / CODES
   ════════════════════════ */
.response-codes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.response-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.response-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 2.8rem;
  color: var(--text-muted);
}

.response-code.ok     { color: #5ecf8a; }
.response-code.client { color: #e8a040; }
.response-code.auth   { color: #e87070; }

.response-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ════════════════════════
   PARAMS TABLE
   ════════════════════════ */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.88rem;
}

.param-table th {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: left;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.param-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(30,28,36,0.6);
  vertical-align: top;
  line-height: 1.5;
}

.param-table tr:last-child td {
  border-bottom: none;
}

.param-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream);
  white-space: nowrap;
}

.param-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.param-required {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e87070;
  background: rgba(200,64,64,0.12);
  border: 1px solid rgba(200,64,64,0.2);
  border-radius: 2px;
  padding: 0.1rem 0.35rem;
}

.param-optional {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.1rem 0.35rem;
}

.param-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ════════════════════════
   TRANSITION ANIMATION TABLE
   ════════════════════════ */
.anim-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}

.anim-table th {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: left;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.anim-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(30,28,36,0.5);
  vertical-align: top;
  line-height: 1.5;
}

.anim-table tr:last-child td { border-bottom: none; }

.anim-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  white-space: nowrap;
}

.anim-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ════════════════════════
   TIER TABLE
   ════════════════════════ */
.tier-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  margin: 1.5rem 0;
}

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

.tier-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-mid);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.tier-table th.tier-col {
  text-align: center;
  color: var(--amber);
}

.tier-table td {
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(30,28,36,0.5);
  color: var(--text-muted);
  font-weight: 300;
}

.tier-table tr:last-child td { border-bottom: none; }

.tier-table td.tier-col {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tier-check { color: #5ecf8a; }
.tier-no    { color: var(--text-subtle); }

/* ════════════════════════
   CALLOUT BOXES
   ════════════════════════ */
.info-box {
  background: rgba(59, 125, 216, 0.07);
  border: 1px solid rgba(59, 125, 216, 0.2);
  border-left: 3px solid #3B7DD8;
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
}

.warn-box {
  background: rgba(200, 122, 32, 0.07);
  border: 1px solid rgba(200, 122, 32, 0.2);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
}

.info-box strong,
.warn-box strong {
  color: var(--cream);
  font-weight: 500;
}

/* ════════════════════════
   STEP LIST
   ════════════════════════ */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  max-width: 640px;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--amber-muted);
  border: 1px solid var(--amber-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  margin-top: 0.25rem;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
}

/* ════════════════════════
   PILL LIST
   ════════════════════════ */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cream-dim);
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}

/* ════════════════════════
   REPO CALLOUT
   ════════════════════════ */
.repo-callout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--cream-dim);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.repo-callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.repo-callout-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.repo-callout-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.repo-callout-title a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-mid);
}

.repo-callout-title a:hover {
  text-decoration-color: var(--cream-dim);
}

.repo-callout-desc {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
}

.repo-callout-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.repo-example-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cream-dim);
  border: 1px solid var(--border-mid);
  background: rgba(255,255,255,0.03);
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.repo-example-pill .pill-label {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ════════════════════════
   INTEGRATION EXAMPLES
   ════════════════════════ */
.example-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: none;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}

.example-tab {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-mid);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.example-tab:last-child { border-right: none; }
.example-tab:hover { color: var(--cream); background: rgba(255,255,255,0.03); }
.example-tab.active { color: var(--amber); background: rgba(232,168,32,0.06); }

.example-panel {
  display: none;
}
.example-panel.active {
  display: block;
}

.example-panel > .code-block {
  margin-top: 0;
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ════════════════════════
   FOOTER
   ════════════════════════ */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ════════════════════════
   SCROLL REVEAL
   ════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--bg);
  }

  .sidebar-group {
    display: contents;
  }

  .sidebar-group-label {
    display: none;
  }

  .sidebar-link {
    padding: 0.4rem 1rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.65rem;
  }

  .sidebar-link.active {
    border-bottom-color: var(--amber);
    border-left-color: transparent;
  }

  .sidebar-link.method-link {
    padding-left: 1rem;
  }

  .hero { padding: 3rem 1.5rem 2.5rem; }
  .section { padding: 3rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
  .nav { padding: 0.8rem 1rem; }
  .nav-label { display: none; }
  .hero-headline { font-size: 2rem; }
  .callout { max-width: 100%; }
  .hero-callouts { flex-direction: column; }
  .param-table, .anim-table { font-size: 0.8rem; }
  .tier-table { font-size: 0.8rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
