/* ============================================================
   Xplorer landing — clean, Apple-style. Light by default,
   dark via [data-theme="dark"]. Theme-aware via CSS variables.
   ============================================================ */

:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #fbfbfd;          /* Apple off-white for alternating sections */
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.16);
  --text: #1d1d1f;             /* Apple near-black */
  --muted: #6e6e73;
  --muted-2: #86868b;
  --accent: #1d1d1f;
  --accent-2: #6e6e73;
  --fill: rgba(0, 0, 0, 0.045);
  --fill-hover: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.30);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px -18px rgba(0,0,0,0.18);

  --pill-bg: #1d1d1f;
  --pill-fg: #ffffff;

  --hero-img: url("assets/lightmode.jpg");
  --hero-filter: none;
  --logo-drop: rgba(0, 0, 0, 0.18);

  /* wordmark bevel */
  --wm-grad: linear-gradient(180deg, #2b2b2e 0%, #48484c 55%, #6a6a6f 100%);
  --wm-hi: rgba(255, 255, 255, 0.85);
  --wm-lo: rgba(0, 0, 0, 0.22);
  --wm-drop: rgba(0, 0, 0, 0.16);
  --wm-stroke: rgba(0, 0, 0, 0.05);

  --nav-bg: rgba(255, 255, 255, 0.72);

  --radius: 18px;
  --maxw: 1120px;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #08090c;
  --panel: #0e0f13;
  --panel-2: #16181f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f5f5f7;
  --muted: #aeaeb2;
  --muted-2: #7c7c82;
  --accent: #ffffff;
  --accent-2: #d4d4d4;
  --fill: rgba(255, 255, 255, 0.04);
  --fill-hover: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 0.8);

  --pill-bg: #ffffff;
  --pill-fg: #000000;

  /* dark hero = the last frame of the transition video (assets/darkmode.jpg) */
  --hero-img: url("assets/darkmode.jpg");
  --hero-filter: none;
  --logo-drop: rgba(0, 0, 0, 0.55);

  --wm-grad: linear-gradient(180deg, #ffffff 0%, #cfcfcf 60%, #a8a8a8 100%);
  --wm-hi: rgba(255, 255, 255, 0.35);
  --wm-lo: rgba(0, 0, 0, 0.55);
  --wm-drop: rgba(0, 0, 0, 0.55);
  --wm-stroke: rgba(255, 255, 255, 0.10);

  --nav-bg: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

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

h1, h2, h3 { line-height: 1.07; letter-spacing: -0.022em; margin: 0; }

/* ---------- Landscape / hero backdrop ---------- */
/* Pinned to the top, scaled to the display, faded into the page background. */
.bg-space {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; z-index: -1; pointer-events: none;
  background-image: var(--hero-img);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  filter: var(--hero-filter, none);
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0) 94%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0) 94%);
}
@media (max-aspect-ratio: 3/4) {
  .bg-space { height: 70vh; background-size: 135% auto; }
}

/* theme-transition video — sits exactly over .bg-space, matched framing + fade */
.bg-anim {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; z-index: -1; pointer-events: none;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .4s ease;
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0) 94%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0) 94%);
}
.bg-anim.is-on { opacity: 1; }
@media (max-aspect-ratio: 3/4) { .bg-anim { height: 70vh; } }

/* smooth cross-fade of page chrome while the backdrop animates between themes */
html.theme-animating,
html.theme-animating * {
  transition: background-color .5s ease, border-color .5s ease, color .5s ease,
    fill .5s ease, box-shadow .5s ease !important;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.nav__brand {
  /* Tunable alignment knobs (shared with the align tool, prefix --nl). */
  --nl-gap: 0px;
  --nl-x-size: 22px;
  --nl-x-dx: 4px; --nl-x-dy: 1px;
  --nl-word-size: 20px;
  --nl-word-dx: 0px; --nl-word-dy: 0px;
  --nl-letter: -0.02em;
  display: inline-flex; align-items: center; gap: var(--nl-gap);
  font-size: var(--nl-word-size); letter-spacing: var(--nl-letter); color: var(--text);
}
.nav__x {
  width: var(--nl-x-size); height: var(--nl-x-size); color: var(--text); flex: none;
  transform: translate(var(--nl-x-dx), var(--nl-x-dy));
}
/* X alone by default; "plorer" reveals on hover → reads "Xplorer" */
.nav__word {
  font-family: "Space Grotesk", -apple-system, "Inter", sans-serif;
  font-weight: 600; letter-spacing: -0.01em;
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transform: translate(var(--nl-word-dx), var(--nl-word-dy));
  transition: max-width .28s ease, opacity .26s ease, margin-left .28s ease;
}
.nav__brand:hover .nav__word,
.nav__brand:focus-visible .nav__word,
.nav__brand.wm-reveal .nav__word,
.nav__brand.nav-intro .nav__word { max-width: 8ch; opacity: 1; margin-left: 1px; }
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__gh {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 980px;
  color: var(--text); font-weight: 550; transition: border-color .2s, background .2s;
}
.nav__gh:hover { border-color: var(--text); background: var(--fill); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--fill); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { background: var(--fill-hover); transform: translateY(-1px); }
.theme-toggle .ico--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico--sun { display: block; }
@media (max-width: 760px) {
  .nav__links a:not(.nav__gh) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 980px; font-weight: 550; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--primary {
  color: var(--bg); background: var(--text);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.4);
}
.btn--primary:hover { transform: translateY(-1px); opacity: 0.88; }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text); background: var(--fill); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 36px; text-align: center;
}
.hero__inner { max-width: 820px; margin: 0 auto; }
/* hero brand wordmark: X mark + "plorer" */
.hero__wordmark {
  /* Final tuned alignment (X mark + "plorer"). */
  --wm-gap: -30px;
  --wm-x-size: 76px;
  --wm-x-dx: 15px; --wm-x-dy: 1px;
  --wm-word-size: 63px;
  --wm-word-dx: -1px; --wm-word-dy: -1px;
  --wm-letter: 0em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--wm-gap);
  margin-bottom: 26px; color: var(--text);
  font-family: "Space Grotesk", -apple-system, "Inter", sans-serif;
  font-weight: 700; font-size: var(--wm-word-size); letter-spacing: var(--wm-letter); line-height: 1;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__wordmark.wm-in { opacity: 1; transform: translateY(0); }
.hero__x {
  width: var(--wm-x-size); height: var(--wm-x-size); flex: none; color: var(--text);
  transform: translate(var(--wm-x-dx), var(--wm-x-dy));
}
.hero__wordmark > span { display: inline-block; transform: translate(var(--wm-word-dx), var(--wm-word-dy)); }

/* Alignment tool — only shown with ?align in the URL (kept for tuning). */
.wm-tool {
  position: fixed; bottom: 16px; left: 16px; z-index: 9999;
  width: 250px; padding: 14px; border-radius: 14px;
  background: var(--panel, #14161d); color: var(--text, #fff);
  border: 1px solid var(--line, rgba(255,255,255,.15)); box-shadow: 0 10px 40px rgba(0,0,0,.4);
  font: 12px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
}
.wm-tool h4 { margin: 0 0 10px; font-size: 13px; }
.wm-tool__targets { display: flex; gap: 4px; margin-bottom: 10px; }
.wm-tool__targets button {
  flex: 1; padding: 5px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px;
  border: 1px solid var(--line, rgba(255,255,255,.2)); background: rgba(255,255,255,.04); color: var(--muted, #9aa);
}
.wm-tool__targets button.is-active { background: rgba(255,255,255,.14); color: var(--text, #fff); }
.wm-tool__row { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 6px; margin-bottom: 7px; }
.wm-tool__row label { color: var(--muted, #9aa); }
.wm-tool__row input[type="range"] { width: 100%; }
.wm-tool__row output { text-align: right; font-variant-numeric: tabular-nums; }
.wm-tool__btns { display: flex; gap: 6px; margin-top: 10px; }
.wm-tool__btns button { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid var(--line, rgba(255,255,255,.2)); background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font: inherit; }
.wm-tool__btns button:hover { background: rgba(255,255,255,.14); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 550;
  color: var(--muted); border: 1px solid var(--line-strong); background: var(--fill);
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,0.18); }
.hero__title { font-size: clamp(42px, 7vw, 80px); font-weight: 700; letter-spacing: -0.03em; }
.grad {
  background: linear-gradient(180deg, var(--text) 0%, var(--muted) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin: 24px auto 0; max-width: 600px; font-size: 21px; color: var(--muted); font-weight: 400;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); }

/* ---------- Screenshot frame ---------- */
.hero__shot { max-width: 980px; margin: 60px auto 0; position: relative; }
/* The screenshot already includes its own browser window — show it directly
   (no fake macOS frame), with light/dark variants swapped by theme. */
.hero__shot-img {
  width: 100%;
  height: auto;
  display: block;
  /* The PNG is the browser window on a transparent canvas (rounded corners).
     Use drop-shadow (follows the alpha shape) instead of border-radius +
     box-shadow, which drew a rectangular "frame" around the transparent edges. */
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.4));
}
.hero__shot-img--dark { display: none; }
:root[data-theme="dark"] .hero__shot-img--light { display: none; }
:root[data-theme="dark"] .hero__shot-img--dark { display: block; }
.shot-frame {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow); position: relative;
}
.shot-frame__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.shot-frame__url {
  margin-left: 14px; font: 500 13px "JetBrains Mono", monospace; color: var(--muted-2);
  background: var(--bg); padding: 5px 14px; border-radius: 8px; border: 1px solid var(--line);
}
.shot-frame__body { aspect-ratio: 16 / 9; display: block; }
.shot-frame__body img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* placeholder styling */
.placeholder.is-empty, .shot-frame__body.placeholder.is-empty {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--fill) 0 12px, transparent 12px 24px),
    var(--panel-2);
  color: var(--muted-2); font: 500 13px "JetBrains Mono", monospace; text-align: center; padding: 24px;
}
.placeholder.is-empty::after { content: "📷 " attr(data-label); }

/* ---------- Customize / numbered placeholders ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.shot-card { position: relative; margin: 0; }
.shot-card .ref {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.04em;
  background: var(--pill-bg); color: var(--pill-fg);
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.shot-card__img {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.shot-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-card figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 15px; }
.shot-card figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Strip ---------- */
.strip { max-width: 760px; margin: 56px auto 0; padding: 0 24px; text-align: center; }
.strip p { color: var(--muted); font-size: 17px; letter-spacing: 0.005em; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.section--alt {
  max-width: none; background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font: 700 12.5px "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.025em; }
.section__head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-card);
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px; color: var(--text);
  background: var(--fill); border: 1px solid var(--line);
}
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card strong { color: var(--text); font-weight: 600; }

/* ---------- Showcase ---------- */
.showcase { display: flex; flex-direction: column; gap: 64px; }
.showcase__row {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 52px; align-items: center;
}
.showcase__row--reverse .showcase__text { order: 2; }
@media (max-width: 820px) {
  .showcase__row, .showcase__row--reverse { grid-template-columns: 1fr; gap: 26px; }
  .showcase__row--reverse .showcase__text { order: 0; }
}
.showcase__text h3 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.showcase__text p { color: var(--muted); font-size: 17px; margin: 0; }
.showcase__text strong { color: var(--text); font-weight: 600; }
.showcase__shot {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.showcase__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* action list (Grok it button) */
.actions { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.actions li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 16px; }
.actions li strong { color: var(--text); font-weight: 600; }
.actions__ic {
  flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--fill);
  color: var(--text); font-size: 14px; transform: translateY(4px);
}

/* "Ready" pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font: 700 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pill-fg); background: var(--pill-bg); border: 1px solid var(--pill-bg);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pill-fg); }
.pill--soon { color: var(--text); background: transparent; border: 1px dashed var(--line-strong); }
.pill--soon::before { background: var(--muted); animation: soonPulse 1.8s ease-in-out infinite; }
@keyframes soonPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Coming soon band ---------- */
.soon { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; }
.soon__inner {
  position: relative; overflow: hidden; text-align: center;
  padding: 66px 32px; border-radius: 28px; border: 1px solid var(--line);
  background: var(--bg-soft);
}
.soon__inner h2 { margin: 18px auto 0; font-size: clamp(28px, 4.6vw, 46px); font-weight: 700;
  letter-spacing: -0.025em; max-width: 760px; }
.soon__lead { max-width: 640px; margin: 18px auto 0; color: var(--text); font-size: 19px; }
.soon__note { max-width: 600px; margin: 14px auto 0; color: var(--muted-2); font-size: 15px; }
.soon__note em { color: var(--muted); font-style: italic; }

/* ---------- Code block (kept dark on both themes) ---------- */
.codeblock {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10); background: #0b0d12;
  box-shadow: var(--shadow);
}
.codeblock__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #14161d; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.codeblock__name { margin-left: 12px; font: 500 13px "JetBrains Mono", monospace; color: #8a8f9c; }
.codeblock__tabs { display: flex; gap: 4px; margin-left: 10px; }
.codeblock__tab {
  border: 0; background: transparent; color: #8a8f9c; cursor: pointer;
  font: 500 12.5px "JetBrains Mono", monospace; padding: 4px 10px;
  border-radius: 7px; white-space: nowrap;
}
.codeblock__tab:hover { color: #d7dcea; }
.codeblock__tab.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.codeblock__copy {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04); color: #d7dcea; cursor: pointer;
  font: 500 12px -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 5px 12px; border-radius: 7px;
}
.codeblock__copy:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.codeblock pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.codeblock__panel { display: none; }
.codeblock__panel.is-active { display: block; }
.codeblock__panel[data-panel="docs"] { max-height: 440px; overflow-y: auto; }
.codeblock code { font: 400 14px/1.7 "JetBrains Mono", monospace; color: #d7dcea; }
.c-key { color: #e6e6e6; } .c-str { color: #cfcfcf; } .c-com { color: #7c8294; font-style: italic; }
.c-fn { color: #e6e6e6; }

.feat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 760px; margin: 28px auto 0;
}
@media (max-width: 700px) { .feat-row { grid-template-columns: 1fr; } }
.feat-row__item {
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; gap: 6px;
}
.feat-row__item strong { font-size: 15px; }
.feat-row__item span { font: 500 12.5px "JetBrains Mono", monospace; color: var(--muted-2); }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 110px; }
.cta__inner {
  position: relative; overflow: hidden; text-align: center;
  padding: 76px 32px; border-radius: 28px; border: 1px solid var(--line);
  background: var(--bg-soft);
}
.cta__inner h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.cta__inner p { max-width: 540px; margin: 16px auto 0; color: var(--muted); font-size: 19px; }
.download-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: 640px; margin: 36px auto 0; text-align: left;
}
.download-card {
  padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--bg);
}
.download-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.download-card__sub { margin-top: 4px; font: 500 12px "JetBrains Mono", monospace; color: var(--muted-2); }
.download-card__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.download-card .btn { padding: 11px 18px; font-size: 14px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta__platforms { margin-top: 20px; font: 500 13px "JetBrains Mono", monospace; color: var(--muted-2); }
@media (max-width: 640px) { .download-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 24px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted-2);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.footer__x { width: 20px; height: 20px; color: var(--text); }
.footer__copy { font-size: 13.5px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; }
.footer__links a:hover { color: var(--text); }

/* ---------- Scroll-reveal (applied by JS; no-JS shows content normally) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
