/* ==========================================================================
   VoiceBridge — Accessible Website Stylesheet
   Designed for Universal Design for Learning (UDL), WCAG AAA Contrast & K-12
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lexend:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://cdn.jsdelivr.net/npm/opendyslexic@1.0.3/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://cdn.jsdelivr.net/npm/opendyslexic@1.0.3/OpenDyslexic-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Variables --- */
:root {
  /* Default Clean Light Theme */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: #6366f1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --brand-primary: #4f46e5;
  --brand-primary-hover: #4338ca;
  --brand-primary-light: #eef2ff;
  --brand-secondary: #0ea5e9;
  --brand-accent: #10b981;
  --brand-accent-light: #ecfdf5;

  --state-recording: #ef4444;
  --state-recording-light: #fee2e2;
  --state-review: #3b82f6;
  --state-success: #10b981;
  --state-warning: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);

  --font-family-current: 'Lexend', 'Inter', -apple-system, sans-serif;
  --font-size-scale: 1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --- Theme 2: Deep Dark Mode --- */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1e293b;
  --bg-surface-subtle: #17223b;
  --bg-nav: rgba(19, 27, 46, 0.92);
  --border-subtle: #243452;
  --border-medium: #334155;
  --border-accent: #818cf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --brand-primary: #6366f1;
  --brand-primary-hover: #818cf8;
  --brand-primary-light: rgba(99, 102, 241, 0.15);
  --brand-secondary: #38bdf8;
  --brand-accent: #34d399;
  --brand-accent-light: rgba(52, 211, 153, 0.15);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);
}

/* --- Theme 3: High Contrast Yellow/Black (WCAG AAA 7:1) --- */
[data-theme="high-contrast"] {
  --bg-main: #000000;
  --bg-surface: #121212;
  --bg-surface-elevated: #1a1a1a;
  --bg-surface-subtle: #242424;
  --bg-nav: #000000;
  --border-subtle: #ffd700;
  --border-medium: #ffd700;
  --border-accent: #ffd700;

  --text-primary: #ffd700;
  --text-secondary: #ffffff;
  --text-muted: #e6e6e6;
  --text-inverse: #000000;

  --brand-primary: #ffd700;
  --brand-primary-hover: #ffffff;
  --brand-primary-light: #262300;
  --brand-secondary: #ffffff;
  --brand-accent: #00ff66;
  --brand-accent-light: #003314;

  --state-recording: #ff3333;
  --state-recording-light: #4d0000;
  --state-review: #ffd700;
  --state-success: #00ff66;
  --state-warning: #ffaa00;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-glow: 0 0 15px #ffd700;
}

/* --- Theme 4: Soft Pastel Low-Glare --- */
[data-theme="pastel"] {
  --bg-main: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4efe6;
  --bg-surface-subtle: #ece5d8;
  --bg-nav: rgba(251, 249, 245, 0.94);
  --border-subtle: #e0d7c7;
  --border-medium: #c7baa7;
  --border-accent: #5e6c84;

  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;

  --brand-primary: #4a6fa5;
  --brand-primary-hover: #3d5c8a;
  --brand-primary-light: #e8f0fe;
  --brand-secondary: #6b8cae;
  --brand-accent: #48bb78;
  --brand-accent-light: #e6fffa;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 16px 24px rgba(0, 0, 0, 0.07);
  --shadow-glow: 0 0 20px rgba(74, 111, 165, 0.15);
}

/* --- Font Customizations --- */
[data-font="lexend"] {
  --font-family-current: 'Lexend', sans-serif;
}

[data-font="opendyslexic"] {
  --font-family-current: 'OpenDyslexic', sans-serif;
}

[data-font="system"] {
  --font-family-current: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-size-scale));
}

body {
  font-family: var(--font-family-current);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Accessibility Toolbar (Sticky Top Bar)
   ========================================================================== */
.a11y-bar {
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 101;
}

.a11y-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.a11y-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.a11y-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.a11y-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.a11y-btn {
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  min-height: 32px;
}

.a11y-btn:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--border-accent);
}

.a11y-btn.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
  font-weight: 600;
}

[data-theme="high-contrast"] .a11y-btn.active {
  background: #ffd700;
  color: #000000;
  border-color: #ffd700;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-accent-light);
  color: var(--brand-accent);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 6px;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-accent);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 38px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="high-contrast"] .hero-title-highlight {
  background: none;
  -webkit-text-fill-color: #ffd700;
  color: #ffd700;
  text-decoration: underline;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.trust-item svg {
  color: var(--brand-accent);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card-caption {
  padding: 16px 20px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive VoiceBridge Simulator Section
   ========================================================================== */
.simulator-section {
  padding: 80px 0;
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.simulator-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.simulator-header {
  background: var(--bg-surface-elevated);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-window-dots {
  display: flex;
  gap: 8px;
}

.sim-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}

.sim-dot.red { background: #ef4444; }
.sim-dot.yellow { background: #f59e0b; }
.sim-dot.green { background: #10b981; }

.sim-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-body {
  padding: 32px;
}

/* Simulated Classroom Context */
.classroom-mock-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.classroom-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.classroom-prompt {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.classroom-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Recording Sandbox UI */
.recording-sandbox {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.recording-sandbox.state-recording {
  border-color: var(--state-recording);
  background: var(--state-recording-light);
}

.waveform-canvas-container {
  height: 90px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.waveform-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-timer {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.sim-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-record {
  background: var(--state-recording);
  color: #ffffff;
}

.btn-record:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-stop {
  background: var(--state-review);
  color: #ffffff;
}

.btn-stop:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-insert {
  background: var(--brand-accent);
  color: #ffffff;
}

.btn-insert:hover {
  background: #059669;
  color: #ffffff;
}

/* Comment Box Injection Simulator */
.comment-box-mock {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 16px;
}

.comment-input-area {
  min-height: 60px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.injected-audio-card {
  background: var(--brand-primary-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.audio-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.audio-card-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.audio-card-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Store Asset Feature Showcase (Alternating Layouts)
   ========================================================================== */
.features-section {
  padding: 100px 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-content {
  max-width: 520px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.feature-point-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-accent-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.feature-image-wrapper {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.feature-image-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Audio Player Showcase */
.interactive-player-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.player-demo-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.player-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}

.player-play-btn:hover {
  background: var(--brand-primary-hover);
}

.player-scrubber-track {
  flex: 1;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.player-scrubber-fill {
  width: 45%;
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.player-time {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-muted);
}

.player-speed-pills {
  display: flex;
  gap: 6px;
  align-items: center;
}

.speed-pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.speed-pill.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Architecture & /bin/zsh Developer Cost Section
   ========================================================================== */
.architecture-section {
  padding: 90px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.arch-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.arch-card.highlight {
  border-color: var(--brand-accent);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.arch-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--brand-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.arch-list li {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.arch-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================================================
   Privacy & Security Compliance Cards
   ========================================================================== */
.privacy-section {
  padding: 100px 0;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.compliance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform var(--transition-fast);
}

.compliance-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.compliance-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.compliance-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.compliance-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   District Admin & Deployment Section
   ========================================================================== */
.deployment-section {
  padding: 90px 0;
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.deployment-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.code-block {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-top: 14px;
  overflow-x: auto;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  transition: transform var(--transition-fast);
  font-size: 1.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.925rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  .architecture-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .a11y-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
