:root {
  color-scheme: light dark;
  --bg: #ffffff; --text: #171717; --muted: #666; --line: #e3e3e3; --surface: #f6f4f0;
  --wood-1: #c08a57; --wood-2: #9a6739; --accent: #7b1e2b;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --text: #ececec; --muted: #9a9a9a; --line: #2a2a2a; --surface: #1a1816; --accent: #e07a86; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(18px, 5vw, 56px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

main { width: min(860px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 80px; }
.hero { text-align: center; padding: 40px 0 24px; }
.hero .eyebrow { color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 8px; font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; }
.hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 120px; margin: 36px auto 0; padding: 0 22px 10px; width: max-content; position: relative; }
.shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 3px; background: linear-gradient(var(--wood-1), var(--wood-2)); }
.shelf i { width: 22px; border-radius: 3px 3px 0 0; animation: rise 900ms var(--ease) both; }
.shelf i::after { content: ''; display: block; height: 4px; margin-top: 14px; background: rgba(255, 255, 255, 0.45); }
.shelf i:nth-child(1) { height: 90px; background: #7b1e2b; }
.shelf i:nth-child(2) { height: 104px; width: 18px; background: #5f8fc2; animation-delay: 90ms; }
.shelf i:nth-child(3) { height: 82px; width: 26px; background: #e2a72a; animation-delay: 180ms; }
.shelf i:nth-child(4) { height: 98px; background: #2f5d50; animation-delay: 270ms; }
.shelf i:nth-child(5) { height: 88px; width: 19px; background: #5c4f78; animation-delay: 360ms; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 56px 0; }
.card { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.card strong { display: block; margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 0.95rem; }
.cta { text-align: center; margin: 40px 0; }
.btn { display: inline-block; padding: 14px 26px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; letter-spacing: 0.06em; border: 0; font-size: 1rem; cursor: pointer; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.muted { color: var(--muted); }

.doc h1 { font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.doc h2 { font-size: 1.15rem; margin: 36px 0 8px; }
.doc li { margin: 4px 0; }
.doc .note { padding: 14px 16px; border-left: 3px solid var(--wood-2); background: var(--surface); font-size: 0.95rem; }

.panel { max-width: 460px; margin: 40px auto; padding: 36px 30px; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.panel .icon { font-size: 3rem; line-height: 1; }
.panel h1 { font-weight: 400; margin: 14px 0 8px; font-size: 1.7rem; }
.panel form { text-align: left; margin-top: 22px; }
.panel label { display: block; margin: 0 0 16px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel input { width: 100%; margin-top: 6px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; letter-spacing: 0; text-transform: none; outline: none; }
.panel input:focus { border-color: var(--text); }
.rules { margin: -6px 0 16px; padding: 0; list-style: none; font-size: 0.82rem; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.rules li.ok { color: #2fa36b; }
.rules li::before { content: '○ '; }
.rules li.ok::before { content: '● '; }
.error { color: #c0392b; min-height: 1.4em; font-size: 0.92rem; }
.hidden { display: none !important; }

footer { border-top: 1px solid var(--line); padding: 28px clamp(18px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 560px) { .top nav { display: none; } .rules { grid-template-columns: 1fr; } }
