:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: rgba(13, 21, 39, .88);
  --line: rgba(139, 180, 255, .19);
  --text: #d8e2f3;
  --muted: #a5b2c8;
  --white: #f7fbff;
  --cyan: #44e5ff;
  --blue: #83baff;
  --green: #74f0b0;
  --gold: #ffce68;
  --purple: #d5a0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 0%, #10547a44, transparent 38rem),
    radial-gradient(ellipse at 90% 20%, #652d9e33, transparent 34rem),
    var(--bg);
  font: 16px/1.7 Inter, "Segoe UI", Arial, sans-serif;
}
a { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  color: #101828;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.site-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 11px max(18px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: #080d1aeb;
  backdrop-filter: blur(18px);
  white-space: nowrap;
}
.site-nav::-webkit-scrollbar { height: 5px; }
.site-nav::-webkit-scrollbar-thumb { border-radius: 99px; background: #44e5ff44; }
.site-nav a {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c5d6f1;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  transform: translateY(-1px);
  border-color: #44e5ff66;
  background: #44e5ff12;
  color: var(--cyan);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 10vw, 120px) 22px 72px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #061022d9, #0c1834a8 55%, #100d24db), url("web.jpg") center 42% / cover;
  text-align: center;
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border: 1px solid #44e5ff20;
  border-radius: 50%;
  content: "";
  animation: orbit 18s linear infinite;
}
.hero::before { top: -20rem; left: -8rem; box-shadow: 0 0 100px #44e5ff12; }
.hero::after { right: -12rem; bottom: -23rem; border-color: #d5a0ff22; animation-direction: reverse; }
.hero-inner { max-width: 900px; margin: auto; }
.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid #44e5ff55;
  border-radius: 999px;
  background: #071629cb;
  color: var(--cyan);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 20px 0 12px;
  color: var(--white);
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  letter-spacing: -.055em;
  line-height: .98;
  text-shadow: 0 8px 42px #000;
}
.hero h1 span { color: var(--cyan); text-shadow: 0 0 35px #24caff7a; }
.hero p { max-width: 740px; margin: 0 auto; color: #e0ebfb; font-size: clamp(1rem, 2vw, 1.16rem); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 25px; }
.hero-facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #081121d9; color: var(--muted); font-size: .83rem; }
.hero-facts strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #44e5ff77;
  border-radius: 10px;
  background: linear-gradient(135deg, #0c718d, #155aa9);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px #006aff2a;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-3px); filter: brightness(1.15); box-shadow: 0 14px 38px #006aff48; }
.button.secondary { border-color: #d5a0ff66; background: #141b30db; }
main { width: min(1180px, 100% - 32px); margin: 30px auto 70px; }
.section-heading { margin: 0 0 18px; }
.section-heading h2 { margin: 0; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card, .panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #111d33ed, #0a1121f2);
  box-shadow: 0 18px 48px #0003;
}
.card { transition: transform .24s, border-color .24s, box-shadow .24s; }
.card:hover { transform: translateY(-5px); border-color: #44e5ff60; box-shadow: 0 22px 55px #0006, 0 0 30px #44e5ff0c; }
.card h2, .card h3, .panel h2, .panel h3 { margin: 0 0 8px; color: var(--white); line-height: 1.25; }
.card p, .panel p { margin: 8px 0; }
.icon { margin-bottom: 10px; font-size: 1.8rem; }
.muted { color: var(--muted); }
.tag { display: inline-flex; margin: 4px 5px 4px 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-size: .77rem; font-weight: 750; }
.callout { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 11px; background: #101d33d9; }
.callout.warn { border-left-color: var(--gold); }
.callout.good { border-left-color: var(--green); }
.callout strong { color: var(--white); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: #080f1edb; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #192640; color: var(--cyan); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
code, pre {
  border: 1px solid #44e5ff30;
  border-radius: 7px;
  background: #36d4e10d;
  color: var(--cyan);
  font: .9em/1.6 Consolas, "Courier New", monospace;
}
code { padding: 2px 6px; }
pre { overflow-x: auto; padding: 16px; }
.page-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.page-links a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: .2s; }
.page-links a:hover { border-color: var(--cyan); background: #44e5ff10; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
html:not(.js-ready) .reveal { opacity: 1; transform: none; }
section[id] { scroll-margin-top: 78px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; }
.copy-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #16233b; color: var(--text); cursor: pointer; }
.copy-button:hover { border-color: var(--cyan); color: var(--cyan); }
footer { padding: 28px 18px 42px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .86rem; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .site-nav { gap: 3px; }
  .site-nav a { padding: 6px 9px; font-size: .78rem; }
  .hero { padding: 48px 16px 54px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  main { width: min(100% - 22px, 1180px); margin-top: 18px; }
  .card, .panel { padding: 18px; }
  .hero-facts { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html.js-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* Shared finishing layer: consistent spacing, clearer hierarchy, and calmer motion. */
:root {
  --bg: #080d18;
  --panel: #101a2b;
  --line: #263750;
  --text: #dce6f3;
  --muted: #a5b5ca;
  --white: #f7faff;
  --cyan: #62d9e8;
  --blue: #92bcff;
  --green: #8de0b5;
  --gold: #ffd37c;
  --purple: #c8a9ff;
}

body {
  background:
    radial-gradient(ellipse at 8% 0%, #17405c40, transparent 42rem),
    radial-gradient(ellipse at 95% 30%, #47316926, transparent 38rem),
    var(--bg);
  letter-spacing: .005em;
}

.site-nav {
  gap: 5px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-color: #27364b;
  background: #080d18f2;
  box-shadow: 0 8px 28px #0002;
}

.site-nav a {
  border-radius: 999px;
  color: #d0dced;
  font-size: .82rem;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  border-color: #62d9e866;
  background: #62d9e812;
  color: #8cecf5;
}

.hero {
  min-height: 330px;
  display: grid;
  align-items: center;
  padding-top: clamp(56px, 8vw, 94px);
  padding-bottom: clamp(50px, 7vw, 82px);
  border-bottom-color: #2b4059;
  background:
    linear-gradient(115deg, #07101deF, #0b1729d9 58%, #101022e8),
    url("web.jpg") center 42% / cover;
}

.hero-inner { max-width: 960px; }
.eyebrow { letter-spacing: .1em; }
.hero h1 { letter-spacing: -.045em; }
.hero p { line-height: 1.75; }

main {
  width: min(1160px, 100% - 36px);
  margin-top: 28px;
}

main > .panel, main > .page-links { margin-bottom: 20px; }
.panel, .card {
  border-color: #263750;
  background: linear-gradient(145deg, #111d30f5, #0c1422f7);
  box-shadow: 0 16px 42px #00000025;
}

.panel { padding: clamp(20px, 3vw, 30px); }
.card { padding: 22px; }
.card:hover {
  border-color: #62d9e855;
  box-shadow: 0 18px 44px #0004, 0 0 24px #62d9e80b;
}

.section-heading { max-width: 880px; margin-bottom: 22px; }
.section-heading h2 { letter-spacing: -.025em; }
.section-heading p { line-height: 1.7; }
.card h3, .panel h3 { letter-spacing: -.01em; }
.callout { border-color: #2c405b; background: #121f32; line-height: 1.7; }
.callout.warn { border-left-color: var(--gold); }

.table-wrap { border-color: #2b3c54; }
table { min-width: 680px; background: #0b1422; }
th, td { padding: 13px 15px; }
th { background: #17263b; }
tbody tr:nth-child(even) { background: #ffffff05; }

pre {
  border-color: #263a55;
  background: #080f1c;
  line-height: 1.75;
}
code { overflow-wrap: anywhere; }
footer { border-color: #263750; }
.page-links a { border-color: #2b3c54; color: #c7dcf8; }
.page-links a:hover { border-color: var(--cyan); color: var(--cyan); }

.rank-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.rank-card { border-top: 3px solid var(--rank-color, var(--cyan)); }
.rank-card h3 { color: var(--rank-color, var(--cyan)); }
.rank-price { display: block; margin: 8px 0; color: var(--white); font-size: 1.2rem; font-weight: 850; }
.rank-meta { color: var(--muted); font-size: .88rem; }
.rank-tier-iron { --rank-color: #aeb8c5; }
.rank-tier-gold { --rank-color: #ffc15e; }
.rank-tier-diamond { --rank-color: #4fdce1; }
.rank-tier-emerald { --rank-color: #64df85; }
.rank-tier-netherite { --rank-color: #c1a6e8; }
.rank-tier-amethyst { --rank-color: #b99aff; }

@media (max-width: 640px) {
  .site-nav { padding-left: 11px; padding-right: 11px; }
  main { width: min(100% - 22px, 1160px); }
  main > .panel, main > .page-links { margin-bottom: 14px; }
  .hero { min-height: 270px; }
  table { min-width: 600px; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #17202c; background: #fff; }
  .site-nav, .hero-actions, .copy-button { display: none; }
  .hero { min-height: 0; padding: 24px; color: #17202c; background: #fff; }
  .hero h1, .hero p, .section-heading h2, .card h3, .panel h3 { color: #17202c; text-shadow: none; }
  main { width: 100%; margin: 0; }
  .panel, .card { break-inside: avoid; border-color: #bbc4ce; color: #17202c; background: #fff; box-shadow: none; }
  a { color: #124f86; }
}
