/* Shared style for the project pages. Each page sets --a, --b (accent gradient) and --link. */
:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --panel: #17171b;
  --line: #2a2a30;
  --text: #f4f4f5;
  --muted: #a8a8b0;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--link); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

header { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
header nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--text); }
header nav a.home { color: var(--text); font-weight: 600; }

.hero { padding: 112px 0 72px; text-align: center; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--b) 16%, transparent), transparent 70%); }
.hero img.icon { width: 88px; height: 88px; border-radius: 20px; }
h1 { margin: 18px 0 10px; font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -1.2px; }
.grad { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { color: var(--on-accent, #fff); background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 8px 30px color-mix(in srgb, var(--b) 28%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.btn.ghost:hover { border-color: #46464f; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.meta { margin-top: 12px; color: var(--muted); font-size: 13px; }

.shot { margin: 64px auto 0; max-width: 1040px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px #000a; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 64px; }
.gallery img { max-width: min(100%, 360px); height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px #000a; background: #000; }

section { padding: 112px 0 24px; scroll-margin-top: 20px; }
h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.6px; }
.sub { margin: 0 0 36px; color: var(--muted); max-width: 700px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.card h3 .ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 18%, transparent), color-mix(in srgb, var(--b) 18%, transparent)); }
.card h3 svg { width: 18px; height: 18px; fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .off { display: inline-block; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

ul.ticks { margin: 0; padding: 0; list-style: none; max-width: 820px; }
ul.ticks li { position: relative; padding-left: 28px; margin: 18px 0; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
ul.ticks strong { color: var(--text); }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
ol.steps li { counter-increment: s; padding: 22px 22px 22px 62px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); font-size: 14.5px; }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 700; color: var(--on-accent, #fff); background: linear-gradient(135deg, var(--a), var(--b)); }
ol.steps strong { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips code { font-size: 13.5px; padding: 6px 10px; }
.note { border-left: 3px solid var(--a); padding: 4px 0 4px 16px; color: var(--muted); max-width: 820px; margin: 0; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 22px; margin-bottom: 12px; }
details summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
code { font: 13px ui-monospace, Consolas, monospace; background: #0a0a0c; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--text); }

.final { text-align: center; padding: 140px 0 120px; }
.final .sub { margin-inline: auto; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: #7a7a83; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: #a0a0a8; }

/* Opening veil: covers the page on load, shown only with motion on; each page's motion.css animates it
   away in its own style (pure CSS, so it always ends). Any wheel, key or tap skips it. */
.intro { display: none; }
html.motion .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--bg); }
html.intro-skip .intro { display: none; }

/* Privacy policy and terms pages */
.legal { width: min(760px, 100% - 32px); margin: 0 auto; padding: 40px 0 56px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.legal .back:hover { color: var(--text); }
.legal .back img { border-radius: 6px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin: 24px 0 4px; }
.legal .updated { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.legal .intro { font-size: 17px; color: var(--text); }
.legal h2 { margin: 34px 0 8px; font-size: 20px; letter-spacing: -.2px; }
.legal p, .legal li { color: #c6c6cc; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .see { margin-top: 40px; color: var(--muted); }
.legal .table { overflow-x: auto; margin-top: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; }
.legal td { color: #c6c6cc; }
.legal td:first-child { color: var(--text); white-space: nowrap; }

@media (max-width: 760px) {
  .legal td:first-child { white-space: normal; }
  header nav a.hide-sm { display: none; }
  .hero { padding-top: 72px; padding-bottom: 56px; }
  section { padding-top: 84px; }
  .final { padding: 104px 0 88px; }
}
html { scroll-behavior: smooth; }
