/* ==========================================================================
   Tinydots / Ghihi — shared design system (v2)
   Cool neutral surfaces, one blue→violet accent, large type, soft depth.
   Class names are shared by the home, guide and privacy pages.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: #f5f7fb;
  --bg-subtle: #eaeef6;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-raised: #ffffff;
  --ink: #0b1220;
  --ink-secondary: #354054;
  --muted: #647086;
  --line: rgba(16, 24, 40, 0.08);
  --line-strong: rgba(16, 24, 40, 0.16);

  --accent: #1a6dff;
  --accent-2: #7a5af8;
  --accent-3: #12b5cb;
  --accent-soft: rgba(26, 109, 255, 0.09);
  --accent-ink: #0b52d1;
  --gradient: linear-gradient(120deg, #1a6dff 0%, #7a5af8 100%);

  --btn-primary-bg: #0b1220;
  --btn-primary-ink: #ffffff;
  --btn-primary-hover: #1c2740;
  --btn-ghost-bg: #ffffff;
  --btn-ghost-ink: #0b1220;
  --btn-ghost-border: rgba(16, 24, 40, 0.14);
  --btn-ghost-hover: #eef2fa;

  --badge-bg: rgba(26, 109, 255, 0.08);
  --badge-ink: #0b52d1;
  --badge-border: rgba(26, 109, 255, 0.2);

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 32px 64px -16px rgba(16, 24, 40, 0.22), 0 8px 20px -6px rgba(16, 24, 40, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --focus-ring: 0 0 0 3px rgba(26, 109, 255, 0.4);
  --header-bg: rgba(245, 247, 251, 0.72);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-subtle: #101828;
    --surface: #0d1422;
    --surface-card: #0f1727;
    --surface-raised: #162033;
    --ink: #f2f5fa;
    --ink-secondary: #c3cbd9;
    --muted: #8e9bb2;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);

    --accent: #5b9bff;
    --accent-2: #9b86ff;
    --accent-3: #3fd0e3;
    --accent-soft: rgba(91, 155, 255, 0.14);
    --accent-ink: #8bb8ff;
    --gradient: linear-gradient(120deg, #5b9bff 0%, #9b86ff 100%);

    --btn-primary-bg: #f2f5fa;
    --btn-primary-ink: #0b1220;
    --btn-primary-hover: #ffffff;
    --btn-ghost-bg: rgba(255, 255, 255, 0.04);
    --btn-ghost-ink: #f2f5fa;
    --btn-ghost-border: rgba(255, 255, 255, 0.16);
    --btn-ghost-hover: rgba(255, 255, 255, 0.09);

    --badge-bg: rgba(91, 155, 255, 0.14);
    --badge-ink: #9cc2ff;
    --badge-border: rgba(91, 155, 255, 0.3);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.75), 0 8px 20px -6px rgba(0, 0, 0, 0.5);

    --focus-ring: 0 0 0 3px rgba(91, 155, 255, 0.5);
    --header-bg: rgba(7, 11, 20, 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

img, svg { max-width: 100%; vertical-align: middle; }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.brand-group { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand-group:hover { text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.header-right { display: flex; align-items: center; gap: 1.75rem; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-subtle); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.langs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-subtle);
  border-radius: 999px;
}
.langs button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.langs button:hover { opacity: 0.9; }
.langs button[aria-pressed="true"] { background: var(--surface-raised); opacity: 1; box-shadow: var(--shadow-xs); }
.langs svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }

.btn-header-download {
  background: var(--gradient);
  color: #fff;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(26, 109, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-header-download:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(26, 109, 255, 0.7); }

/* ---------- Buttons, badge ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--btn-primary-ink); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-ink);
  border-color: var(--btn-ghost-border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--btn-ghost-hover); color: var(--btn-ghost-ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: 1px solid var(--badge-border);
  font-size: 0.82rem;
  font-weight: 650;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.6rem;
}

/* ---------- Window frames (screenshots) ---------- */
.window-frame {
  position: relative;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-header { display: none; }
.window-frame img { display: block; width: 100%; height: auto; }

/* ---------- Video Demo Showcase ---------- */
.demo-section {
  margin: 3.5rem 0;
  padding: 2.2rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient);
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.demo-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  letter-spacing: -0.035em;
  font-weight: 760;
  line-height: 1.15;
}
.demo-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}
.demo-player-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050811;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.demo-player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050811;
}
.demo-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.08) 0%, rgba(5, 8, 17, 0.36) 100%);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.demo-play-overlay:hover { background: linear-gradient(180deg, rgba(5, 8, 17, 0.14) 0%, rgba(5, 8, 17, 0.44) 100%); }
.demo-play-overlay[hidden] { display: none; }
.demo-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.86);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(26, 109, 255, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.demo-play-overlay:hover .demo-play-pill {
  transform: scale(1.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 0 8px rgba(26, 109, 255, 0.28);
}
.demo-play-tri {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 2px;
}
.demo-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.demo-chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.demo-chapter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}
.demo-chapter-btn[aria-current="true"] {
  background: var(--accent-soft);
  border-color: var(--badge-border);
  color: var(--accent-ink);
}
.demo-chapter-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  opacity: 0.75;
}

/* ---------- v2.0 Highlights Bento ---------- */
.v2-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
}
.v2-pill-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.v2-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--badge-border);
}
.v2-pill-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.45rem;
}
.v2-pill-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.03rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.v2-pill-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Collapsible older changelog */
.whatsnew-older {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.whatsnew-older summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent-ink);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.whatsnew-older summary::-webkit-details-marker { display: none; }
.whatsnew-older .whatsnew-list { margin-top: 0.95rem; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3rem;
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -6rem;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(520px 320px at 22% 30%, rgba(26, 109, 255, 0.18), transparent 70%),
    radial-gradient(480px 300px at 78% 18%, rgba(122, 90, 248, 0.16), transparent 70%),
    radial-gradient(420px 260px at 55% 70%, rgba(18, 181, 203, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 3rem;
}
.hero-icon-wrap { position: relative; }
.hero-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 12% 8% -14%;
  z-index: -1;
  background: var(--gradient);
  filter: blur(32px);
  opacity: 0.45;
  border-radius: 50%;
}
.hero-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
}
.hero-eyebrow { display: flex; justify-content: center; margin-bottom: 1.1rem; }

h1.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.045em;
}
.hero-title .title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-secondary);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.hero-meta { margin: 1.1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.meta-separator { margin: 0 0.4rem; opacity: 0.5; }
.hero-alt { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.9rem; }
.hero-alt a { color: var(--accent-ink); font-weight: 600; }

.hero-section > .window-frame { max-width: 1040px; margin: 0 auto; }
.hero-section .view-tabs { display: flex; width: fit-content; margin: 0 auto 1.5rem; }

/* ---------- Platform switch ---------- */
.view-switch,
.view-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.view-switch button,
.view-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.view-switch button:hover,
.view-tabs button:hover { color: var(--ink); }
.view-switch button[aria-pressed="true"],
.view-tabs button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Stats ---------- */
.stats-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.stats-head { margin-bottom: 1.5rem; }
.stats-heading-group h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.03em; font-weight: 700; }
.stats-heading-group p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-value {
  font-size: 2.3rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 0.4rem; font-weight: 650; font-size: 0.92rem; }
.stat-detail { margin-top: 0.15rem; font-size: 0.82rem; color: var(--muted); }

.stat-card.skeleton .stat-value,
.stat-card.skeleton .stat-label,
.stat-card.skeleton .stat-detail {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-subtle), var(--line), var(--bg-subtle));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.stat-card.skeleton .stat-value { width: 4.5rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.stats-footnote { margin-top: 1.25rem; font-size: 0.82rem; color: var(--muted); }
.stats-footnote a { color: var(--accent-ink); }

/* ---------- Sections ---------- */
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.04em; font-weight: 750; line-height: 1.15; }
.section-head p { margin: 0.6rem 0 0; color: var(--muted); max-width: 40rem; font-size: 1.05rem; }

/* What's new */
.whatsnew-box {
  margin: 2.5rem 0;
  padding: 2rem 2.2rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.whatsnew-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient);
}
.whatsnew-box h2 { margin: 0 0 1.2rem; font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 740; }
.whatsnew-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.75rem; color: var(--ink-secondary); }
.whatsnew-list li { padding-left: 0.3rem; line-height: 1.6; }
.whatsnew-list li::marker { color: var(--accent); }
.whatsnew-list strong { color: var(--ink); font-weight: 650; }
.whatsnew-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--muted);
}
.whatsnew-footer a { font-weight: 650; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.75rem; }
.gallery-card { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.gallery-shot { transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: var(--shadow-md); }
.gallery-card:hover .gallery-shot { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-shot img { width: 100%; height: auto; }
.gallery-caption h3 { margin: 0 0 0.35rem; font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700; }
.gallery-caption p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* Features: bento */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
  margin: 4rem 0;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card::before {
  content: "";
  display: block;
  width: 34px; height: 4px; border-radius: 4px;
  background: var(--gradient);
  margin-bottom: 1.1rem;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-secondary); font-size: 0.96rem; line-height: 1.65; }

/* First-launch steps */
.steps-wrap { margin: 4rem 0 2.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; counter-reset: step; }
.step-box {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-xs);
}
.step-num-badge {
  display: inline-grid; place-items: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 750; font-size: 0.85rem; letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 14px -6px rgba(26, 109, 255, 0.6);
}
.step-box p { margin: 0; color: var(--ink-secondary); font-size: 0.94rem; line-height: 1.6; }
.step-box p strong { color: var(--ink); font-weight: 650; }
.step-box a { font-weight: 600; }

/* Callouts and notes */
.callout-card {
  margin: 1.5rem 0;
  padding: 1.5rem 1.7rem;
  background: var(--accent-soft);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-lg);
}
.callout-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; letter-spacing: -0.015em; }
.callout-card p { margin: 0; color: var(--ink-secondary); font-size: 0.96rem; }
.callout-card a { font-weight: 650; }

.note-card {
  margin: 2rem 0 4rem;
  padding: 1.5rem 1.7rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}
.note-card strong { font-size: 1rem; }
.note-card p { margin: 0.45rem 0 0; color: var(--ink-secondary); font-size: 0.94rem; line-height: 1.65; }
.note-card a { font-weight: 600; }

/* SmartScreen how-to (Windows) */
.smartscreen-card {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.smartscreen-card h3 { margin: 0 0 0.35rem; font-size: 1.25rem; letter-spacing: -0.025em; font-weight: 720; }
.smartscreen-card > p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.96rem; max-width: 46rem; }
.ss-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.ss-step {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.93rem; color: var(--ink-secondary); line-height: 1.5;
}
.ss-step b { color: var(--ink); }
.ss-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.8rem; font-weight: 750;
}

.beta-pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(245, 166, 35, 0.18); color: #a8650a;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; max-width: 22rem; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-tagline { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-content: flex-start; max-width: 36rem; }
.footer-links a { color: var(--ink-secondary); font-size: 0.92rem; font-weight: 550; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--muted);
}

/* ---------- Guide page ---------- */
.guide-wrap { width: min(880px, calc(100% - 2.5rem)); margin: 0 auto; }
.guide-intro { padding: 3.5rem 0 2.25rem; border-bottom: 1px solid var(--line); }
.guide-breadcrumb { margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.guide-breadcrumb a { font-weight: 550; }
.guide-title { font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -0.045em; margin: 0 0 0.9rem; font-weight: 760; line-height: 1.1; }
.guide-lede { margin: 0; font-size: 1.15rem; color: var(--ink-secondary); max-width: 44rem; line-height: 1.6; }
.guide-section { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.guide-section h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 0 0 1rem; font-weight: 720; }

.guide-prereqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.guide-prereq-item {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.guide-prereq-item strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.guide-prereq-item span { font-size: 0.9rem; color: var(--muted); }

.guide-step-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; }
.guide-step-item {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-xs);
}
.guide-step-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.guide-step-title { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.guide-step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--gradient); color: #fff;
  font-size: 0.88rem; font-weight: 750; flex-shrink: 0;
}
.guide-step-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 650;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap; flex-shrink: 0;
  color: var(--ink);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.guide-step-link:hover { background: var(--line); text-decoration: none; transform: translateY(-1px); }
.guide-step-body { margin: 0; color: var(--ink-secondary); font-size: 0.97rem; line-height: 1.65; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.guide-step-shot { margin: 1.35rem 0 0.5rem; box-shadow: var(--shadow-md); }
.guide-step-shot img { display: block; width: 100%; height: auto; }

details.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
details.faq-item:hover { border-color: var(--line-strong); }
details.faq-item[open] { padding-bottom: 1.35rem; border-color: var(--badge-border); box-shadow: var(--shadow-sm); }
summary.faq-summary {
  font-weight: 650; font-size: 1.04rem; cursor: pointer; user-select: none; line-height: 1.4;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary.faq-summary::-webkit-details-marker { display: none; }
summary.faq-summary::after {
  content: "";
  display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
  flex-shrink: 0; margin-left: 0.75rem;
}
details.faq-item[open] summary.faq-summary::after { transform: rotate(-135deg); }
details.faq-item p { margin: 0.9rem 0 0; color: var(--ink-secondary); font-size: 0.96rem; line-height: 1.65; }

/* ---------- Privacy page ---------- */
.privacy-page-wrap { width: min(1040px, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0 5rem; }
.privacy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
.privacy-toc-wrap {
  position: sticky; top: 88px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-xs);
}
.privacy-toc-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); margin-bottom: 0.75rem; }
.privacy-toc-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.privacy-toc-nav a { font-size: 0.88rem; color: var(--muted); padding: 0.3rem 0.55rem; border-radius: 8px; line-height: 1.35; transition: background-color 0.15s ease, color 0.15s ease; }
.privacy-toc-nav a:hover { color: var(--ink); background: var(--bg-subtle); text-decoration: none; }
.privacy-content { max-width: 68ch; }
.privacy-header { margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.privacy-title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -0.045em; margin: 0 0 0.5rem; font-weight: 760; line-height: 1.1; }
.privacy-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.privacy-content h2 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 2.75rem 0 0.85rem; font-weight: 720; padding-top: 1rem; border-top: 1px solid var(--line); }
.privacy-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.privacy-content p { margin: 0 0 1.15rem; color: var(--ink-secondary); font-size: 1.02rem; line-height: 1.7; }
.privacy-content ul { margin: 0 0 1.35rem; padding-left: 1.4rem; color: var(--ink-secondary); }
.privacy-content li { margin-bottom: 0.5rem; line-height: 1.65; }
.privacy-content a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.privacy-vietnamese-box { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 1.85rem; margin-top: 2.5rem; box-shadow: var(--shadow-xs); }
.privacy-vietnamese-box h2 { margin: 0 0 1rem; padding-top: 0; border-top: none; }
.privacy-vietnamese-box p { font-size: 0.96rem; line-height: 1.7; margin-bottom: 0; }

/* ---------- Platform views ---------- */
html[data-view="mac"] [data-only="windows"],
html[data-view="windows"] [data-only="mac"] { display: none !important; }

html[data-view="windows"] .window-frame { border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .privacy-layout { grid-template-columns: 1fr; gap: 2rem; }
  .privacy-toc-wrap { position: static; }
  .guide-prereqs { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-right { gap: 0.75rem; }
}

@media (max-width: 720px) {
  .view-switch { display: none; }
  .hero-section { padding: 2.75rem 0 2rem; }
  .hero-header { margin-bottom: 2rem; gap: 1.1rem; }
  .hero-icon { width: 76px; height: 76px; border-radius: 19px; }
  .stats-section, .whatsnew-box, .smartscreen-card, .demo-section { padding: 1.4rem 1.25rem; border-radius: var(--radius-lg); }
  .features-grid, .steps-wrap { margin: 2.75rem 0; }
  .guide-step-top { flex-direction: column; }
  .guide-step-item { padding: 1.25rem 1.2rem; }
  .brand-sub { display: none; }
}

@media (max-width: 440px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn-header-download { display: none; }
  .stat-value { font-size: 1.9rem; }
  .footer-inner { flex-direction: column; }
}
