:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e4ded4;
  --gold: #b8891a;
  --gold-soft: #f4e7c4;
  --blue: #2f6bff;
  --radius: 18px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1e1c18;
    --ink: #f3efe7;
    --muted: #a59e92;
    --line: #2e2b25;
    --gold: #e0b44a;
    --gold-soft: #3a3020;
    --blue: #6f97ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 22px;
  text-decoration: none; letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; }
nav.links { display: flex; gap: 20px; font-size: 15px; color: var(--muted); }
nav.links a { text-decoration: none; }
nav.links a:hover { color: var(--ink); }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 56px 0 72px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-soft); padding: 5px 12px; border-radius: 999px;
}
h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.lede { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 16px;
}
.note { font-size: 14px; color: var(--muted); }

.scan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; aspect-ratio: 4 / 5; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.35);
}
.scan .ground { position: absolute; inset: 0; width: 100%; height: 100%; }
.target {
  position: absolute; left: 30%; top: 34%; width: 42%; height: 32%;
}
.target span {
  position: absolute; width: 22%; height: 22%; border: 4px solid var(--blue);
}
.target span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.target span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.target span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.target span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.label {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(34% - 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.4);
}
.label b { color: var(--blue); }
.result {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.result .name { font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.2; }
.result .sub { font-size: 13px; color: var(--muted); }
.rare {
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 80px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-family: "Fraunces", Georgia, serif; font-size: 21px; margin: 0 0 6px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

footer.site {
  border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
footer.site nav { display: flex; gap: 20px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 20px 0;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 56px; }
  .features { grid-template-columns: 1fr; }
  nav.links { gap: 14px; }
}
