/* =========================================================
   NoCloud Suite — Minimalist Landing Page Styles
   Visual DNA aligned with SchemaGraphos + Modern Web Guidance
   ========================================================= */

:root {
  /* Light / Dark raw tokens */
  --brand-primary-light: #5a67d8;
  --brand-primary-dark: #818cf8;
  --brand-primary-hover-light: #4c51bf;
  --brand-primary-hover-dark: #a5b4fc;
  --brand-secondary-light: #764ba2;
  --brand-secondary-dark: #a78bfa;

  --surface-page-light: #ffffff;
  --surface-page-dark: #0b0f19;
  --surface-subtle-light: #f7fafc;
  --surface-subtle-dark: #111827;
  --surface-card-light: #ffffff;
  --surface-card-dark: #151e31;
  --surface-nav-light: rgba(255, 255, 255, 0.9);
  --surface-nav-dark: rgba(11, 15, 25, 0.88);

  --text-primary-light: #1a202c;
  --text-primary-dark: #f1f5f9;
  --text-secondary-light: #4a5568;
  --text-secondary-dark: #cbd5e1;
  --text-muted-light: #64748b;
  --text-muted-dark: #94a3b8;

  --border-subtle-light: #e2e8f0;
  --border-subtle-dark: #253149;
  --border-strong-light: #cbd5e1;
  --border-strong-dark: #364769;

  --soft-tint-light: rgba(102, 126, 234, 0.09);
  --soft-tint-dark: rgba(129, 140, 248, 0.14);

  --shadow-sm-light: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm-dark: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md-light: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md-dark: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg-light: 0 16px 36px rgba(15, 23, 42, 0.11);
  --shadow-lg-dark: 0 18px 42px rgba(0, 0, 0, 0.55);

  /* Fallback defaults (light) */
  --primary: var(--brand-primary-light);
  --primary-hover: var(--brand-primary-hover-light);
  --secondary: var(--brand-secondary-light);
  --bg-page: var(--surface-page-light);
  --bg-subtle: var(--surface-subtle-light);
  --bg-card: var(--surface-card-light);
  --bg-nav: var(--surface-nav-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --soft-tint: var(--soft-tint-light);
  --shadow-sm: var(--shadow-sm-light);
  --shadow-md: var(--shadow-md-light);
  --shadow-lg: var(--shadow-lg-light);

  /* Brand Gradients (consistent with SchemaGraphos) */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.11) 0%, rgba(118, 75, 162, 0.11) 100%);
  --gradient-dark-band: linear-gradient(135deg, #0f0c29 0%, #2b2559 55%, #1d2038 100%);

  /* Layout tokens */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container-max: 1180px;
  --nav-height: 74px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Native browser UI theming */
  color-scheme: light dark;
  accent-color: var(--primary);
}

/* Fallback dark mode for browsers without light-dark() */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: var(--brand-primary-dark);
    --primary-hover: var(--brand-primary-hover-dark);
    --secondary: var(--brand-secondary-dark);
    --bg-page: var(--surface-page-dark);
    --bg-subtle: var(--surface-subtle-dark);
    --bg-card: var(--surface-card-dark);
    --bg-nav: var(--surface-nav-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-strong: var(--border-strong-dark);
    --soft-tint: var(--soft-tint-dark);
    --shadow-sm: var(--shadow-sm-dark);
    --shadow-md: var(--shadow-md-dark);
    --shadow-lg: var(--shadow-lg-dark);
  }
}

/* Explicit light/dark override via <meta name="color-scheme"> */
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
  --primary: var(--brand-primary-light);
  --primary-hover: var(--brand-primary-hover-light);
  --secondary: var(--brand-secondary-light);
  --bg-page: var(--surface-page-light);
  --bg-subtle: var(--surface-subtle-light);
  --bg-card: var(--surface-card-light);
  --bg-nav: var(--surface-nav-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --soft-tint: var(--soft-tint-light);
  --shadow-sm: var(--shadow-sm-light);
  --shadow-md: var(--shadow-md-light);
  --shadow-lg: var(--shadow-lg-light);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
  --primary: var(--brand-primary-dark);
  --primary-hover: var(--brand-primary-hover-dark);
  --secondary: var(--brand-secondary-dark);
  --bg-page: var(--surface-page-dark);
  --bg-subtle: var(--surface-subtle-dark);
  --bg-card: var(--surface-card-dark);
  --bg-nav: var(--surface-nav-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-strong: var(--border-strong-dark);
  --soft-tint: var(--soft-tint-dark);
  --shadow-sm: var(--shadow-sm-dark);
  --shadow-md: var(--shadow-md-dark);
  --shadow-lg: var(--shadow-lg-dark);
}

/* Modern light-dark() enhancement */
@supports (color: light-dark(white, black)) {
  :root {
    --primary: light-dark(var(--brand-primary-light), var(--brand-primary-dark));
    --primary-hover: light-dark(var(--brand-primary-hover-light), var(--brand-primary-hover-dark));
    --secondary: light-dark(var(--brand-secondary-light), var(--brand-secondary-dark));
    --bg-page: light-dark(var(--surface-page-light), var(--surface-page-dark));
    --bg-subtle: light-dark(var(--surface-subtle-light), var(--surface-subtle-dark));
    --bg-card: light-dark(var(--surface-card-light), var(--surface-card-dark));
    --bg-nav: light-dark(var(--surface-nav-light), var(--surface-nav-dark));
    --text-primary: light-dark(var(--text-primary-light), var(--text-primary-dark));
    --text-secondary: light-dark(var(--text-secondary-light), var(--text-secondary-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --soft-tint: light-dark(var(--soft-tint-light), var(--soft-tint-dark));
  }
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:where(a:any-link, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

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

/* Accessible visually-hidden utility (MWG pattern) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

/* Logo & theme icon switching (CSS-driven, zero flash) */
.logo-img-dark,
.theme-show-when-dark {
  display: none;
}

.logo-img-light,
.theme-show-when-light {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .logo-img-light,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-show-when-light {
    display: none;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .logo-img-dark,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-show-when-dark {
    display: inline-flex;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-img-light,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-show-when-light {
  display: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-img-dark,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-show-when-dark {
  display: inline-flex;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 42px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.04);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--soft-tint);
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gradient-primary);
  color: #ffffff;
}

.btn-large {
  min-block-size: 48px;
  padding: 13px 26px;
  font-size: 1rem;
}

.btn-sm {
  min-block-size: 36px;
  padding: 7px 14px;
  font-size: 0.875rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.demo-caption {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
  margin-bottom: 10px;
}

.btn-icon-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 38px;
  min-inline-size: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.btn-icon-control:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding-block: 4px;
  transition: color var(--transition);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 18px 24px 24px;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-nav-link:hover {
  background: var(--soft-tint);
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 8px;
  width: 100%;
}

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

.hero {
  position: relative;
  padding: 76px 0 88px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.22;
}

.hero-orb-1 {
  width: 460px;
  height: 460px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: -190px;
  left: -120px;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  background: linear-gradient(135deg, #f093fb, #667eea);
  bottom: -140px;
  right: -90px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--soft-tint);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title-accent {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 30px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}

.hero-fact-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.hero-fact-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero Preview Frame */
.hero-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-window-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-preview-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.hero-preview-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.35s ease;
}

.hero-preview-btn:hover .hero-preview-img {
  transform: scale(1.015);
}

.hero-quick-dock {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-dock-pill {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  min-block-size: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dock-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-dock-pill[aria-pressed="true"] {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
}

/* =========================================================
   Section Headers
   ========================================================= */

.section {
  padding: 88px 0;
}

.section-subtle {
  background: var(--bg-subtle);
}

.section-header {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
  text-align: center;
}

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

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================
   Tools Filter & Cards Grid
   ========================================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  min-block-size: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn[aria-pressed="true"] {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.tool-card[hidden] {
  display: none;
}

.tool-media-wrap {
  position: relative;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.tool-media-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.tool-media-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.tool-media-trigger:hover .tool-media-img {
  transform: scale(1.03);
}

.tool-media-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.tool-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 22px;
  height: 22px;
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
}

.tool-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft-tint);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tool-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-highlights li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 8px;
}

.tool-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  border-left: 3px solid var(--primary);
  background: var(--bg-subtle);
  border-radius: 0 8px 8px 0;
}

.tool-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-domain-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  width: 100%;
  margin-bottom: 6px;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tool-actions .btn-primary {
  flex: 1;
}

/* =========================================================
   Philosophy & Local AI Band (Dark Signature Section)
   ========================================================= */

.dark-band {
  position: relative;
  padding: 92px 0;
  background: var(--gradient-dark-band);
  color: #f8fafc;
  overflow: hidden;
  color-scheme: dark;
}

.dark-band-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.dark-band .section-kicker {
  color: #c4b5fd;
}

.dark-band .section-title {
  color: #ffffff;
}

.dark-band .section-subtitle {
  color: rgba(241, 245, 249, 0.78);
}

.philosophy-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.pillar-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(129, 140, 248, 0.2);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.pillar-text {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
}

.demo-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.72);
}

.demo-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b0f19;
  object-fit: cover;
}

.demo-card-footer {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

/* =========================================================
   Support & Donations Section
   ========================================================= */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
}

.support-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.support-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.support-card-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.support-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.support-card-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.support-card-actions {
  margin-top: auto;
}

.transparency-notice {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.transparency-notice svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   Privacy & About Section
   ========================================================= */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

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

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.info-card-icon svg {
  width: 21px;
  height: 21px;
}

.info-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.creator-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.creator-text {
  max-width: 64ch;
}

.creator-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.creator-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 64px 0 32px;
  color-scheme: dark;
}

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

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 34ch;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========================================================
   Native Modal Dialog Gallery (Modern Web Guidance)
   ========================================================= */

dialog.media-dialog {
  margin: auto;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

dialog.media-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* MANDATORY (MWG): Prevent scroll chaining to underlying page */
dialog.media-dialog:modal {
  overscroll-behavior: contain;
}

dialog.media-dialog::backdrop {
  background: rgba(9, 13, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

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

.dialog-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dialog-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dialog-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-stage {
  position: relative;
  background: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 62dvh;
  overflow: hidden;
  padding: 16px;
}

.dialog-media-img,
.dialog-media-video {
  max-width: 100%;
  max-height: calc(62dvh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.dialog-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition);
}

.dialog-nav-btn:hover {
  background: var(--primary);
}

.dialog-nav-prev {
  left: 14px;
}

.dialog-nav-next {
  right: 14px;
}

.dialog-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.dialog-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dialog-caption {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dialog-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dialog-thumb-btn {
  flex: 0 0 auto;
  width: 82px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0f19;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition), border-color var(--transition);
  position: relative;
}

.dialog-thumb-btn:hover,
.dialog-thumb-btn[aria-current="true"] {
  opacity: 1;
  border-color: var(--primary);
}

.dialog-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-thumb-video-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .philosophy-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-donate-desktop {
    display: none;
  }

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

  .tools-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .tool-body {
    padding: 20px;
  }

  .creator-strip {
    padding: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
