/* ==========================================================================
   Vela Official Website Stylesheet
   Editorial engineering aesthetic:
   - Self-hosted Space Grotesk (118px hero, 52px H2) & Inter body (17px/29.24px)
   - Light-first (#fcfcfd) with polished dark mode (#08080c)
   - 64px square subtle grid with localized pale cyan/amber/violet washes
   - Exact container measurements: 1172px outer / 1124px content at x158,
     972px outer / 924px hero at x258
   - Primary CTA matched to reference yellow (#ffc21a), square controls
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Webfonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */

:root,
html[data-theme="light"] {
  --theme-name: "light";

  /* Canvas & Surfaces */
  --bg-page: #fcfcfd;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f6f6f8;
  --bg-surface-elevated: #ffffff;
  --bg-input: #ffffff;

  /* Borders & Grid */
  --border-subtle: rgba(10, 10, 18, 0.08);
  --border-medium: rgba(10, 10, 18, 0.16);
  --border-focus: #a84c00;
  --grid-line: rgba(10, 10, 18, 0.032);

  /* Typography Colors */
  --text-primary: #0a0a12;
  --text-secondary: #3c3c4a;
  --text-muted: #52525f;
  --text-faint: #6d6d7e;

  /* Primary Yellow Button Background vs Dark Amber Text Foreground */
  --accent-amber: #a84c00;
  --accent-amber-bg: #ffc21a;
  --accent-amber-hover: #f0b510;
  --accent-amber-text: #0a0a12;
  --accent-amber-badge-bg: rgba(168, 76, 0, 0.06);
  --accent-amber-badge-border: rgba(168, 76, 0, 0.18);

  --gradient-headline: none;

  /* Code Blocks & Badges */
  --code-bg: #f4f4f7;
  --code-border: rgba(10, 10, 18, 0.08);
  --code-text: #0a0a12;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 32px -4px rgba(10, 10, 18, 0.06);
  --shadow-image: 0 12px 40px -6px rgba(10, 10, 18, 0.08);

  /* Nav Backdrop */
  --nav-backdrop: rgba(252, 252, 253, 0.88);
}

html[data-theme="dark"] {
  --theme-name: "dark";

  /* Canvas & Surfaces */
  --bg-page: #08080c;
  --bg-surface: #101017;
  --bg-surface-subtle: #141420;
  --bg-surface-elevated: #161624;
  --bg-input: #0e0e16;

  /* Borders & Grid */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-focus: #ffc21a;
  --grid-line: rgba(255, 255, 255, 0.035);

  /* Typography Colors */
  --text-primary: #f5f5f7;
  --text-secondary: #c5c5d4;
  --text-muted: #9494a3;
  --text-faint: #9696a6;

  /* Primary Yellow Accent */
  --accent-amber: #ffc21a;
  --accent-amber-bg: #ffc21a;
  --accent-amber-hover: #f0b510;
  --accent-amber-text: #08080c;
  --accent-amber-badge-bg: rgba(255, 194, 26, 0.1);
  --accent-amber-badge-border: rgba(255, 194, 26, 0.3);

  --gradient-headline: none;

  /* Code Blocks & Badges */
  --code-bg: #11111a;
  --code-border: rgba(255, 255, 255, 0.08);
  --code-text: #f5f5f7;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-image: 0 16px 48px -8px rgba(0, 0, 0, 0.6);

  /* Nav Backdrop */
  --nav-backdrop: rgba(8, 8, 12, 0.88);
}

:root {
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /*
     1124px visible content + 2*24px gutters = 1172px outer width.
     At 1440px viewport: (1440 - 1172) / 2 = 134px margin + 24px padding = exactly x158!
  */
  --max-content-width: 1172px;

  /*
     924px visible hero content + 2*24px gutters = 972px outer width.
     At 1440px viewport: (1440 - 972) / 2 = 234px margin + 24px padding = exactly x258!
  */
  --hero-content-width: 972px;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5.46875vw, 70px);
  padding-right: clamp(20px, 7.8125vw, 100px);
  min-width: 0;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-left: 70px;
    padding-right: 100px;
  }
}

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

.section-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-subtle);
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Site Header & Navigation (62px height, x70-1180 content alignment)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 62px;
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-mark-img {
  width: 22px;
  height: 22px;
  display: block;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Square Icon Buttons */
.btn-icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background-color: transparent;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.btn-icon-square:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.header-docs-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header-docs-link:hover,
.header-docs-link.active {
  color: var(--text-primary);
}

.header-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-lang-link:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
}

/* Mobile dropdown menu (compact dropdown, non-modal) */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 150;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-panel .nav-link {
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-panel .nav-link:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   6. Buttons & Controls (Geometric square/near-square styling)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary-amber {
  background-color: var(--accent-amber-bg);
  color: var(--accent-amber-text);
  border-color: transparent;
}

.btn-primary-amber:hover {
  background-color: var(--accent-amber-hover);
  transform: translateY(-1px);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary-outline:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-primary);
}

.btn-tertiary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 12px;
  height: 46px;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease;
  box-sizing: border-box;
}

.btn-tertiary-link:hover {
  color: var(--text-primary);
}

/* Subdued neutral pill badge matching reference */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  display: inline-block;
  flex-shrink: 0;
}

/* Command row with copy button */
.hero-command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--code-text);
  min-width: 0;
}

.command-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.command-prompt {
  color: var(--accent-amber);
  font-weight: 600;
  user-select: none;
  flex-shrink: 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  color: var(--text-faint);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
}

.btn-copy.copied {
  color: #10b981;
  font-size: 11px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   7. Hero Section (Space Grotesk 118px / 115.64px, y960 divider target)
   -------------------------------------------------------------------------- */

.hero-section {
  padding-top: 92px;
  /* Reduced by 36px from 140px to 104px to place the divider precisely at y960 */
  padding-bottom: 104px;
  position: relative;
  overflow: visible;
  /* Subtle restrained warm wash on grid */
  background-image:
    radial-gradient(ellipse 45% 55% at 15% 25%, rgba(255, 194, 26, 0.035) 0%, transparent 65%);
  background-repeat: no-repeat;
}

html[data-theme="dark"] .hero-section {
  background-image:
    radial-gradient(ellipse 45% 55% at 15% 25%, rgba(255, 194, 26, 0.05) 0%, transparent 65%);
  background-repeat: no-repeat;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 118px;
  line-height: 115.64px;
  font-weight: 700;
  letter-spacing: -5.9px;
  color: var(--text-primary);
  margin-bottom: 32px;
  word-break: break-word;
}

.hero-heading span {
  display: block;
}

.hero-heading .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  display: inline-block;
}

.hero-description {
  font-size: 17px;
  line-height: 29.24px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

/* Hero CTA flex layout */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  min-width: 0;
}

.hero-cta-primary-wrap {
  display: inline-flex;
  flex: 0 0 auto;
}

.hero-cta-secondary-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. Narrative Content Sections (H2 52px / 54.6px, -2.08px tracking)
   -------------------------------------------------------------------------- */

.narrative-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background-color: var(--accent-amber);
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 54.6px;
  font-weight: 700;
  letter-spacing: -2.08px;
  color: var(--text-primary);
  margin-bottom: 24px;
  word-break: break-word;
}

.section-h2 .gradient-text,
.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  display: inline;
}

.section-lead {
  font-size: 17px;
  line-height: 29.24px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Two-column layout with minmax(0, 1fr) grid tracks */
.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.two-column-layout.reverse {
  direction: rtl;
}

.two-column-layout.reverse > * {
  direction: ltr;
}

.two-column-layout > * {
  min-width: 0;
}

.prose-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-bullet-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-bullet-marker {
  width: 7px;
  height: 7px;
  background-color: var(--accent-amber);
  border-radius: var(--radius-xs);
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-bullet-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Product Screenshot Frame */
.product-screenshot-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  transition: border-color 0.2s ease;
  min-width: 0;
}

.product-screenshot-frame:hover {
  border-color: var(--border-medium);
}

.product-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background-color: var(--bg-surface-subtle);
}

.screenshot-caption {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Structure Card (Directory tree) with strict local horizontal overflow */
.structure-card {
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.structure-title {
  color: var(--accent-amber);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.tree-line {
  white-space: pre;
  min-width: max-content;
}

.tree-line .comment {
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   9. Three-Column Cards Grid (Restrained, square cards)
   -------------------------------------------------------------------------- */

.cards-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cards-grid-four {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

@media (min-width: 1025px) {
  .cards-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.clean-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  min-width: 0;
}

.clean-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin-bottom: 12px;
  word-break: break-word;
}

.card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-meta-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Preview Download Close Section
   -------------------------------------------------------------------------- */

.download-close-section {
  padding-top: 130px;
  padding-bottom: 140px;
  text-align: center;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 194, 26, 0.035) 0%, transparent 70%);
}

.download-close-inner {
  max-width: 760px;
  margin: 0 auto;
}

.download-close-inner .section-h2 {
  font-size: 52px;
  line-height: 54.6px;
  margin-bottom: 20px;
}

.download-close-inner .section-lead {
  margin-bottom: 36px;
}

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

.download-caveat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Site Footer
   -------------------------------------------------------------------------- */

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-faint);
  min-width: 0;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.footer-brand-line strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
}

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

.footer-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   12. Documentation Layout (docs.html)
   -------------------------------------------------------------------------- */

.docs-wrapper {
  padding-top: 48px;
  padding-bottom: 96px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.docs-toc-toggle {
  display: none;
}

.docs-nav-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 13.5px;
  min-width: 0;
}

.docs-nav-category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.docs-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-nav-link {
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

.docs-article {
  max-width: 780px;
  min-width: 0;
  width: 100%;
}

.docs-article h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.8px;
  color: var(--text-primary);
  margin-bottom: 18px;
  word-break: break-word;
}

.docs-article .docs-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 32px;
}

.docs-section {
  margin-bottom: 56px;
  scroll-margin-top: 84px;
  min-width: 0;
}

.docs-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 16px;
  word-break: break-word;
}

.docs-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
  word-break: break-word;
}

.docs-section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.docs-section ul,
.docs-section ol {
  padding-left: 22px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.docs-section li {
  margin-bottom: 8px;
}

.docs-section code,
.inline-code {
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--code-border);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  word-break: break-all;
}

.code-block-wrapper {
  position: relative;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-xs);
  padding: 18px 20px;
  margin: 16px 0 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--code-text);
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-block-wrapper pre {
  margin: 0;
  white-space: pre;
  min-width: 0;
}

.code-block-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-faint);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-block-copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.callout-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-amber);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  min-width: 0;
}

.callout-box strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   13. Privacy & Releases Layout (privacy.html, releases.html)
   -------------------------------------------------------------------------- */

.article-page-wrapper {
  padding-top: 64px;
  padding-bottom: 120px;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.article-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 32px;
}

.article-h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.8px;
  color: var(--text-primary);
  margin-bottom: 14px;
  word-break: break-word;
}

.article-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.release-entry-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  min-width: 0;
}

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

.release-version-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.release-version-title strong {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.release-card-body {
  padding: 28px 24px;
}

.release-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.release-section-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.release-section-heading.warning {
  color: var(--accent-amber);
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints (Mobile 390px, Tablet 768px, Desktop 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-heading {
    font-size: 88px;
    line-height: 88px;
    letter-spacing: -4.4px;
  }

  .section-h2 {
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1.76px;
  }

  .two-column-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .two-column-layout.reverse {
    direction: ltr;
  }

  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
  }

  .docs-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .docs-toc-toggle:hover {
    border-color: var(--border-medium);
    background-color: var(--bg-surface-subtle);
  }

  .docs-toc-toggle:focus-visible {
    outline: 2px solid var(--accent-amber);
    outline-offset: 2px;
  }

  .docs-toc-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .docs-toc-toggle-hint {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
  }

  .docs-toc-toggle[aria-expanded="true"] .docs-toc-toggle-hint {
    color: var(--accent-amber);
  }

  .docs-nav-content {
    display: none;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
    padding: 16px;
    background-color: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
  }

  .docs-toc-toggle[aria-expanded="true"] + .docs-nav-content {
    display: flex;
  }
}

@media (max-width: 768px) {
  /* 18px mobile gutters as requested */
  .container,
  .hero-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-heading {
    font-size: 64px;
    line-height: 66px;
    letter-spacing: -3.2px;
  }

  .section-h2 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1.4px;
  }

  .narrative-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cards-grid-three,
  .cards-grid-four {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .header-docs-link {
    display: none;
  }

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

  .header-actions {
    gap: 8px;
  }

  .header-lang-link {
    padding: 0 8px;
    font-size: 12px;
  }

  /* Mobile CTA composition matching source: primary on its own line (intrinsic), docs/source adjacent */
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-cta-primary-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .hero-cta-primary-wrap .btn-primary-amber {
    width: auto;
    min-height: 46px;
  }

  .hero-cta-secondary-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-cta-secondary-wrap .btn-secondary-outline,
  .hero-cta-secondary-wrap .btn-tertiary-link {
    width: auto;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  /* Exactly mobile 390px specified in brief: 18px horizontal padding, 48px hero, 17px/29.24px body */
  .hero-section {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero-heading {
    font-size: 48px;
    line-height: 50px;
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 17px;
    line-height: 29.24px;
  }

  .hero-command-box {
    font-size: 12.5px;
    padding: 10px 14px;
  }

  .section-h2 {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -1.2px;
  }

  .download-close-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 340px) {
  /* Stack gracefully on 320px screens */
  .hero-cta-secondary-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   15. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */

@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;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   16. Comparisons Page (Fine-rule matrix layout)
   -------------------------------------------------------------------------- */

.comparisons-hero {
  padding-top: 72px;
  padding-bottom: 24px;
}

.comparisons-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 18px;
}

.comparisons-h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
  word-break: break-word;
}

.comparisons-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 24px;
}

.comparisons-notice {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.comparisons-notice strong {
  color: var(--text-primary);
}

.table-scroll-hint {
  display: none;
}

@media (max-width: 1024px) {
  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 8px;
  }
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 40px;
  position: relative;
}

.comparison-table-wrapper:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
}

.comparison-table col.col-factor {
  width: 24%;
}

.comparison-table col.col-product {
  width: 19%;
}

.comparison-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-medium);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table th.col-factor {
  width: 24%;
}

.comparison-table th.col-highlight {
  color: var(--text-primary);
  font-weight: 700;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--accent-amber);
}

.comparison-table td {
  padding: 10px 14px;
  height: 72px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  word-break: break-word;
}

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

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

.comparison-table td.col-highlight {
  background-color: rgba(255, 194, 26, 0.02);
}

.factor-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
  line-height: 1.35;
}

.factor-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
  line-height: 1.3;
}

/* Status Tags (Colorblind-safe text badge + distinct accessible tones) */
.status-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.status-tag-supported {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .status-tag-supported {
  background-color: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.status-tag-partial {
  background-color: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html[data-theme="dark"] .status-tag-partial {
  background-color: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.status-tag-unsupported {
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.status-tag-unverified {
  background-color: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

html[data-theme="dark"] .status-tag-unverified {
  background-color: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.status-tag-planned {
  background-color: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

html[data-theme="dark"] .status-tag-planned {
  background-color: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.28);
}

.status-tag-inconclusive {
  background-color: rgba(217, 119, 6, 0.1);
  color: #a84c00;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

html[data-theme="dark"] .status-tag-inconclusive {
  background-color: rgba(217, 119, 6, 0.16);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.3);
}

.cell-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.cell-desc a {
  color: var(--accent-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cell-desc a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   17. Expandable Factor Details Section (Below Matrix)
   -------------------------------------------------------------------------- */

.factor-details-section {
  padding-top: 16px;
  padding-bottom: 80px;
}

.factor-details-header {
  margin-bottom: 24px;
}

.factor-details-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.factor-details-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 18px;
}

.factor-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-xs {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-xs:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.factor-detail-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
  background-color: var(--bg-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.factor-detail-card[open] {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.factor-detail-card:target {
  border-color: var(--accent-amber);
  outline: 2px solid var(--accent-amber);
  outline-offset: 1px;
}

.factor-summary {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  user-select: none;
}

.factor-summary::-webkit-details-marker {
  display: none;
}

.factor-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.factor-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-amber);
  flex-shrink: 0;
}

.factor-heading {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.factor-toggle-indicator {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.factor-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.factor-detail-card[open] .factor-toggle-icon {
  transform: rotate(180deg);
}

.factor-body {
  padding: 0 20px 22px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.factor-intro-box {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: var(--bg-surface-subtle);
  border-left: 3px solid var(--accent-amber);
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.detail-block {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  line-height: 1.6;
}

.detail-block-highlight {
  border-color: rgba(168, 76, 0, 0.25);
  background-color: rgba(255, 194, 26, 0.025);
}

html[data-theme="dark"] .detail-block-highlight {
  border-color: rgba(255, 194, 26, 0.25);
  background-color: rgba(255, 194, 26, 0.04);
}

.detail-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-meta-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.source-link {
  color: var(--accent-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-link:hover {
  color: var(--text-primary);
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .comparisons-h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }

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

@media (max-width: 768px) {
  .comparisons-hero {
    padding-top: 48px;
  }

  .comparisons-h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .comparisons-lead {
    font-size: 15.5px;
  }

  .factor-summary {
    padding: 14px 16px;
  }

  .factor-heading {
    font-size: 15px;
  }

  .factor-body {
    padding: 0 16px 18px 16px;
  }
}

@media (max-width: 390px) {
  .comparisons-h1 {
    font-size: 28px;
  }

  .comparisons-notice {
    font-size: 12.5px;
    padding: 12px 14px;
  }
}

/* --------------------------------------------------------------------------
   18. Usecases Pages (Catalogue overview & 4 detail pages)
   -------------------------------------------------------------------------- */

.usecases-hero {
  padding-top: 72px;
  padding-bottom: 32px;
}

.usecases-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 18px;
}

.usecases-h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
  word-break: break-word;
}

.usecases-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 32px;
}

/* Category Filter Pills */
.catalogue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.catalogue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.catalogue-pill:hover,
.catalogue-pill.active {
  border-color: var(--accent-amber);
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.catalogue-pill:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.catalogue-pill-count {
  font-size: 11px;
  color: var(--text-faint);
  background-color: var(--bg-surface-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* Usecases Table */
.usecases-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 64px;
}

.usecases-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
}

.usecases-table th {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-medium);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.usecases-table th:last-child {
  border-right: none;
}

.usecases-table td {
  padding: 18px 18px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.usecases-table td:last-child {
  border-right: none;
}

.usecases-table tr:hover td {
  background-color: rgba(255, 194, 26, 0.015);
}

.usecase-task-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.usecase-task-link:hover,
.usecase-task-link:focus-visible {
  color: var(--accent-amber);
}

.usecase-task-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.tag-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.tag-badge-highlight {
  border-color: rgba(168, 76, 0, 0.25);
  background-color: rgba(255, 194, 26, 0.08);
  color: var(--accent-amber);
}

/* Detail Pages Layout */
.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

.usecase-detail-header {
  margin-bottom: 36px;
}

.usecase-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.version-badge-preview {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .version-badge-preview {
  background-color: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.version-badge-dev {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background-color: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html[data-theme="dark"] .version-badge-dev {
  background-color: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.usecase-h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  word-break: break-word;
}

.usecase-problem-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 820px;
}

/* Step Flow */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.step-flow-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
}

.step-flow-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-amber);
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}

.step-flow-body {
  flex: 1;
  min-width: 0;
}

.step-flow-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-flow-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Callout Limitations Box */
.callout-limits {
  border-left: 3px solid var(--accent-amber);
  background-color: var(--bg-surface-subtle);
  padding: 18px 22px;
  border-radius: var(--radius-xs);
  margin-bottom: 40px;
}

.callout-limits-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.callout-limits-content {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Bottom CTA Navigation Bar */
.usecase-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
  margin-bottom: 60px;
}

.usecase-next-doc-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.usecase-next-doc-link:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .usecases-h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .step-flow-item {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .usecase-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
