/* ==========================================================================
   Source Code Viewer — Design Tokens & Core Stylesheet
   No gradients: Built on solid surfaces, layered depth, and crisp borders.
   ========================================================================== */

:root {
  /* Surface & Base Colors */
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-elevated: #283548;

  /* Borders & Dividers */
  --border-subtle: #242f42;
  --border-strong: #374151;
  --border-focus: #3b82f6;

  /* Typography */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accent & Status */
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-focus-ring: rgba(37, 99, 235, 0.35);

  --success-bg: #064e3b;
  --success-text: #34d399;
  --success-border: #047857;

  --danger-bg: #450a0a;
  --danger-text: #f87171;
  --danger-border: #991b1b;

  --warning-bg: #451a03;
  --warning-text: #fbbf24;
  --warning-border: #b45309;

  /* Code Syntax Palette (VS Dark / Charcoal Standard) */
  --syn-comment: #6b7280;
  --syn-keyword: #f43f5e;
  --syn-string: #34d399;
  --syn-number: #fbbf24;
  --syn-function: #60a5fa;
  --syn-tag: #38bdf8;
  --syn-attr: #a78bfa;
  --syn-punct: #9ca3af;
  --syn-match-bg: #b45309;
  --syn-match-text: #ffffff;

  /* Typography Stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Spacing */
  --container-max: 1200px;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #e2e8f0;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

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

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-focus-ring: rgba(37, 99, 235, 0.25);

  --success-bg: #ecfdf5;
  --success-text: #059669;
  --success-border: #a7f3d0;

  --danger-bg: #fef2f2;
  --danger-text: #dc2626;
  --danger-border: #fecaca;

  --warning-bg: #fffbeb;
  --warning-text: #d97706;
  --warning-border: #fde68a;

  --syn-comment: #64748b;
  --syn-keyword: #e11d48;
  --syn-string: #059669;
  --syn-number: #d97706;
  --syn-function: #2563eb;
  --syn-tag: #0284c7;
  --syn-attr: #7c3aed;
  --syn-punct: #475569;
  --syn-match-bg: #fef08a;
  --syn-match-text: #78350f;
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

code, pre {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Button System
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  background-color: var(--accent-active);
}

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

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-focus);
}

.btn-cashapp {
  background-color: #00d632;
  color: #000000;
  font-weight: 700;
}

.btn-cashapp:hover {
  background-color: #00bd2c;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-icon-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-icon-xs:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  color: #ffffff;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.mobile-menu-toggle {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 80px 0 60px;
  background-color: var(--bg-primary);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spec-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   Playground / Interactive Simulator
   ========================================================================== */

.playground-section {
  padding: 60px 0 80px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Workspace Simulation Card */
.workspace-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.workspace-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-app-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.framework-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
}

.react-tag { color: #61dafb; }
.tailwind-tag { color: #38bdf8; }

.workspace-page-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.workspace-body {
  display: flex;
  height: 520px;
}

/* Sidebar */
.workspace-sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

.sidebar-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
}

.sidebar-tab:hover {
  color: var(--text-primary);
}

.sidebar-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.tab-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 999px;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
}

.tab-counter.alert {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.sidebar-panel {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.sidebar-panel[hidden] {
  display: none;
}

.file-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 2px;
}

.file-tree-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.file-tree-item.active {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.file-tree-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-tree-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-type-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.type-js { background-color: rgba(234, 179, 8, 0.15); color: #facc15; }
.type-html { background-color: rgba(249, 115, 22, 0.15); color: #fb923c; }
.type-css { background-color: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.type-json { background-color: rgba(34, 197, 94, 0.15); color: #4ade80; }
.type-map { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }

.file-size-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Secrets List */
.secret-audit-card {
  padding: 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
}

.secret-audit-card:hover {
  border-color: var(--border-strong);
}

.secret-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.severity-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.sev-critical { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-border); }
.sev-high { background: var(--warning-bg); color: var(--warning-text); border: 1px solid var(--warning-border); }

.secret-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.secret-loc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.secret-snip {
  background-color: var(--bg-secondary);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--syn-keyword);
  overflow-x: auto;
  white-space: nowrap;
}

/* Grep Box */
.grep-search-box {
  margin-bottom: 8px;
}

.grep-search-box input {
  width: 100%;
  padding: 7px 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
}

.grep-search-box input:focus {
  border-color: var(--accent-primary);
}

.empty-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 8px;
}

/* Editor Workspace */
.workspace-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-primary);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.editor-file-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.active-filename {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.editor-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-inline-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.search-inline-box:focus-within {
  border-color: var(--accent-primary);
}

.search-inline-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  width: 140px;
}

.search-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

/* Viewport and Code Area */
.code-viewport {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.editor-gutter {
  width: 48px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 14px 0;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gutter-line {
  padding-right: 10px;
  height: 1.6em;
}

.editor-pre {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
  margin: 0;
  line-height: 1.6;
  font-size: 0.82rem;
  white-space: pre;
  tab-size: 4;
}

.editor-pre code {
  color: var(--text-primary);
}

.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

/* Syntax Token Highlighting */
.tok-comment { color: var(--syn-comment); font-style: italic; }
.tok-keyword { color: var(--syn-keyword); font-weight: 600; }
.tok-string { color: var(--syn-string); }
.tok-number { color: var(--syn-number); }
.tok-func { color: var(--syn-function); }
.tok-tag { color: var(--syn-tag); }
.tok-attr { color: var(--syn-attr); }
.tok-punct { color: var(--syn-punct); }

.tok-match {
  background-color: var(--syn-match-bg);
  color: var(--syn-match-text);
  border-radius: 2px;
}

/* ==========================================================================
   Features Grid Section
   ========================================================================== */

.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  margin-bottom: 18px;
}

.feature-icon.alert-icon {
  color: var(--danger-text);
}

.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Integrations Section
   ========================================================================== */

.integrations-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.integration-card {
  padding: 24px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.integration-header h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.integration-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Privacy & Security Card
   ========================================================================== */

.security-section {
  padding: 80px 0;
}

.security-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.security-badge-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.security-shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  color: #10b981;
  flex-shrink: 0;
}

.security-badge-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.security-badge-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.security-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sec-item {
  display: flex;
  gap: 14px;
}

.sec-check {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.sec-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.sec-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.specs-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.88rem;
}

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

.highlight-col {
  background-color: rgba(37, 99, 235, 0.05);
  font-weight: 600;
  color: var(--text-primary);
}

.check-mark {
  color: #10b981;
  font-weight: 700;
  margin-right: 4px;
}

.cross-mark {
  color: var(--danger-text);
  font-weight: 700;
  margin-right: 4px;
}

/* ==========================================================================
   Support CTA Card
   ========================================================================== */

.support-section {
  padding: 80px 0;
}

.support-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
}

.support-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

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

.brand-col .footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 12px 0;
  max-width: 360px;
}

.footer-meta-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-meta-id code {
  color: var(--text-secondary);
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a,
.link-btn {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-col ul li a:hover,
.link-btn:hover {
  color: var(--text-primary);
}

.link-btn {
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Accessible Dialog (Modal)
   ========================================================================== */

.accessible-dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  max-width: 620px;
  width: 90vw;
  padding: 0;
  margin: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.accessible-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

.dialog-content {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-header h3 {
  font-size: 1.15rem;
}

.dialog-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

.dialog-body h4 {
  margin-top: 14px;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.dialog-body h4:first-child {
  margin-top: 0;
}

.dialog-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dialog-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Live Toast Notification
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .workspace-body {
    flex-direction: column;
    height: 600px;
  }

  .workspace-sidebar {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

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

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-specs-row {
    flex-direction: column;
    gap: 12px;
  }

  .spec-divider {
    display: none;
  }
}

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