:root {
  --bg: #1c1c1e;
  --bg-raise: #232326;
  --surface: #2c2c2e;
  --surface-strong: #3a3a3c;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --accent: #ff7a3d;
  --ok: #34d399;
  --warn: #f5c542;
  --border: #3a3a3c;
  --max: 1160px;
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --bg-raise: #ffffff;
    --surface: #ffffff;
    --surface-strong: #e5e8ed;
    --text: #17181a;
    --muted: #5f6368;
    --faint: #858991;
    --border: #dfe2e7;
  }
}

:root[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-raise: #ffffff;
  --surface: #ffffff;
  --surface-strong: #e5e8ed;
  --text: #17181a;
  --muted: #5f6368;
  --faint: #858991;
  --border: #dfe2e7;
}

:root[data-theme="dark"] {
  --bg: #1c1c1e;
  --bg-raise: #232326;
  --surface: #2c2c2e;
  --surface-strong: #3a3a3c;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --border: #3a3a3c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand-wordmark { display: block; width: 142px; height: auto; }
.brand-wordmark-on-light { display: none; }
.brand-compact { display: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.brand-compact img { width: 24px; height: 24px; }
:root[data-theme="light"] .brand-wordmark-on-dark { display: none; }
:root[data-theme="light"] .brand-wordmark-on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .brand-wordmark-on-dark { display: none; }
  :root:not([data-theme]) .brand-wordmark-on-light { display: block; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  justify-content: center;
}
.nav-links a:hover { color: var(--text); }

.brand-tagline {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  min-height: 32px;
}
.icon-btn:hover { color: var(--text); border-color: var(--faint); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; }

.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-icon-dark { display: none; }
  :root:not([data-theme]) .theme-icon-light { display: block; }
}

:root[data-theme="light"] .theme-icon-dark { display: none; }
:root[data-theme="light"] .theme-icon-light { display: block; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: #1c1c1e; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--faint); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }

.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.text-link:hover { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy .subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.hero-copy .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  justify-content: flex-start;
}
.hero-copy .fine-print {
  font-size: 12.5px;
  color: var(--faint);
  margin: 0;
}

h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-line {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--text);
}
.hero-line span { color: var(--accent); }
h1 span { color: var(--accent); }

.hero-shot { position: relative; min-width: 0; }
.shot-glow {
  position: absolute;
  inset: 12% 8% auto 8%;
  height: 70%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.shot-frame {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
}
.hero-frame { max-width: none; }
.shot-frame img { border-radius: 12px; width: 100%; }
.shot-frame.shot-missing { display: none; }

/* Benefits */
.benefits { padding: 12px 0 48px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.benefit h2 { margin: 0 0 4px; font-size: 15px; }
.benefit p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.benefit-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Sections */
section { padding: 64px 0; }
section.alt {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.5; }

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.platform-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.platform-head img { width: 20px; height: 20px; color: var(--text); }
.platform-head h3 { margin: 0; font-size: 16px; flex: 1; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 999px;
  padding: 3px 8px;
}
.platform-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.platform-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.release-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* Product tour */
.tour {
  position: relative;
  min-height: 420px;
}
.tour-piece {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px;
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.tour-piece img { border-radius: 10px; width: 100%; }
.tour-desktop { width: 72%; }
.tour-compact {
  position: absolute;
  right: 6%;
  top: 8%;
  width: 32%;
  z-index: 2;
}
.tour-android {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: 22%;
  z-index: 3;
}
.tour-vscode {
  position: absolute;
  left: 8%;
  bottom: -6%;
  width: 38%;
  z-index: 2;
}
.tour-piece.shot-missing { display: none; }

/* Providers */
.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.provider-chips {
  display: contents;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip img { width: 18px; height: 18px; flex: none; }
.chip img[src$=".svg"],
.platform-head img,
.final-dl img {
  filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip img[src$=".svg"],
  :root:not([data-theme="light"]) .platform-head img,
  :root:not([data-theme="light"]) .final-dl img {
    filter: invert(1);
  }
}
:root[data-theme="dark"] .chip img[src$=".svg"],
:root[data-theme="dark"] .platform-head img,
:root[data-theme="dark"] .final-dl img {
  filter: invert(1);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.chip.faint { color: var(--faint); }

/* Privacy */
.priv-table {
  max-width: 640px;
  margin: 24px auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.priv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.priv-row:last-child { border-bottom: none; }
.priv-row span:first-child { color: var(--muted); }
.priv-row span:last-child { text-align: right; font-weight: 600; }
.priv-row .none { color: var(--ok); }

.priv-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.priv-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.priv-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.privacy-link { text-align: center; margin: 22px 0 0; }
.privacy-link a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Final CTA — compact strip, not another card grid */
.final-cta {
  text-align: center;
  padding: 56px 0;
}
.final-cta h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 10px; }
.final-cta p { color: var(--muted); margin: 0 0 22px; }
.final-downloads {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.final-dl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
}
.final-dl:hover { border-color: var(--accent); }
.final-dl img { width: 18px; height: 18px; }
.final-dl small { font-size: 11px; color: var(--faint); font-weight: 500; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--faint);
}
.footer-copy { display: grid; gap: 4px; max-width: 640px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

.icon-btn.active { color: var(--text); border-color: var(--accent); }

section[id] { scroll-margin-top: 76px; }

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 32px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid .platform-card:last-child { grid-column: 1 / -1; }
  .tour { min-height: 0; }
  .tour-desktop,
  .tour-compact,
  .tour-android,
  .tour-vscode {
    position: static;
    width: 100%;
    margin-bottom: 14px;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions [data-lang-btn],
  .nav-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }

  .nav-open .mobile-menu {
    display: block;
    border-top: 1px solid var(--border);
    animation: menu-in 0.18s ease;
  }
  .mobile-links a {
    display: block;
    padding: 13px 2px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-links a:hover { color: var(--accent); }
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 16px;
  }
  .mobile-actions .btn { flex: 1; justify-content: center; }
  .mobile-lang { display: flex; gap: 8px; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
  .benefits-grid,
  .platform-grid { grid-template-columns: 1fr; }
  .platform-grid .platform-card:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand-wordmark { display: none !important; }
  .brand-compact { display: flex; }
  .hero { padding: 40px 0 20px; }
  section { padding: 46px 0; }
  .hero-copy .cta-row .btn { flex: 1 1 100%; }
  .priv-row { flex-direction: column; gap: 4px; }
  .priv-row span:last-child { text-align: left; }
  .final-cta { padding: 40px 0; }
  .final-dl { flex: 1 1 100%; }
}

[hidden] { display: none !important; }
