/* Asgard Rust site theme. Dark navy, Bifrost accents, Russo One headings. */
:root {
  --bg: #0d1330; --bg-deep: #1a2357; --surface: #10173a; --surface-2: #151d47;
  --btn-bg: #10173a; --btn-text: #f2f4ff;
  --text: #f2f4ff; --muted: #9aa4cc; --line: rgba(242,244,255,.12);
  --cyan: #3bd5ff; --violet: #5b6cff; --pink: #c04dff; --red: #ff3b5c; --green: #4dff9a; --gold: #ffe14d;
  --heimdall: #e0a33a; --loki: #2fd072; --thor: #ff3b5c; --odin: #c04dff;
  --head: "Russo One", "Cinzel", Georgia, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn-font: var(--head);
  --rad: 18px;
  --bifrost: conic-gradient(from 210deg, #ff3b5c, #ff9a3b, #ffe14d, #4dff9a, #3bd5ff, #5b6cff, #c04dff, #ff3b5c);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-deep), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* ---------- nav ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13,19,48,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.links a:hover { color: var(--text); background: rgba(242,244,255,.06); text-decoration: none; }
.links a.active { color: var(--text); }
.links a.active::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--bifrost); }
@media (max-width: 640px) {
  .nav { height: 58px; gap: 10px; }
  .brand span { display: none; }
  .links a { padding: 8px 10px; font-size: .95rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 400 .95rem/1 var(--head);
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--surface-2); border-color: rgba(242,244,255,.25); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: .8rem; border-radius: 11px; }
.btn-edge { position: relative; border-color: transparent; background: var(--surface); isolation: isolate; }
.btn-edge::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--bifrost); z-index: -1; }
.btn-edge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); z-index: -1; }
.btn-edge:hover::after { background: var(--surface-2); }
.bf { --rad: 16px; }
.bf > button { font-size: 1rem; }

/* ---------- framed cards (1px Bifrost edge + glow) ---------- */
.frame { position: relative; border-radius: var(--rad); isolation: isolate; }
.frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--bifrost); z-index: -2; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); z-index: -1; }
.frame-glow { box-shadow: 0 0 0 0 transparent; }
.frame-glow .glow { position: absolute; inset: -22px; border-radius: calc(var(--rad) + 22px); background: var(--bifrost); filter: blur(26px); opacity: .10; z-index: -3; pointer-events: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 24px; text-align: center; }
.hero .logo { width: clamp(84px, 14vw, 120px); margin: 0 auto 18px; filter: drop-shadow(0 0 28px rgba(91,108,255,.35)); }
.hero h1 { margin-bottom: 10px; }
.hero .tag { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-size: clamp(.8rem, 1.8vw, 1rem); margin: 0 0 22px; }
.hero .tag b { color: var(--text); font-weight: 400; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.hero .cta .ip { max-width: 100%; }
.ip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(242,244,255,.05); border: 1px dashed var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; color: var(--muted); cursor: pointer; }
.ip:hover { color: var(--text); }
.ip.copied { border-color: var(--green); color: var(--green); }

/* ---------- sections ---------- */
section.block { padding: clamp(28px, 5vw, 56px) 0; scroll-margin-top: 72px; }
[id] { scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--head); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }

/* ---------- verify ---------- */
.verify { padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.verify .steps { display: grid; gap: 10px; margin: 16px 0 20px; padding: 0; list-style: none; counter-reset: s; }
.verify .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; counter-increment: s; }
.verify .steps code { white-space: nowrap; background: rgba(242,244,255,.08); padding: 2px 6px; border-radius: 6px; }
.verify .steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(242,244,255,.06); border: 1px solid var(--line); font-family: var(--head); color: var(--cyan); }
.verify .steps li.done::before { content: "✓"; color: var(--green); border-color: rgba(77,255,154,.4); }
.verify .kit { border-radius: 14px; padding: 18px; background: linear-gradient(160deg, rgba(91,108,255,.18), rgba(192,77,255,.08)); border: 1px solid var(--line); }
.verify .kit h3 { margin-bottom: 8px; }
.verify .kit ul { margin: 0; padding-left: 18px; color: var(--muted); }
.verify .status { font-size: .95rem; margin-top: 12px; }
.verify .status.ok { color: var(--green); }
.verify .status.err { color: var(--red); }
@media (max-width: 800px) { .verify { grid-template-columns: 1fr; } }

/* ---------- ranks ---------- */
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(242,244,255,.06); border: 1px solid var(--line); }
.toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: 500 .9rem var(--body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.rank { display: flex; flex-direction: column; padding: 0; overflow: hidden; --c: var(--cyan); background: var(--surface); border-radius: var(--rad);
  border: 1px solid color-mix(in srgb, var(--c) 75%, transparent); box-shadow: 0 0 44px -12px var(--c), 0 10px 30px -20px #000; }
@supports not (color: color-mix(in srgb, red, blue)) { .rank { border-color: var(--c); } }
.rank .art { position: relative; aspect-ratio: 3/2; background: #0a0f28; }
.rank .art img { width: 100%; height: 100%; object-fit: cover; }
.rank .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rank .name { display: flex; align-items: center; gap: 10px; }
.rank .name img { width: 36px; height: 36px; }
.rank .name h3 { margin: 0; color: var(--c); }
.rank .pitch { color: var(--muted); margin: 0; font-size: .95rem; }
.rank ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.rank ul li { padding-left: 18px; position: relative; }
.rank ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--c); transform: rotate(45deg); }
.rank details { font-size: .9rem; }
.rank details summary { cursor: pointer; color: var(--cyan); list-style: none; }
.rank details summary::-webkit-details-marker { display: none; }
.rank details summary::after { content: " ▸"; }
.rank details[open] summary::after { content: " ▾"; }
.rank details p { margin: 8px 0 0; color: var(--muted); }
.rank .buy { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.rank .price { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); }
.rank .price .amt { font-size: 1.9rem; }
.rank .price .per { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.rank .price .save { margin-left: auto; font: 600 .75rem var(--body); color: var(--green); background: rgba(77,255,154,.1); padding: 4px 8px; border-radius: 8px; }
.rank .bf, .rank .bf > button { width: 100%; }
.rank-heimdall { --c: var(--heimdall); } .rank-loki { --c: var(--loki); } .rank-thor { --c: var(--thor); } .rank-odin { --c: var(--odin); }
.rank.best .art::after { content: "Best value"; position: absolute; top: 12px; left: 12px; font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; background: rgba(13,19,48,.85); border: 1px solid var(--c); color: var(--c); }

/* ---------- points ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pack { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pack .n { font-family: var(--head); font-size: 1.8rem; }
.pack .n small { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display: block; }
.pack .bonus { color: var(--green); font-weight: 600; font-size: .85rem; min-height: 1.3em; }
.pack .bf { margin-top: auto; } .pack .bf > button { width: 100%; }
.once-note { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }

/* ---------- how it works / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact { padding: 18px; border-radius: 14px; background: rgba(242,244,255,.04); border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--head); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin-bottom: 6px; }
.fact p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- info page ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border: 0; padding: 0; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose code { background: rgba(242,244,255,.08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.prose table.kv th { white-space: nowrap; width: 1%; padding-right: 18px; }
@media (max-width: 560px) {
  .prose table.kv tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prose table.kv th, .prose table.kv td { display: block; border: 0; padding: 2px 0; }
  .prose table.ranks-table th:last-child, .prose table.ranks-table td:last-child { white-space: nowrap; }
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a { padding: 8px 12px; border-radius: 10px; background: rgba(242,244,255,.05); border: 1px solid var(--line); color: var(--text); font-size: .9rem; }
.toc a:hover { background: rgba(242,244,255,.1); text-decoration: none; }
.cmd { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .95rem; }
.cmd code { color: var(--cyan); }
@media (max-width: 560px) { .cmd { grid-template-columns: 1fr; gap: 2px 0; } .cmd code { display: block; margin-top: 8px; } }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card time { color: var(--muted); font-size: .85rem; }
.post-card h3 { margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 700; font-size: 1.2rem; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); margin: 0; }
.article { max-width: 72ch; margin-inline: auto; }
.article header { margin-bottom: 28px; }
.article header h1 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article img { border-radius: 12px; }
.article blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid var(--violet); color: var(--muted); }
.article pre { background: #0a0f28; padding: 14px; border-radius: 10px; overflow: auto; }
.article, .prose { overflow-wrap: anywhere; }
.article header h1 { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding: 36px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid b { display: block; font-family: var(--head); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.foot-grid a:not(.brand) { display: block; color: var(--text); padding: 4px 0; font-size: .95rem; }
.foot-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(255,225,77,.08); border: 1px solid rgba(255,225,77,.3); font-size: .92rem; }
.center { text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; max-width: min(92vw, 520px); padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--green); box-shadow: 0 10px 40px rgba(0,0,0,.5); z-index: 90; transition: opacity .25s, transform .25s; font-size: .95rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: var(--gold); } .toast.err { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
