:root { color-scheme: light; --ink:#17211b; --muted:#607065; --line:#d7ded8; --bg:#f4f6f0; --panel:#ffffff; --brand:#1b6a41; --brand-2:#0f3d30; --gold:#d8b15a; --steel:#516a73; --warn:#9d5b00; --bad:#9d2637; }
* { box-sizing: border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
body::selection { background:var(--gold); color:#14211a; }
header { position:sticky; top:0; z-index:20; background:rgba(17,43,32,.92); color:white; border-bottom:1px solid rgba(216,177,90,.45); backdrop-filter:blur(18px); }
.wrap { width:min(1160px, calc(100% - 32px)); margin:0 auto; }
.top { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand { font-size:22px; font-weight:900; letter-spacing:0; display:flex; align-items:center; gap:10px; }
.brand::before { content:"MM"; font-size:14px; display:grid; place-items:center; width:34px; height:34px; border:1px solid rgba(216,177,90,.8); background:linear-gradient(145deg,#1b6a41,#10261f); color:#f8dfa0; border-radius:6px; box-shadow:0 10px 28px rgba(0,0,0,.25); }
nav { display:flex; flex-wrap:wrap; gap:8px; }
nav a { color:#edf7ef; text-decoration:none; padding:9px 12px; border-radius:6px; font-weight:800; transition:background .18s ease, transform .18s ease; }
nav a.active, nav a:hover { background:rgba(255,255,255,.14); transform:translateY(-1px); }
.site-main { padding:0 0 52px; }
.page-shell { padding-top:32px; }
h1 { font-size:clamp(34px, 7vw, 82px); line-height:.96; margin:0 0 12px; letter-spacing:0; }
h2 { margin:28px 0 12px; font-size:24px; }
h3 { margin:18px 0 8px; font-size:18px; }
.lead { color:var(--muted); font-size:18px; max-width:820px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:22px; margin:18px 0; box-shadow:0 12px 34px rgba(27,48,34,.06); }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
label { display:block; font-weight:800; margin:14px 0 6px; }
input[type=text], input[type=password], textarea { width:100%; border:1px solid #bac5bd; border-radius:6px; padding:12px; font:inherit; background:white; }
.choices label { font-weight:600; display:flex; gap:10px; align-items:flex-start; padding:10px; border:1px solid var(--line); border-radius:6px; margin:8px 0; background:#fbfcfa; }
button, .button { border:0; border-radius:6px; background:linear-gradient(135deg,var(--brand),#0f4b38); color:white; padding:11px 15px; font-weight:900; font:inherit; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:8px; box-shadow:0 12px 28px rgba(27,106,65,.22); transition:transform .18s ease, box-shadow .18s ease; }
button:hover, .button:hover { transform:translateY(-2px); box-shadow:0 16px 34px rgba(27,106,65,.28); }
button.secondary, .button.secondary { background:#42564a; }
button.danger { background:var(--bad); }
.notice { border-left:5px solid var(--brand); background:#eef8f1; padding:13px 15px; border-radius:6px; margin:14px 0; }
.warn { border-left-color:var(--warn); background:#fff6e7; }
.bad { border-left-color:var(--bad); background:#fff0f2; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; vertical-align:top; border-bottom:1px solid var(--line); padding:10px 8px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background:#edf1ed; padding:2px 5px; border-radius:4px; }
.cmd { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--line); }
.cmd code { min-width:155px; font-weight:800; }
.status { display:inline-block; border-radius:999px; padding:3px 9px; font-size:12px; font-weight:800; background:#e9eee9; }
.status.approved, .status.approved_auto { background:#dff3e4; color:#145c31; }
.status.rejected { background:#ffe3e7; color:#872033; }
.status.pending { background:#fff0cf; color:#805100; }
.hero { position:relative; min-height:min(760px, calc(100svh - 82px)); overflow:hidden; color:white; display:flex; align-items:end; isolation:isolate; }
.hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(9,24,19,.96),rgba(12,38,29,.74) 42%,rgba(14,42,34,.18)), linear-gradient(0deg,rgba(10,24,19,.78),rgba(10,24,19,.08) 44%,rgba(10,24,19,.38)), url('/assets/havenlock-hero.gif') center/cover no-repeat; transform:scale(1.02); z-index:-2; }
.hero::after { content:""; position:absolute; inset:auto 0 0; height:42%; background:linear-gradient(0deg,var(--bg),rgba(244,246,240,0)); z-index:-1; }
.hero-inner { width:min(1160px, calc(100% - 32px)); margin:0 auto; padding:88px 0 72px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:#ffe6a8; font-weight:900; text-transform:uppercase; letter-spacing:.12em; font-size:12px; margin-bottom:14px; }
.eyebrow::before { content:""; width:42px; height:2px; background:var(--gold); box-shadow:0 0 22px var(--gold); }
.hero p { max-width:720px; font-size:clamp(18px,2.2vw,24px); color:#edf7ef; margin:0 0 24px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:26px 0; }
.button.gold { background:linear-gradient(135deg,#f2d183,#bf8d2a); color:#16251d; box-shadow:0 16px 38px rgba(216,177,90,.34); }
.button.ghost { background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.32); box-shadow:none; color:white; }
.hero-stats { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:10px; max-width:760px; margin-top:28px; }
.stat { border:1px solid rgba(255,255,255,.22); background:rgba(14,32,25,.44); backdrop-filter:blur(10px); border-radius:8px; padding:14px; animation:rise .7s ease both; }
.stat strong { display:block; font-size:18px; color:#fff4d2; }
.stat span { color:#d8e7dc; font-size:13px; }
.section { padding:58px 0; }
.section.alt { background:#e9eee7; }
.section-head { max-width:760px; margin-bottom:22px; }
.section-head h2 { font-size:clamp(28px,4vw,46px); line-height:1.02; margin:0 0 10px; }
.feature { position:relative; overflow:hidden; background:white; border:1px solid var(--line); border-radius:8px; padding:24px; min-height:190px; box-shadow:0 22px 50px rgba(35,58,44,.08); animation:rise .65s ease both; }
.feature::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,var(--brand),var(--gold),var(--steel)); }
.feature h3 { margin-top:0; font-size:22px; }
.rank-row { display:grid; grid-template-columns:150px 130px 1fr; gap:14px; align-items:start; padding:13px 0; border-bottom:1px solid var(--line); }
.rank-row:last-child { border-bottom:0; }
.rank-name { font-weight:900; color:#173829; }
.rank-time { display:inline-flex; width:max-content; border-radius:999px; padding:4px 10px; background:#eef4ee; color:#315a40; font-weight:900; font-size:13px; }
.rank-special { border-left:5px solid var(--gold); }
.steps { counter-reset:steps; display:grid; gap:14px; }
.step { counter-increment:steps; display:grid; grid-template-columns:54px 1fr; gap:14px; align-items:start; background:white; border:1px solid var(--line); border-radius:8px; padding:18px; }
.step::before { content:counter(steps); display:grid; place-items:center; width:42px; height:42px; border-radius:6px; background:#173829; color:#ffe6a8; font-weight:900; }
.command-strip { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.command-strip code { background:#17211b; color:#f8dfa0; padding:8px 10px; }
.legal { max-width:880px; }
.legal h1 { font-size:clamp(32px,5vw,56px); }
.legal h2 { margin-top:34px; }
.legal ul { padding-left:22px; }
pre { white-space:pre-wrap; overflow:auto; background:#f8faf7; border:1px solid var(--line); border-radius:8px; padding:16px; }
footer { color:#cddbd1; padding:34px 0 40px; border-top:1px solid rgba(216,177,90,.28); background:#10241c; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:22px; align-items:start; }
.footer-links { display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:flex-end; }
.footer-links a { color:#f5d889; text-decoration:none; font-weight:800; }
.footer-links a:hover { text-decoration:underline; }
@keyframes rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.001ms !important; scroll-behavior:auto !important; transition:none !important; } }
@media (max-width:800px) { .top { align-items:flex-start; flex-direction:column; padding:16px 0; } .hero-stats { grid-template-columns:repeat(2,1fr); } .footer-grid { grid-template-columns:1fr; } .footer-links { justify-content:flex-start; } .cmd { flex-direction:column; } .cmd code { min-width:auto; } .rank-row { grid-template-columns:1fr; gap:6px; } }
@media (max-width:520px) { .hero-inner { padding:64px 0 58px; } .hero-stats { grid-template-columns:1fr; } .step { grid-template-columns:1fr; } }
