/* ============================================================
   TubePresenter — design tokens
   ============================================================ */
:root {
  color-scheme: light;

  /* Brand colors */
  --navy-950: #07133d;
  --navy-900: #0b1a55;
  --navy-800: #14266c;
  --blue-700: #174ed6;
  --blue-600: #2464e8;
  --blue-500: #4380f4;
  --blue-100: #e9f1ff;
  --blue-050: #f5f8ff;
  --ink: #111936;
  --muted: #5c6681;
  --line: #dfe6f3;
  --surface: #ffffff;
  --success: #09845c;
  --accent-yellow: #f2ad16;

  /* Elevation */
  --shadow-xs: 0 2px 8px rgba(23, 48, 112, .06);
  --shadow-sm: 0 8px 24px rgba(23, 48, 112, .09);
  --shadow-md: 0 16px 44px rgba(19, 45, 116, .13);
  --shadow-lg: 0 24px 64px rgba(19, 45, 116, .16);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 92px;

  /* Layout */
  --max: 1180px;
  --header-h: 72px;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(36, 100, 232, .35);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}
.btn:focus-visible, .language-select:focus-visible, .gallery-thumb:focus-visible { border-radius: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: var(--space-2xl) 0; }
.section--soft { background: var(--blue-050); }
.section-heading { max-width: 680px; margin-bottom: var(--space-lg); }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading .lead { margin-top: var(--space-sm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border: 1px solid #ccdcff;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-yellow);
  flex: none;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.028em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.2vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 62ch; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(214, 224, 243, .78);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand span strong { color: var(--blue-600); }
.nav-links { display: flex; align-items: center; gap: var(--space-md); }
.nav-links a {
  text-decoration: none;
  color: #36415f;
  font-weight: 600;
  font-size: .94rem;
  padding: 6px 2px;
  border-radius: var(--radius-xs);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.language-picker { position: relative; display: inline-flex; align-items: center; }
.language-flag {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  flex: none;
  background: #e8eef8;
  box-shadow: inset 0 0 0 1px rgba(17, 25, 54, .14);
}
.language-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.language-select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6681' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  min-height: 40px;
  padding: 0 34px 0 37px;
  cursor: pointer;
  transition: border-color .15s ease;
  text-align: left;
  max-width: 180px;
}
.language-select:hover, .language-select[aria-expanded="true"] { border-color: #b9c8e8; }
.language-options {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-height: min(70vh, 360px);
  overflow-y: auto;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 4px;
  z-index: 100;
}
.language-options[hidden] { display: none; }
.language-options li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  font-size: .9rem;
  color: var(--ink);
}
.language-options li:hover, .language-options li[aria-selected="true"] { background: var(--blue-050); color: var(--blue-700); }
.lang-option-flag {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eef8;
  box-shadow: inset 0 0 0 1px rgba(17, 25, 54, .14);
}
.lang-option-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
[dir="rtl"] .language-flag { left: auto; right: 11px; }
[dir="rtl"] .language-select {
  padding: 0 37px 0 34px;
  background-position: left 14px center;
  text-align: right;
}
[dir="rtl"] .language-options { left: auto; right: 0; }
[dir="rtl"] .language-options li { flex-direction: row-reverse; }

.menu-toggle {
  display: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  background: transparent;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 10px 24px rgba(31, 91, 224, .26);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(31, 91, 224, .34); }

.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: #b9c8e8; color: var(--blue-700); }

.btn-dark { color: #fff; background: var(--navy-900); box-shadow: 0 10px 26px rgba(8, 20, 67, .20); }
.btn-dark:hover { background: var(--navy-800); }

.btn-ghost { color: #3d4a6b; border-color: var(--line); background: #fff; font-weight: 600; }
.btn-ghost:hover { color: var(--blue-700); border-color: #b9c8e8; }

.btn-small { min-height: 40px; padding-inline: 16px; font-size: .9rem; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 4vw + 24px, 76px) 0 clamp(56px, 5vw + 24px, 88px);
  background:
    radial-gradient(circle at 88% 8%, rgba(93, 151, 255, .26), transparent 32%),
    radial-gradient(circle at 4% 88%, rgba(112, 181, 255, .16), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -46% auto;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(48, 111, 235, .07);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(var(--space-lg), 4vw, var(--space-xl));
}
.hero-copy h1 span { color: var(--blue-600); }
.hero-copy .lead { margin-top: var(--space-sm); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: var(--space-md);
  color: #39445f;
  font-weight: 600;
  font-size: .9rem;
}
.trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: .68rem;
  flex: none;
}
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4% 8%;
  background: linear-gradient(135deg, #bad3ff, #e9f2ff);
  filter: blur(26px);
  border-radius: 38px;
  z-index: -1;
}
.hero-frame {
  padding: 8px;
  border: 1px solid rgba(208, 220, 241, .9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
}
.hero-frame img { width: 100%; border-radius: calc(var(--radius-lg) - 8px); aspect-ratio: 16 / 10; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -20px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.hero-badge .stat-icon { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: 0 4px 14px rgba(67, 128, 244, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); }
.hero-badge strong { display: block; font-size: .94rem; }
.hero-badge div span { display: block; font-size: .8rem; color: #d9e5ff; }

/* ============================================================
   Highlights strip
   ============================================================ */
.logo-strip { border-block: 1px solid var(--line); background: #fff; }
.logo-strip-inner { padding: var(--space-md) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.stat { display: flex; align-items: center; justify-content: center; gap: 12px; color: #33405f; font-weight: 700; font-size: .96rem; }
.stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-700);
  flex: none;
}
.stat-icon svg { width: 20px; height: 20px; }

/* ============================================================
   Cards / steps
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { margin-top: var(--space-2xs); color: var(--muted); font-size: .96rem; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); counter-reset: step; }
.step {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  color: #fff;
  background: var(--blue-700);
  font-weight: 800;
}
.step p { color: var(--muted); margin-top: var(--space-2xs); font-size: .96rem; }

/* ============================================================
   Audience
   ============================================================ */
.audience-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-xl); align-items: center; }
.audience-image { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #fff; }
.audience-image img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; }
.audience-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); margin-top: var(--space-md); }
.audience-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--space-sm);
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
}
.audience-item > span:first-child { color: var(--blue-700); font-weight: 800; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-wrap { max-width: 920px; margin-inline: auto; }
.gallery-stage { position: relative; }
.gallery-main {
  border-radius: var(--radius-lg);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.gallery-nav:hover { color: var(--blue-700); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: -14px; }
.gallery-nav.next { right: -14px; }
.gallery-zoom {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.gallery-zoom:hover { color: var(--blue-700); }
.gallery-zoom svg { width: 19px; height: 19px; }
.gallery-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-sm);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  min-height: 1.6em;
}
.gallery-caption .gallery-count { color: #8a94af; font-size: .84rem; font-variant-numeric: tabular-nums; flex: none; }
.gallery-thumbs { margin-top: var(--space-sm); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-xs); }
.gallery-thumb {
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease;
}
.gallery-thumb:hover { border-color: #b9c8e8; }
.gallery-thumb.active { border-color: var(--blue-600); }
.gallery-thumb img { width: 100%; border-radius: calc(var(--radius-sm) - 4px); aspect-ratio: 16 / 10; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(7, 19, 61, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; width: min(1120px, 100%); }
.lightbox-figure img {
  width: 100%;
  max-height: min(76vh, 800px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #0d1c4e;
}
.lightbox-caption {
  margin-top: var(--space-xs);
  text-align: center;
  color: #d9e5ff;
  font-size: .95rem;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close svg, .lightbox .gallery-nav svg { width: 20px; height: 20px; }
.lightbox .gallery-nav {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: none;
}
.lightbox .gallery-nav:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.lightbox .gallery-nav.prev { left: clamp(8px, 2vw, 28px); }
.lightbox .gallery-nav.next { right: clamp(8px, 2vw, 28px); }

/* ============================================================
   Languages
   ============================================================ */
.language-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-xl); align-items: center; }
.language-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-md); }
.language-pill {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
}
.language-note { margin-top: var(--space-sm); }
.language-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.language-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ============================================================
   Free / community
   ============================================================ */
.free-section { color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: var(--space-xl); align-items: center; }
.free-section .eyebrow { color: #ffd97a; background: rgba(242, 173, 22, .12); border-color: rgba(242, 173, 22, .3); }
.free-section .lead { color: #d5e0ff; }
.free-points { display: grid; gap: var(--space-xs); margin-top: var(--space-md); }
.free-point { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.free-point > span:first-child { color: #7fd4ae; }
.free-card {
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.free-card p { color: #d5e0ff; margin-top: var(--space-xs); }
.free-card .hero-actions { margin-top: var(--space-md); }
.free-card .btn-secondary { background: rgba(255, 255, 255, .95); }

/* ============================================================
   Privacy banner / FAQ
   ============================================================ */
.privacy-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--blue-100);
  border: 1px solid #cadcff;
}
.privacy-banner p { color: #4e5b7b; margin-top: var(--space-2xs); max-width: 60ch; }

.faq { display: grid; gap: var(--space-xs); max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 var(--space-md); background: #fff; }
.faq details[open] { box-shadow: var(--shadow-xs); }
.faq summary {
  position: relative;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: var(--space-xl) 0 var(--space-md); color: #dbe5ff; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: var(--space-lg); }
.site-footer .brand, .site-footer .brand span { color: #fff; }
.site-footer .brand span strong { color: #8cb4ff; }
.footer-brand p { max-width: 38ch; margin-top: var(--space-sm); color: #aab8dd; font-size: .95rem; }
.footer-column h3 { font-size: .95rem; letter-spacing: .02em; color: #fff; margin-bottom: var(--space-xs); }
.footer-column a {
  display: block;
  text-decoration: none;
  color: #b8c5e7;
  margin: 8px 0;
  font-size: .95rem;
  overflow-wrap: anywhere;
  border-radius: var(--radius-xs);
  transition: color .15s ease;
}
.footer-column a:hover, .footer-column a:focus-visible { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  color: #8fa0cc;
  font-size: .87rem;
}
.site-footer--slim { padding-top: var(--space-md); }
.site-footer--slim .footer-bottom { border-top: 0; margin-top: 0; padding-top: 0; }

/* ============================================================
   Inner pages (privacy / support)
   ============================================================ */
.page-hero { padding: var(--space-xl) 0 var(--space-lg); background: linear-gradient(180deg, var(--blue-050), #fff); }
.page-hero .lead { margin-top: var(--space-sm); max-width: 70ch; }
.page-updated { margin-top: var(--space-xs); color: #6a7591; font-size: .92rem; }
.content { width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: var(--space-lg) 0 var(--space-2xl); }
.content h2 { margin-top: var(--space-lg); font-size: 1.5rem; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.content h3 { margin-top: var(--space-md); }
.content p, .content li { color: #4f5a75; }
.content p { margin-top: var(--space-xs); }
.content ul { padding-left: 22px; margin: var(--space-xs) 0 0; }
.content li { margin-top: var(--space-2xs); }

.toc {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--blue-050);
}
.toc h2 { margin: 0; font-size: 1rem; }
.toc ol { margin: var(--space-2xs) 0 0; padding-left: 20px; columns: 2; column-gap: var(--space-lg); }
.toc li { margin-top: 6px; break-inside: avoid; }
.toc a { color: var(--blue-700); text-decoration: none; font-weight: 600; font-size: .94rem; }
.toc a:hover, .toc a:focus-visible { text-decoration: underline; }

.notice {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--blue-050);
  border: 1px solid var(--line);
}

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-md); }
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.support-card h2 { margin-top: 0; font-size: 1.25rem; }
.support-card p { margin-top: var(--space-2xs); }
.copy-row { margin-top: var(--space-sm); }
.copy-row code {
  display: flex;
  align-items: center;
  width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow-x: auto;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-050);
  border: 1px solid var(--line);
  font-size: .9rem;
}
.support-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); margin-top: var(--space-sm); }

/* ============================================================
   Demo Video
   ============================================================ */
.demo-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
}
.demo-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links.open {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: var(--space-xs) var(--space-md) var(--space-md);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--blue-050); }
  .nav-links.open a:last-child { border-bottom: 0; }

  .hero-grid, .audience-grid, .language-panel, .free-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { margin-top: var(--space-2xs); max-width: 680px; margin-inline: auto; }
  .hero-badge { left: 12px; }
  .audience-image { order: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --space-2xl: 64px; --space-xl: 48px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .content { width: min(calc(100% - 32px), 820px); }
  .nav { min-height: 64px; }
  .nav-actions .btn { display: none; }
  .language-select { max-width: 148px; }

  .hero-badge { position: static; margin-top: var(--space-xs); max-width: none; }
  .logo-strip-inner { grid-template-columns: 1fr; gap: var(--space-2xs); }
  .stat { justify-content: flex-start; }

  .cards, .audience-list, .support-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }

  .gallery-nav { width: 40px; height: 40px; }
  .gallery-zoom { right: 14px; bottom: 14px; }
  .gallery-thumbs { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .gallery-thumb { min-width: 116px; scroll-snap-align: start; }

  .privacy-banner { grid-template-columns: 1fr; text-align: left; padding: var(--space-md); }
  .privacy-banner .btn { justify-self: start; }

  .toc ol { columns: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .language-select { max-width: 132px; }
  .brand { font-size: 1.02rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
