:root {
  --bg: #14100f;
  --panel: #1c1614;
  --line: #33261f;
  --text: #f2eae5;
  --muted: #a08f86;
  --red: #e2543a;
  --red-light: #f07456;
  --green: #35d67c;
  --amber: #f5b942;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1080px;
  --pad: clamp(18px, 5vw, 56px);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: var(--red-light); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -0.01em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); max-width: var(--max); margin: 0 auto; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; }
.brand .mark { width: 20px; height: 20px; }
.nav a.navlink { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 24px; }
.nav a.navlink:hover { color: var(--text); }

.hero { padding: 64px var(--pad) 20px; text-align: center; }
.hero .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-light); }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); margin-top: 16px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero p { color: var(--muted); max-width: 58ch; margin: 16px auto 0; font-size: 16.5px; }

.register { padding: 30px var(--pad) 80px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-width: 620px; margin: 0 auto; padding: 32px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; color: var(--text); font-family: var(--sans); font-size: 14.5px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 14.5px; text-decoration: none; font-family: var(--sans); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-light); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.form-status { font-family: var(--mono); font-size: 13px; margin-top: 10px; min-height: 18px; color: var(--muted); }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

section { padding: 60px var(--pad); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-light); }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.steps { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.step-card .num { font-family: var(--mono); color: var(--red-light); font-size: 13px; }
.step-card h3 { font-size: 17px; margin-top: 10px; }
.step-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.result-box { max-width: 620px; margin: 40px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.result-box code { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; margin-top: 8px; }

table.dirtable { width: 100%; border-collapse: collapse; max-width: var(--max); margin: 0 auto; }
table.dirtable th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.dirtable td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.dirtable a.site-link { color: var(--text); text-decoration: none; font-weight: 600; }
table.dirtable a.site-link:hover { color: var(--red-light); }

.explain { padding: 70px var(--pad); border-top: 1px solid var(--line); }
.explain .wrap { max-width: 760px; }
.explain h2 { font-size: 26px; margin-bottom: 20px; }
.explain h3 { font-size: 18px; margin: 26px 0 8px; }
.explain p, .explain li { color: var(--muted); font-size: 15.5px; }
.explain code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-family: var(--mono); font-size: 13px; color: var(--red-light); }

footer { border-top: 1px solid var(--line); padding: 30px var(--pad); font-size: 13px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: var(--max); margin: 0 auto; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--red-light); }
