:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #b7adbe;
  --line: rgba(246, 241, 232, 0.14);
  --paper: #110d16;
  --card: #1b1622;
  --accent: #c4b2ff;
  --accent-2: #8ec5ff;
  --accent-ink: #1a1224;
  --warn: #f0c27a;
  --warn-bg: rgba(240, 194, 122, 0.12);
  --bad: #ffb4a8;
  --bad-bg: rgba(255, 140, 120, 0.12);
  --ok-bg: rgba(168, 214, 176, 0.12);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(142, 197, 255, 0.16), transparent 60%),
    radial-gradient(720px 520px at 100% 0%, rgba(196, 178, 255, 0.2), transparent 55%),
    var(--paper);
  min-height: 100vh;
}
a { color: var(--accent-2); }
header, main, footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(17, 13, 22, 0.94), rgba(17, 13, 22, 0.78) 70%, transparent);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand span { font-family: Fraunces, var(--serif); font-size: 26px; font-weight: 560; letter-spacing: -0.03em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--ink); font-size: 14px; }
button, .button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(120deg, #ddd0ff, #b7d7ff);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button:disabled { opacity: 0.55; cursor: not-allowed; }

.stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 10px;
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 13px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(142, 197, 255, 0.35);
}
.stage h1, .hero h1 {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.03em;
}
.stage h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #efe7ff, #9dc6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 640px; font-size: 18px; color: var(--muted); line-height: 1.65; }
.stage-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.viewfinder {
  position: relative;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: #17131d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.viewfinder::before,
.viewfinder::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid #efe7ff;
  z-index: 2;
}
.viewfinder::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.viewfinder::after { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.frame-split { display: grid; grid-template-columns: 1fr 1fr; height: 100%; min-height: 380px; }
.half {
  position: relative;
  min-height: 380px;
}
.half.marked {
  background:
    repeating-linear-gradient(-32deg, rgba(246, 241, 232, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #3a3150, #1c2438 70%);
}
.half.clear {
  background:
    radial-gradient(120px 80px at 70% 30%, rgba(255, 236, 196, 0.55), transparent 70%),
    linear-gradient(165deg, #6e8cae, #2c3f55 42%, #1d2a28 78%);
}
.stamp {
  position: absolute;
  left: 16px;
  bottom: 22px;
  color: rgba(246, 241, 232, 0.72);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.selection {
  position: absolute;
  z-index: 2;
  left: 38%;
  top: 28%;
  width: 34%;
  height: 22%;
  border: 1.5px dashed #efe7ff;
  border-radius: 10px;
  box-shadow: 0 0 0 6px rgba(17, 13, 22, 0.25);
}
.selection span {
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #efe7ff;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}
.flow article {
  padding: 16px 16px 14px;
  border-top: 1px solid var(--line);
}
.flow strong {
  display: block;
  font-family: Fraunces, var(--serif);
  font-size: 28px;
  font-weight: 520;
  color: var(--accent);
}
.flow span { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .panel, .legal, .callout {
  background: rgba(27, 22, 34, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}
.card h2, .card h3 { margin-top: 0; }
.price {
  font-family: Fraunces, var(--serif);
  font-size: 36px;
  margin: 8px 0;
}
.muted { color: var(--muted); }
.banner, .notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.banner.warn, .notice { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.ok { background: var(--ok-bg); color: #c8ecd2; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
form { display: grid; gap: 10px; }
input[type="email"], input[type="password"], input[type="text"] {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #241c2e;
  color: var(--ink);
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.accept { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.accept input { width: 18px; height: 18px; margin-top: 2px; accent-color: #ffb4a8; }
.accept.invalid {
  border-color: #ff8c78;
  background: var(--bad-bg);
  box-shadow: 0 0 0 3px rgba(255, 140, 120, 0.28);
  animation: accept-shake 0.45s ease;
}
.accept.invalid span { color: #ffd2c8; font-weight: 650; }
#checkout-message:not([hidden]) { font-size: 16px; font-weight: 650; }
@keyframes accept-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
footer { padding: 28px 0 56px; color: var(--muted); font-size: 14px; }
footer a { margin-right: 12px; }
h1 { font-family: var(--serif); font-size: 34px; line-height: 1.2; font-weight: 620; }
h2 { font-family: var(--serif); font-weight: 620; letter-spacing: -0.02em; }
.legal { margin: 18px 0 28px; }
.legal h2 { font-size: 22px; }
.en { color: var(--muted); font-size: 15px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 8px 0; }
section { scroll-margin-top: 84px; }
.status-invalid_signature { color: var(--bad); font-weight: 700; }
.bench { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.bench .card:last-child { transform: translateY(18px); }

@media (max-width: 860px) {
  .stage, .flow, .grid, .bench { grid-template-columns: 1fr; }
  .bench .card:last-child { transform: none; }
  header { position: static; background: none; }
  .viewfinder, .frame-split, .half { min-height: 280px; }
}
