/* Marble Yard — one stylesheet for every page. No web fonts, no trackers, no third-party requests. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #0a6cff;
  --accent-text: #ffffff;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #161618;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c30;
    --accent: #4d94ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(16px); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 650; letter-spacing: -0.01em; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.top nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot nav a { margin-right: 20px; }

/* Type */
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 16px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* A device drawn in CSS, with the app's real letterboxing: a 16:9 picture on a 4:3 screen. */
.device { background: #1b1b1d; border-radius: 26px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset; }
.device .screen { aspect-ratio: 4 / 3; background: #000; border-radius: 13px; overflow: hidden; display: flex; align-items: center; }
.device .screen img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.render { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35); }

/* Sections */
section { padding: 56px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.gallery img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.gallery.scenes img { aspect-ratio: 4 / 3; }
.render img { width: 100%; height: auto; }
.note { font-size: 14px; color: var(--muted); }

/* App list on the home page */
.app { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; color: var(--text); }
.app:hover { text-decoration: none; border-color: var(--accent); }
.app .icon { width: 120px; height: 120px; border-radius: 27px; background: linear-gradient(145deg, #1f2937, #0a6cff); display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 700; }
.app p { margin: 4px 0 0; color: var(--muted); }
.app .platforms { font-size: 14px; margin-top: 10px; color: var(--muted); }
@media (max-width: 560px) { .app { grid-template-columns: 1fr; } }

/* Legal and support text */
.doc { padding-top: 56px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 34px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; display: inline-block; width: 1.3em; color: var(--accent); }
details[open] summary::before { content: "−"; }
details p, details ul { color: var(--muted); margin: 10px 0 0 1.3em; }
.contact { margin-top: 40px; }
