:root {
  --bg: #0c1210;
  --ink: #e7efe9;
  --mute: #a3b0a8;
  --line: #2c3b34;
  --accent: #e0c27a;
  --accent-ink: #1c160c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(720px 320px at 8% -40px, rgba(224, 194, 122, 0.16), transparent 58%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); }
a:hover { color: #f4e7c4; }

.dragon {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.dragon canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--accent);
  text-decoration: none;
}
.sigil { width: 68px; height: 68px; display: block; flex: none; }
.word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid rgba(224, 194, 122, 0.45);
}
.exp, .bet { line-height: 1; }
.exp {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}
.bet {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(224, 194, 122, 0.45);
  color: #c6bba8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
}
.mark:hover { color: #f4e7c4; }
.mark:hover .exp { color: #f4e7c4; }
.mark:hover .bet { color: #fff; }

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--mute);
  font-size: 15px;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

h1 { margin: 0; }

.hero {
  padding: 88px 0 80px;
}
.hero h1 {
  max-width: none;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 520;
  letter-spacing: -0.038em;
  line-height: 0.96;
}
.hero .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero .line > span {
  display: block;
  white-space: nowrap;
  animation: hero-unveil 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .line:nth-child(2) > span { animation-delay: 0.14s; }
.hero .line.gold {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: none;
  margin-top: 26px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.hero .line.gold::before {
  content: "";
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
  animation: hero-rule 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}
.hero .line.gold > span {
  white-space: normal;
  color: transparent;
  background: linear-gradient(100deg, #c6a15a 0%, #e0c27a 36%, #fff6d8 50%, #e0c27a 64%, #c6a15a 100%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    hero-unveil 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both,
    hero-sheen 2.1s ease 1.15s both;
}
.hero .lede {
  max-width: 40em;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
  color: #c9d6ce;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.actions { display: flex; margin-top: 36px; }
.hero .actions {
  margin-top: 34px;
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
}
@keyframes hero-unveil {
  from { transform: translateY(110%); }
  to { transform: none; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-sheen {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@keyframes hero-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .line > span,
  .hero .line.gold::before,
  .hero .lede,
  .hero .actions {
    animation: none;
  }
  .hero .line.gold > span {
    color: var(--accent);
    background: none;
  }
}
.btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 28px;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #f0d89a; color: var(--accent-ink); }

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}
.points article {
  position: relative;
  background:
    linear-gradient(180deg, rgba(224, 194, 122, 0.09), rgba(224, 194, 122, 0) 46%),
    #121a16;
  border: 1px solid rgba(224, 194, 122, 0.32);
  padding: 32px 30px 34px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.08), 0 22px 44px rgba(0, 0, 0, 0.32);
}
.points article::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 22px;
  background: var(--accent);
}
.points h2 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.points p:last-child {
  margin: 0;
  color: #e8efe9;
  font-size: 17px;
  line-height: 1.7;
}
.points article:hover { border-color: rgba(224, 194, 122, 0.62); }

.contact { max-width: 760px; padding: 56px 0 28px; }
.contact h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hint {
  max-width: 38em;
  margin: 0 0 28px;
  color: #d5e0d8;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.contact form {
  padding: 32px 32px 28px;
  background:
    linear-gradient(180deg, rgba(224, 194, 122, 0.08), rgba(224, 194, 122, 0) 42%),
    #121a16;
  border: 1px solid rgba(224, 194, 122, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.08), 0 22px 44px rgba(0, 0, 0, 0.28);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  color: #c6bba8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fields label { margin-bottom: 0; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(224, 194, 122, 0.28);
  background: rgba(8, 12, 10, 0.72);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  border-color: rgba(224, 194, 122, 0.28);
  box-shadow: 0 0 0 1000px #101612 inset;
  transition: background-color 99999s ease-out 0s;
}
.choice {
  min-inline-size: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.choice legend {
  margin-bottom: 10px;
  padding: 0;
  color: #c6bba8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid rgba(224, 194, 122, 0.28);
  background: rgba(8, 12, 10, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
}
.options label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(224, 194, 122, 0.12);
  color: var(--accent);
}
.options input {
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(224, 194, 122, 0.72);
  border-radius: 50%;
  background: #101612;
}
.options input:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, #101612 4.5px);
}
textarea { min-height: 140px; resize: vertical; }
.err { color: #ffb0a8; font-weight: 650; }
.sent { color: var(--accent); font-weight: 650; }
.copy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 194, 122, 0.35);
}
.copy-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.copy pre {
  margin: 0;
  color: var(--ink);
  font: 15px/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.foot {
  display: flex;
  gap: 22px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .points, .fields { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 56px; }
  .hero h1 { font-size: clamp(28px, 7.6vw, 44px); }
  .hero .line.gold { margin-top: 18px; font-size: 18px; }
  .hero .lede { font-size: 16px; }
  .sigil { width: 52px; height: 52px; }
  .word { padding-left: 12px; }
  .exp { font-size: 16px; letter-spacing: 0.22em; margin-right: -0.22em; }
  .bet { font-size: 10px; letter-spacing: 0.16em; margin-right: -0.16em; }
  .top { gap: 16px; }
  .dragon canvas { opacity: 0.6; }
  .contact .hint { max-width: 14em; }
}
