/* ============================================================
   MEGA MIND DESIGN SYSTEM v2 — Bioluminescent Calm
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Dark Mode (default) */
  --bg: #0C0C10;
  --surface: #14141C;
  --surface-2: #1C1C28;
  --surface-3: #242434;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);

  --text: #E4E2DE;
  --text-muted: #9090A0;
  --text-faint: #5A5A70;

  --primary: #4ECDC4;
  --primary-glow: rgba(78, 205, 196, 0.08);
  --primary-glow-medium: rgba(78, 205, 196, 0.15);
  --primary-hover: #3DBDB5;
  --primary-muted: #2A8A84;

  --secondary: #E8A85C;
  --secondary-glow: rgba(232, 168, 92, 0.08);
  --secondary-muted: #B87A3A;

  --accent-violet: #8B7EC8;
  --accent-rose: #C47A8A;

  --success: #6BCB8B;
  --error: #E07070;
  --warning: #E8C45C;

  --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-hover: 350ms ease-out;
  --transition-fast: 200ms ease-out;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #F6F4F0;
  --surface: #FFFFFF;
  --surface-2: #F0EDE8;
  --surface-3: #E8E4DE;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);

  --text: #1A1820;
  --text-muted: #6A6870;
  --text-faint: #A0A0A8;

  --primary: #2A9D97;
  --primary-glow: rgba(42, 157, 151, 0.08);
  --primary-glow-medium: rgba(42, 157, 151, 0.15);
  --primary-hover: #1E8A84;
  --primary-muted: #1F706B;

  --secondary: #C4842A;
  --secondary-glow: rgba(196, 132, 42, 0.08);
  --secondary-muted: #9A6520;

  --accent-violet: #6B5EA8;
  --accent-rose: #A45A6A;
}

/* Reduced Blue Light */
[data-theme="warm"] {
  --bg: #100E0C;
  --surface: #181410;
  --surface-2: #201C18;
  --surface-3: #2A2420;
  --border: rgba(255, 220, 180, 0.06);
  --border-hover: rgba(255, 220, 180, 0.1);

  --text: #E8D2A0;
  --text-muted: #A09070;
  --text-faint: #6A5A40;

  --primary: #7BC4A0;
  --primary-glow: rgba(123, 196, 160, 0.08);
  --primary-glow-medium: rgba(123, 196, 160, 0.15);
  --primary-hover: #6AB490;
  --primary-muted: #4A8A6A;

  --secondary: #D4A040;
  --secondary-glow: rgba(212, 160, 64, 0.08);
  --secondary-muted: #A07A30;

  --accent-violet: #A09478;
  --accent-rose: #B49080;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition-hover), color var(--transition-hover);
  overflow-x: hidden;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Theme Toggle ---- */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  transition: border-color var(--transition-hover), transform var(--transition-hover);
}

.theme-swatch:hover {
  transform: scale(1.1);
}

.theme-swatch.active {
  border-color: var(--primary);
}

.swatch-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ---- Section Structure ---- */
.ds-section {
  padding: 100px 0;
  position: relative;
}

.ds-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity: 0.6;
}

.ds-section:last-of-type::after {
  display: none;
}

.ds-section--full {
  padding-left: 0;
  padding-right: 0;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-accent-line {
  width: 40px;
  height: 2px;
  background: var(--primary-muted);
  border-radius: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-neural-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

.hero-logo-wrap {
  display: inline-block;
  margin-bottom: 32px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  animation: logoBreath 5s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(78, 205, 196, 0.3)); }
  50%       { filter: drop-shadow(0 0 24px rgba(78, 205, 196, 0.5)); }
}

.logo-ambient-glow {
  animation: ambientPulse 6s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: baseline;
}

.hero-title-connector {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.title-synapse {
  width: 22px;
  height: 32px;
  display: inline-block;
  vertical-align: baseline;
  margin: 0 -1px;
  position: relative;
  top: 2px;
  animation: synapsePulse 4s ease-in-out infinite;
}

@keyframes synapsePulse {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 4px rgba(78, 205, 196, 0.3)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.6)); }
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ============================================================
   SECTION 2: COLOR PALETTE
   ============================================================ */
.palette-group-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: 40px;
}

.palette-group-title:first-of-type {
  margin-top: 0;
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.color-swatch {
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swatch-fill {
  width: 100%;
  height: 80px;
  border-radius: 16px;
  background: var(--swatch-bg);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--transition-hover), box-shadow var(--transition-hover);
}

.swatch-fill:hover {
  transform: scale(1.05);
}

[data-theme="light"] .swatch-fill {
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .hero-neural-bg {
  opacity: 0.03;
}

/* Light mode: make logo neurons much more visible */
[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 0 8px rgba(42, 157, 151, 0.4));
}

[data-theme="light"] .logo-dendrites path {
  stroke: var(--primary);
  opacity: 1 !important;
  stroke-width: 2.5px;
}

[data-theme="light"] .logo-terminals circle {
  opacity: 1 !important;
}

[data-theme="light"] .logo-ambient-glow {
  opacity: 0.5;
}

[data-theme="light"] .logo-soma {
  stroke-width: 3px;
}

@keyframes logoBreathLight {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(42, 157, 151, 0.4)); }
  50%      { filter: drop-shadow(0 0 16px rgba(42, 157, 151, 0.6)); }
}

[data-theme="light"] .hero-logo {
  animation-name: logoBreathLight;
}

.swatch-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}

.swatch-hex {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SECTION 3: TYPOGRAPHY
   ============================================================ */
.type-scale {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 56px;
}

.type-sample {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.type-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.type-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.type-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
}

.type-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.type-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
}

.type-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
}

.type-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
}

.type-caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
}

.type-pairing-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
}

/* ============================================================
   SECTION 4: COMPONENTS
   ============================================================ */
.component-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 48px;
}

.component-label:first-of-type {
  margin-top: 0;
}

.component-showcase {
  margin-bottom: 16px;
}

/* --- Search Bar --- */
.mm-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px 24px;
  max-width: 640px;
  transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.mm-search-bar:focus-within {
  border-color: rgba(78, 205, 196, 0.2);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 0 30px var(--primary-glow), 0 0 60px rgba(78, 205, 196, 0.03);
}

.mm-search-icon {
  width: 22px;
  height: 22px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.mm-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
}

.mm-search-input::placeholder {
  color: var(--text-faint);
}

/* --- Paper Card --- */
.mm-paper-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 640px;
  transition: transform var(--transition-hover), border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.mm-paper-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.mm-paper-card--saved {
  border-left: 2px solid var(--primary-muted);
  background: linear-gradient(135deg, var(--primary-glow), var(--surface-2) 30%);
}

.paper-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.paper-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

.paper-save-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-hover), background var(--transition-hover);
}

.paper-save-btn svg {
  width: 18px;
  height: 18px;
}

.paper-save-btn:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.paper-save-btn--active {
  color: var(--primary);
}

.paper-card-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.paper-card-summary {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.paper-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Concept Pills --- */
.mm-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-3);
  border-radius: 100px;
  padding: 5px 14px;
  transition: background var(--transition-hover), color var(--transition-hover);
  cursor: default;
  white-space: nowrap;
}

.mm-pill:hover {
  background: var(--primary-glow-medium);
  color: var(--primary);
}

.mm-pill--active {
  background: var(--primary-glow-medium);
  color: var(--primary);
}

.mm-pill--faint {
  opacity: 0.5;
  font-size: 12px;
}

.mm-pill--lg {
  font-size: 15px;
  padding: 7px 18px;
}

.mm-pill--sm {
  font-size: 11px;
  padding: 3px 10px;
}

.pills-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* --- Buttons --- */
.buttons-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mm-btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 24px;
  transition: background var(--transition-hover), color var(--transition-hover), box-shadow var(--transition-hover), transform var(--transition-hover), border-color var(--transition-hover);
  letter-spacing: 0.01em;
}

.mm-btn--sm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
}

.mm-btn--primary {
  background: var(--primary);
  color: #0C0C10;
}

.mm-btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 20px var(--primary-glow-medium);
  transform: translateY(-1px);
}

.mm-btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.mm-btn--secondary:hover {
  border-color: var(--primary-muted);
  background: var(--primary-glow);
}

.mm-btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.mm-btn--ghost:hover {
  background: var(--surface-3);
  color: var(--text);
}

/* --- Discussion --- */
.mm-discussion {
  max-width: 640px;
}

.mm-comment {
  padding: 20px 0;
}

.mm-comment + .mm-comment {
  border-top: 1px solid var(--border);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #0C0C10;
  flex-shrink: 0;
}

.comment-avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.comment-meta {
  display: flex;
  flex-direction: column;
}

.comment-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.comment-time {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-faint);
}

.comment-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 48px;
}

/* --- Beta Signup --- */
.mm-signup-form {
  max-width: 480px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.mm-signup-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.mm-signup-input::placeholder {
  color: var(--text-faint);
}

.mm-signup-input:focus {
  border-color: rgba(78, 205, 196, 0.2);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.signup-count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}

/* ============================================================
   SECTION 5: KNOWLEDGE MAP
   ============================================================ */
.knowledge-map-container {
  width: 100%;
  height: 800px;
  position: relative;
  overflow: hidden;
}

#knowledgeMap {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   SECTION 6: APP SCREENS
   ============================================================ */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

.app-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.app-frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}

.chrome-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 8px;
}

.app-frame-body {
  padding: 16px;
  background: var(--bg);
  min-height: 360px;
}

/* Mock Search Screen */
.mock-search-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-search-bar--mock {
  padding: 10px 16px;
  margin-bottom: 6px;
}

.mock-placeholder {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
}

.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.mock-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
}

.mock-card-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mock-card-tags {
  display: flex;
  gap: 4px;
}

/* Mock Paper Screen */
.mock-paper-screen {
  padding: 4px;
}

.mock-paper-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.mock-paper-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-paper-summary {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 14px;
}

.mock-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

.mock-thread-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-mini-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.mock-mini-comment-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
}

/* Mock Map Screen */
.mock-map-screen {
  display: flex;
  height: 320px;
}

.mock-map-canvas {
  flex: 1;
  border-radius: 8px;
}

.mock-side-panel {
  width: 120px;
  padding: 12px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-concept-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
}

.mock-concept-stat {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  color: var(--text-faint);
}

.mock-concept-related {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* ============================================================
   SECTION 7: ACCESSIBILITY
   ============================================================ */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .a11y-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.a11y-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.a11y-mode-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
}

.a11y-demo {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
}

.a11y-search {
  border-radius: 16px;
  padding: 10px 16px;
  border: 1px solid;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
}

.a11y-card {
  border-radius: 12px;
  padding: 14px;
  border: 1px solid;
}

.a11y-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}

.a11y-card-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  margin-bottom: 8px;
}

.a11y-card-tags {
  display: flex;
  gap: 6px;
}

.a11y-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  border-radius: 100px;
  padding: 3px 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.footer-attribution {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--transition-hover);
}

.footer-attribution:hover {
  color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .hero-tagline { font-size: 16px; }
  .hero-logo { width: 100px; height: 100px; }
  .section-title { font-size: 26px; }
  .section-container { padding: 0 20px; }
  .ds-section { padding: 60px 0; }
  .type-display { font-size: 36px; }
  .type-h1 { font-size: 28px; }
  .comment-text { padding-left: 0; margin-top: 8px; }
  .signup-row { flex-direction: column; }
  .knowledge-map-container { height: 500px; }
  .theme-toggle { top: 12px; right: 12px; }
  .screens-grid { grid-template-columns: 1fr; }
}
