/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2026 Venus Contributors */

/* ============================================
   Venus Design System — Claude Editorial Warm Canvas
   ============================================ */

:root {
  /* --- Colors (Claude Design System) --- */
  --color-primary: #cc785c;
  --color-primary-active: #a9583e;
  --color-primary-disabled: #e6dfd8;
  --color-ink: #141413;
  --color-body: #3d3d3a;
  --color-body-strong: #252523;
  --color-muted: #6c6a64;
  --color-muted-soft: #8e8b82;
  --color-hairline: #e6dfd8;
  --color-hairline-soft: #ebe6df;
  --color-canvas: #f5f0e8;
  --color-surface-soft: #f0e9dd;
  --color-surface-card: #efe9de;
  --color-surface-cream-strong: #e8e0d2;
  --color-grid-line: rgba(20, 20, 19, 0.15);
  --color-surface-dark: #181715;
  --color-surface-dark-elevated: #252320;
  --color-surface-dark-soft: #1f1e1b;
  --color-on-primary: #ffffff;
  --color-on-dark: #faf9f5;
  --color-on-dark-soft: #a09d96;
  --color-accent-teal: #5db8a6;
  --color-accent-amber: #e8a55a;
  --color-success: #5db872;
  --color-warning: #d4a017;
  --color-error: #c64545;

  /* --- Typography --- */
  --font-display: 'Cormorant Garamond', 'Tiempos Headline', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* --- Spacing --- */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* --- Border Radius --- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html[data-theme="cohere"] {
  /* === Colors === */
  --color-primary: #17171c;
  --color-primary-active: #000000;
  --color-primary-disabled: #d9d9dd;
  --color-ink: #212121;
  --color-body: #212121;
  --color-body-strong: #000000;
  --color-muted: #93939f;
  --color-muted-soft: #75758a;
  --color-hairline: #d9d9dd;
  --color-hairline-soft: #e5e7eb;
  --color-canvas: #ffffff;
  --color-surface-soft: #f1f5ff;
  --color-surface-card: #eeece7;
  --color-surface-cream-strong: #f2f2f2;
  --color-grid-line: rgba(33, 33, 33, 0.12);
  --color-surface-dark: #003c33;
  --color-surface-dark-elevated: #071829;
  --color-surface-dark-soft: #17171c;
  --color-on-primary: #ffffff;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #93939f;
  --color-accent-teal: #003c33;
  --color-accent-amber: #ff7759;
  --color-success: #003c33;
  --color-warning: #ff7759;
  --color-error: #b30000;

  /* === Typography === */
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', 'Arial', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Arial', ui-monospace, monospace;

  /* === Spacing (DESIGN.md) === */
  --space-xxs: 2px;
  --space-xs: 6px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section: 80px;

  /* === Radius (DESIGN.md) === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 32px;
}

/* ── Binance Theme ── */
html[data-theme="binance"] {
  /* === Colors === */
  --color-primary: #fcd535;           /* Binance Yellow */
  --color-primary-active: #f0b90b;    /* Darker yellow hover */
  --color-primary-disabled: #3a3a1f;  /* Desaturated dark yellow */
  --color-ink: #ffffff;               /* Headings - white on dark canvas */
  --color-body: #eaecef;             /* Body text on dark canvas */
  --color-body-strong: #ffffff;       /* Strong text */
  --color-muted: #707a8a;            /* Muted text */
  --color-muted-soft: #929aa5;       /* Slightly stronger muted */
  --color-hairline: #2b3139;         /* Dark hairlines */
  --color-hairline-soft: #2b3139;    /* Same for soft variant */
  --color-canvas: #0b0e11;           /* Near-black canvas */
  --color-surface-soft: #1e2329;     /* Card-level surface */
  --color-surface-card: #1e2329;     /* Card background */
  --color-surface-cream-strong: #2b3139; /* Elevated surface */
  --color-grid-line: rgba(234, 236, 239, 0.12); /* Light grid on dark bg */
  --color-surface-dark: #0b0e11;     /* Same as canvas */
  --color-surface-dark-elevated: #2b3139;
  --color-surface-dark-soft: #1e2329;
  --color-on-primary: #181a20;       /* BLACK text on yellow buttons! */
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #707a8a;
  --color-accent-teal: #2dbdb6;      /* Turquoise accent */
  --color-accent-amber: #f0b90b;     /* Yellow-amber */
  --color-success: #0ecb81;          /* Trading green */
  --color-warning: #fcd535;          /* Yellow warning */
  --color-error: #f6465d;            /* Trading red */

  /* === Typography (use existing Inter + JetBrains Mono, already loaded) === */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* === Spacing (same base as classic but section=80px) === */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* === Radius (Binance has tighter radii) === */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;
}

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

/* ---- Global base ---- */
body {
  font-family: var(--font-sans);
  font-feature-settings: "kern";
  background: var(--color-canvas);
  color: var(--color-body);
  min-height: 100vh;
  line-height: 1.55;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-ink);
}

/* ---- Typography utility classes ---- */
.display-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}

.display-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
}

.display-md {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.display-sm {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.title-lg {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.title-md {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.body-md {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.body-sm {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.mono-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.30;
  color: var(--color-muted);
}

.mono-small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

/* ---- Container ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* ============================================
   Hero Band
   ============================================ */
.hero-band {
  background: var(--color-canvas);
  padding: var(--space-section) var(--space-xl);
  text-align: center;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.spike-mark {
  display: block;
  margin: 0 auto var(--space-lg);
  color: var(--color-ink);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
  margin-top: var(--space-md);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s ease-out;
  transition: border-color 0.2s ease;
}

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

.card-dark {
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   Upload Zone
   ============================================ */
.upload-zone {
  border: 2px dashed var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: 60px var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-canvas);
}

.upload-zone:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-muted-soft);
}

.upload-zone.drag-over {
  background: var(--color-surface-soft);
  border: 2px solid var(--color-primary);
  transform: scale(1.01);
}

.upload-icon {
  color: var(--color-muted-soft);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.upload-zone h3 {
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.upload-zone p {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
}

/* ---- Image preview ---- */
.preview-container {
  margin-top: var(--space-lg);
  display: none;
}

.preview-container.active {
  display: block;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.preview-info {
  text-align: center;
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  height: 40px;
  width: 100%;
  margin-top: var(--space-lg);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-active);
}

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

.btn-primary:disabled {
  background: var(--color-primary-disabled);
  color: var(--color-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  height: 40px;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--color-muted-soft);
}

/* ============================================
   Loading State
   ============================================ */
.loading-overlay {
  display: none;
  text-align: center;
  padding: 60px var(--space-lg);
}

.loading-overlay.active {
  display: block;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-hairline);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.loading-subtext {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
}

/* ============================================
   Result Section
   ============================================ */
#result-section {
  display: none;
}

#result-section.active {
  display: block;
}

/* ---- Score Display ---- */
.score-display {
  text-align: center;
  padding: 40px var(--space-lg);
}

.score-ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-lg);
}

.score-ring canvas {
  width: 100%;
  height: 100%;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-ink);
}

.score-max {
  font-size: 1.2rem;
  color: var(--color-muted);
  font-weight: 400;
}

.score-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-muted);
  margin-top: var(--space-xxs);
  font-weight: 400;
}

.scene-type-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  margin-top: var(--space-sm);
}

.photo-type-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 13px;
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* Score color classes */
.score-red { color: var(--color-error); }
.score-orange { color: var(--color-accent-amber); }
.score-blue { color: var(--color-primary); }
.score-green { color: var(--color-success); }

/* ============================================
   Radar Chart & Dimensions
   ============================================ */
.radar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.radar-chart {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.radar-chart canvas {
  width: 100%;
  height: auto;
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dimension-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dimension-label {
  flex: 0 0 80px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}

.dimension-bar {
  flex: 1;
  height: 8px;
  background: var(--color-hairline-soft);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-xs);
  transition: width 1s ease-out;
}

.dimension-score {
  flex: 0 0 40px;
  text-align: right;
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-ink);
}

/* ============================================
   Critique Section
   ============================================ */
.critique-section h3 {
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.critique-section h3 svg {
  color: var(--color-muted);
}

.critique-text {
  color: var(--color-body);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   Collapsible Panel
   ============================================ */
.collapsible {
  margin-top: var(--space-lg);
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s ease;
}

.collapsible-header:hover {
  background: var(--color-surface-cream-strong);
}

.collapsible-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.collapsible-icon {
  font-size: 1.2rem;
  color: var(--color-muted);
  transition: transform 0.3s ease;
}

.collapsible.open .collapsible-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.collapsible.open .collapsible-content {
  max-height: 10000px;
}

.process-content {
  padding: var(--space-lg) 0;
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
  position: relative;
  padding: 20px;
  padding-left: 60px;
  margin-bottom: 20px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-on-primary);
}

/* Step colors — Claude design palette */
.step-proposal { border-color: var(--color-accent-teal); }
.step-proposal::before { background: var(--color-accent-teal); }

.step-critique { border-color: var(--color-error); }
.step-critique::before { background: var(--color-error); }

.step-revision { border-color: var(--color-accent-amber); }
.step-revision::before { background: var(--color-accent-amber); color: var(--color-ink); }

.step-arbitration { border-color: var(--color-primary); }
.step-arbitration::before { background: var(--color-primary); }

.step-title {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  color: var(--color-ink);
}

.step-score {
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  color: var(--color-ink);
}

.step-content {
  color: var(--color-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.critique-text strong,
.step-content strong {
  font-weight: 600;
  color: var(--color-ink);
}

.critique-text em,
.step-content em {
  font-style: italic;
  color: var(--color-body-strong);
}

.severity-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: var(--space-xs);
}

.severity-LOW { background: rgba(93, 184, 114, 0.15); color: var(--color-success); }
.severity-MEDIUM { background: rgba(232, 165, 90, 0.15); color: var(--color-accent-amber); }
.severity-HIGH { background: rgba(198, 69, 69, 0.15); color: var(--color-error); }

.challenge-list {
  margin-top: var(--space-sm);
  padding-left: 20px;
}

.challenge-item {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
}

.challenge-dimension {
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-xxs);
  font-size: 14px;
}

.challenge-issue {
  color: var(--color-ink);
  font-size: 14px;
  margin-bottom: var(--space-xxs);
}

.challenge-evidence {
  color: var(--color-muted);
  font-size: 13px;
  font-style: italic;
}

/* ============================================
   Metadata
   ============================================ */
.metadata {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}

.meta-item {
  text-align: center;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-ink);
}

.meta-label {
  color: var(--color-muted);
  margin-top: var(--space-xxs);
}

/* ============================================
   Error Message
   ============================================ */
.error-message {
  background: rgba(198, 69, 69, 0.06);
  border: 1px solid rgba(198, 69, 69, 0.3);
  color: var(--color-error);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: 20px;
  display: none;
  font-size: 14px;
}

.error-message.active {
  display: block;
}

/* ---- Hidden file input ---- */
#file-input {
  display: none;
}

/* ============================================
   Genre Selector
   ============================================ */
.genre-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.genre-selector label {
  color: var(--color-muted);
  flex-shrink: 0;
}

.genre-selector select {
  padding: 8px 36px 8px 16px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6a64' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-width: 140px;
  height: 40px;
}

.genre-selector select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.genre-selector select:hover {
  border-color: var(--color-muted-soft);
}

.genre-selector select option {
  background: var(--color-canvas);
  color: var(--color-ink);
  padding: var(--space-xs);
}

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

@media (max-width: 560px) {
  .container {
    padding: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }

  .display-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero-band {
    padding: var(--space-xxl) var(--space-md);
  }

  .upload-zone {
    padding: 40px var(--space-md);
  }

  .score-ring {
    width: 160px;
    height: 160px;
  }

  .score-number {
    font-size: 2.4rem;
  }

  .metadata {
    gap: var(--space-lg);
  }

  .radar-section {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .container {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 768px) {
  .hero-band {
    padding: var(--space-xxl) var(--space-md);
  }
}

@media (min-width: 768px) {
  .radar-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1080px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }

  body {
    max-width: 1920px;
    margin: 0 auto;
  }
}

/* ── Theme Toggle ── */
.theme-toggle {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.28px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
  user-select: none;
}

.theme-toggle:hover {
  border-color: var(--color-muted);
  background: var(--color-surface-card);
}

.theme-toggle .theme-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Theme Transition ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease !important;
}
