:root {
  --bg: #0b0704;
  --bg2: #140d07;
  --card: #1a120b;
  --line: #2d1f12;
  --text: #f3e9dc;
  --dim: #b9a58f;
  --sun: #ffb23e;
  --sun2: #ff7a18;
  --gold: #ffd78a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
a { color: var(--sun); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85em; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 7, 4, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand img { border-radius: 50%; }
.top nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--dim); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
.top nav .nav-dl { color: #1a0f05; background: var(--sun); padding: .35rem .9rem; border-radius: 999px; font-weight: 600; }
.top nav .nav-dl:hover { color: #1a0f05; background: var(--gold); }

.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0 0 0 32%; background-size: cover; background-position: center; opacity: .6;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: scale(1); filter: brightness(.95); } to { transform: scale(1.05); filter: brightness(1.12); } }
.hero-in { position: relative; padding: 4rem clamp(1rem, 6vw, 5rem); max-width: 720px; }
.kicker { color: var(--sun); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(90deg, var(--gold), var(--sun2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #e6d6c2; max-width: 36em; }
.cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.fine { color: var(--dim); font-size: .9rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn small { font-weight: 400; opacity: .8; font-size: .85rem; margin-left: .2rem; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-main { color: #1a0f05; background: linear-gradient(180deg, var(--gold), var(--sun) 55%, var(--sun2)); box-shadow: 0 8px 30px rgba(255, 140, 30, .35); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 140, 30, .5); }
.btn-ghost { color: var(--text); border: 1px solid #5a3d22; background: rgba(255, 178, 62, .06); }
.btn-ghost:hover { border-color: var(--sun); }

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--bg2);
}
.strip div { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-size: 1.8rem; color: var(--gold); }
.strip span { color: var(--dim); font-size: .9rem; }

.sec { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 6vw, 5rem); max-width: 1240px; margin: 0 auto; }
.sec.dark { max-width: none; background: var(--bg2); border-block: 1px solid var(--line); }
.sec.dark > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.sub { color: var(--dim); margin: -.2rem 0 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #6b4521; transform: translateY(-2px); }
.card h3 { font-size: 1.08rem; color: var(--gold); }
.card p { margin: 0; color: #d8c7b3; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.shots figure { margin: 0; }
.shots .big { grid-column: 1 / -1; }
.shots img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.shots figcaption { color: var(--dim); font-size: .9rem; margin-top: .5rem; }

.fh { font-size: 1rem; color: var(--dim); font-weight: 600; margin-top: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips span { font-family: Consolas, monospace; font-size: .88rem; padding: .25rem .6rem; border-radius: 6px; background: var(--card); border: 1px solid var(--line); color: var(--gold); }
.chips.raw span { color: #ffb98a; }

.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0 2rem; margin: 0; }
.keys div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.keys dt { font-weight: 600; white-space: nowrap; }
.keys dd { margin: 0; color: var(--dim); text-align: right; }

.dl { text-align: center; }
.dl-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; text-align: left; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.dl-card.main { border-color: #7a4c1c; box-shadow: 0 0 60px rgba(255, 130, 20, .12) inset; }
.dl-card h3 { color: var(--gold); margin: 0; }
.dl-card p { margin: 0; color: #d8c7b3; flex: 1; }
.dl-card .btn { align-self: flex-start; }
.dl-card code { color: var(--dim); word-break: break-all; font-size: .75rem; }
.steps { text-align: left; max-width: 760px; margin: 2.5rem auto 0; padding-left: 1.3rem; color: #d8c7b3; }
.steps li { margin-bottom: .7rem; }
.steps b { color: var(--text); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--sun); }
details p { color: #d8c7b3; margin: .7rem 0 0; }

.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: grid; grid-template-columns: 70px 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hist b { color: var(--gold); }
.hist time { color: var(--dim); }

.foot { text-align: center; padding: 2rem 1rem; color: var(--dim); border-top: 1px solid var(--line); font-size: .9rem; }
.foot a { color: var(--sun); text-decoration: none; }

@media (max-width: 860px) {
  .top nav a:not(.nav-dl) { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(2) { border-right: 0; }
  .shots, .dl-grid { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .hist li { grid-template-columns: 60px 1fr; }
  .hist span { grid-column: 1 / -1; }
  .hero-bg { inset: 0; opacity: .2; mask-image: none; -webkit-mask-image: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 1180px) and (min-width: 861px) { .hero-bg { inset: 0 0 0 20%; opacity: .3; } }
