/* Xray Studio — the landing page.
 *
 * The palette is the application's own, so the screenshots sit on the page rather than
 * on top of it. No frameworks and no fonts to fetch: the page is three files, and the
 * only requests it makes are for its own screenshots. */

:root {
  --bg: #0e1116;
  --bg-panel: #151a21;
  --bg-raised: #1c222b;
  --border: #262d38;
  --fg: #dbe1e8;
  --fg-dim: #8b96a5;
  --fg-faint: #5d6875;
  --accent: #4c9aff;
  --ok: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shell: min(1100px, 100% - 48px);
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--bg-raised); border-radius: 4px; font-family: var(--mono); font-size: .87em; padding: .1em .35em; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell { margin-inline: auto; width: var(--shell); }
.dim { color: var(--fg-dim); }

/* ── top bar ──────────────────────────────────────────────────────────────── */

.top {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgb(14 17 22 / 82%);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { align-items: center; color: var(--fg); display: flex; font-weight: 600; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: 26px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--fg-dim); font-size: 14px; }
.top nav a:hover { color: var(--fg); text-decoration: none; }

/* The language switch stays at every width. It is the only control on the page that a
   reader cannot work around by scrolling, and someone who landed in the wrong language
   needs it most on the screen where there is least room. */
.lang { display: inline-flex; }
.lang button {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-faint);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 3px 8px;
}
.lang button:first-child { border-radius: 5px 0 0 5px; }
.lang button:last-child { border-radius: 0 5px 5px 0; margin-left: -1px; }
.lang button:hover { color: var(--fg); }
.lang button.on { background: var(--bg-raised); border-color: var(--accent); color: var(--accent); }

/* The section links are the first thing to go on a narrow screen: the page is short
   enough to scroll, and the two that matter — download and the repository — are not
   reachable any other way. */
@media (max-width: 760px) { .top nav .opt { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); letter-spacing: -.02em; }
.hero .lede { color: var(--fg-dim); font-size: clamp(16px, 2.4vw, 20px); margin: 18px auto 0; max-width: 40em; }
.hero .built { color: var(--fg-faint); font-size: 14px; margin-top: 14px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 0; }
.btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
}
.btn:hover { background: var(--bg-raised); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #08111f; }
.btn.primary:hover { background: #6badff; border-color: #6badff; }

/* ── figures ──────────────────────────────────────────────────────────────── */

figure { margin: 0; }
figure img,
.shot img {
  border: 1px solid var(--border);
  border-radius: 10px;
  display: block;
  height: auto;
  width: 100%;
}
figcaption { color: var(--fg-faint); font-size: 13.5px; margin-top: 10px; }

/* Each screenshot links to itself. Scaled into a phone's width the whole application
   window is a thumbnail, and tapping through to the file is the only way to read a
   decision funnel on one. */
a.zoom { display: block; }
a.zoom:hover img { border-color: var(--fg-faint); }

.hero-shot { margin: 40px 0 0; }
.hero-shot img { box-shadow: 0 24px 60px rgb(0 0 0 / 55%); }

/* ── the promise band ─────────────────────────────────────────────────────── */

.promise { border-block: 1px solid var(--border); margin-top: 72px; padding: 44px 0; }
.promise .cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.promise .card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.promise h3 { font-size: 16px; margin-bottom: 8px; }
.promise p { color: var(--fg-dim); font-size: 14.5px; }
.promise .foot { color: var(--fg-faint); font-size: 13.5px; margin-top: 22px; text-align: center; }
@media (max-width: 860px) { .promise .cards { grid-template-columns: 1fr; } }

/* ── feature sections ─────────────────────────────────────────────────────── */

.features { padding: 16px 0 0; }
.feature { padding: 60px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature .lead { max-width: 46em; }
.feature h2 { font-size: clamp(21px, 3.4vw, 27px); letter-spacing: -.01em; }
.feature .kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; margin-bottom: 10px; text-transform: uppercase; }
.feature .lead p { color: var(--fg-dim); margin-top: 14px; }
.feature .shot { margin-top: 28px; }

.points { display: grid; gap: 18px 28px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 26px 0 0; padding: 0; }
.points li { border-left: 2px solid var(--border); color: var(--fg-dim); font-size: 15px; padding-left: 14px; }
.points b { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* ── download ─────────────────────────────────────────────────────────────── */

.download { border-top: 1px solid var(--border); padding: 60px 0; }
.download h2 { font-size: clamp(21px, 3.4vw, 27px); }
.download .sub { color: var(--fg-dim); margin-top: 12px; }

.files { border: 1px solid var(--border); border-radius: 10px; margin-top: 26px; overflow: hidden; }
.file { align-items: baseline; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 18px; }
.file:last-child { border-bottom: 0; }
.file .os { flex: 0 0 190px; font-weight: 600; }
.file .name { color: var(--accent); font-family: var(--mono); font-size: 13px; }
.file .note { color: var(--fg-dim); flex: 1 1 260px; font-size: 14px; }
@media (max-width: 700px) { .file .os { flex-basis: 100%; } }

.notes { color: var(--fg-dim); font-size: 14.5px; margin-top: 24px; }
.notes strong { color: var(--fg); }

/* ── footer ───────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--border); color: var(--fg-faint); font-size: 14px; padding: 36px 0 56px; }
footer a { color: var(--fg-dim); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .row + .row { margin-top: 12px; }
