/* ============================================================
   howtogetnetherite.xyz — Nether-themed static stylesheet
   ============================================================ */

/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #0c0810;
  --bg-2: #120b16;
  --panel: #17101b;
  --panel-2: #1d1421;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9dfe4;
  --muted: #a899a1;
  --muted-2: #8c7d85;
  --gold: #f7c948;
  --gold-soft: #ffd95e;
  --gold-deep: #f0a41f;
  --gold-edge: #8a5c07;
  --lava: #ff6b1a;
  --crimson: #e34d5f;
  --teal: #3ec6b1;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --radius: 6px;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -8%, rgba(227, 77, 95, 0.13), transparent 70%),
    radial-gradient(900px 520px at 8% 14%, rgba(255, 107, 26, 0.07), transparent 70%),
    radial-gradient(1000px 700px at 50% 110%, rgba(120, 60, 160, 0.08), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(247, 201, 72, 0.28); color: #fff; }

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: var(--gold); }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

kbd {
  font-family: var(--font-pixel);
  font-size: 0.72em;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 1px 7px;
}

/* Decorative fixed glow layer */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 150, 60, 0.05), transparent 70%);
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-ingot { width: 26px; height: auto; }

.logo-text {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-tld { color: var(--gold); }

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  font-family: var(--font-pixel);
  font-size: 11px;
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--gold); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--crimson);
  margin-bottom: 14px;
}

h1, h2 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.4vw, 52px); }
h2 { font-size: clamp(21px, 3vw, 30px); margin-bottom: 18px; }

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

.grad {
  background: linear-gradient(135deg, #ffe886 0%, var(--gold) 45%, var(--lava) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead, .section-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
}

.section-lead { margin-bottom: 14px; }

.lead strong, .section-lead strong { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 22px 12px;
  border-radius: 4px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-primary {
  color: #2b1c05;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 4px 0 var(--gold-edge);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gold-edge);
}

.btn-ghost {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-copy .lead { margin: 20px 0 30px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.hero-chips li { display: flex; align-items: center; gap: 8px; }

.dot { width: 9px; height: 9px; display: inline-block; }
.dot-gold { background: var(--gold); }
.dot-teal { background: var(--teal); }
.dot-lava { background: var(--lava); }

/* Hero art */
.hero-art {
  position: relative;
  width: min(360px, 78vw);
  margin-inline: auto;
}

.art-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(closest-side, rgba(255, 107, 26, 0.24), rgba(227, 77, 95, 0.10) 55%, transparent 75%);
  z-index: 0;
}

.cube {
  position: relative;
  z-index: 1;
  width: 82%;
  margin-inline: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.55));
  animation: bob 6s ease-in-out infinite;
}

.float-item {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.float-item svg { width: 100%; height: auto; }

.fi-1 { width: 74px; top: -6%; right: -4%; animation: bob 5s ease-in-out infinite 0.6s; }
.fi-2 { width: 60px; bottom: 12%; left: -9%; animation: bob 5.6s ease-in-out infinite 1.4s; }
.fi-3 { width: 50px; bottom: -4%; right: 8%; animation: bob 6.4s ease-in-out infinite 2.1s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Embers */
.ember {
  position: absolute;
  bottom: 6%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  opacity: 0;
  z-index: 0;
  animation: rise 7s linear infinite;
}

.e1 { left: 12%; animation-duration: 6.2s; }
.e2 { left: 30%; width: 4px; height: 4px; background: var(--lava); animation-duration: 8.4s; animation-delay: 1.2s; }
.e3 { left: 48%; animation-duration: 7.1s; animation-delay: 2.6s; }
.e4 { left: 62%; width: 6px; height: 6px; background: var(--lava); animation-duration: 9s; animation-delay: 0.6s; }
.e5 { left: 76%; animation-duration: 6.8s; animation-delay: 3.4s; }
.e6 { left: 88%; width: 4px; height: 4px; background: var(--crimson); animation-duration: 7.8s; animation-delay: 1.9s; }
.e7 { left: 22%; width: 3px; height: 3px; animation-duration: 5.6s; animation-delay: 4.2s; }

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { transform: translateY(-300px) translateX(14px); opacity: 0; }
}

/* ---------- Quick facts ---------- */
.facts {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  padding: 26px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fact { text-align: center; }

.fact-value {
  display: block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 27px);
  color: var(--gold);
  margin-bottom: 4px;
}

.fact-label {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }

.section + .section { border-top: 1px solid var(--line); }

/* ---------- Comparison table ---------- */
.compare-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th, .compare td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

.compare thead th {
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}

.compare tbody th {
  font-weight: 500;
  color: var(--muted);
}

.compare td { font-weight: 600; }

.compare .col-netherite {
  background: rgba(247, 201, 72, 0.06);
  border-left: 1px solid rgba(247, 201, 72, 0.25);
  color: var(--gold);
}

.compare thead .col-netherite { color: var(--gold); }
.compare .col-diamond { color: var(--teal); }

.compare .yes { color: #7ede9a; }
.compare .no { color: var(--crimson); font-weight: 500; }

.table-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 15px;
  max-width: 70ch;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  position: relative;
  display: grid;
  gap: 40px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(247, 201, 72, 0.32) 8%, rgba(247, 201, 72, 0.32) 92%, transparent);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.step-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  background: var(--panel-2);
  border: 2px solid;
  border-color: var(--line-strong) rgba(0, 0, 0, 0.6) rgba(0, 0, 0, 0.6) var(--line-strong);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.step-body {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.step-body > p { color: var(--muted); margin-bottom: 12px; }
.step-body > p:last-child { margin-bottom: 0; }
.step-body p strong, .step-body li strong { color: var(--text); }
.step-body em { color: var(--text); font-style: italic; }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.checklist li {
  padding-left: 28px;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: rgba(247, 201, 72, 0.12);
  border: 2px solid var(--gold);
}

/* Callouts */
.callout {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 4px;
  font-size: 15.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: rgba(247, 201, 72, 0.05);
}

.callout strong { color: var(--text); }

.callout-warn {
  border-left-color: var(--lava);
  background: rgba(255, 107, 26, 0.06);
}

.callout-gold {
  border-left-color: var(--gold);
  background: rgba(247, 201, 72, 0.06);
}

/* ---------- Crafting / smithing panels ---------- */
.craft-panel {
  margin-top: 18px;
  padding: 18px 20px 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.craft-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-auto-rows: 54px;
  gap: 5px;
}

.smith-grid {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-auto-rows: 54px;
  gap: 5px;
}

.slot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #241a24;
  border: 2px solid;
  border-color: #0d080e #3d2e3c #3d2e3c #0d080e;
}

.slot svg { width: 34px; height: 34px; }

.slot-empty { opacity: 0.55; }

.craft-arrow { width: 34px; flex-shrink: 0; }

.slot-result {
  width: 66px;
  height: 66px;
  border-color: #5a4408 #8a6d1a #8a6d1a #5a4408;
  background: #2b2113;
  box-shadow: 0 0 26px rgba(247, 201, 72, 0.22);
}

.slot-result svg { width: 42px; height: 42px; }

.panel-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Uses ---------- */
.uses-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.use-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.use-card:hover {
  border-color: rgba(247, 201, 72, 0.4);
  transform: translateY(-3px);
}

.use-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.use-icon svg { width: 32px; height: 32px; }

.use-card p { color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-list details {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list details[open] { border-color: rgba(247, 201, 72, 0.35); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 16.5px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "-"; }

.faq-body { padding: 0 20px 18px; }

.faq-body p { color: var(--muted); font-size: 15.5px; }
.faq-body strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta { text-align: center; }

.cta-inner { max-width: 720px; }

.cta-line {
  color: var(--muted);
  font-size: 18px;
  margin: 6px 0 28px;
}

.cta-line strong { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  padding: 44px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.footer-brand { max-width: 420px; }

.footer-brand p {
  color: var(--muted-2);
  font-size: 14.5px;
  margin-top: 10px;
}

.footer-nav {
  display: grid;
  gap: 9px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 44px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-art { margin-top: 8px; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }

  .section { padding: 64px 0; }

  .uses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header-inner { flex-direction: column; gap: 6px; padding-block: 10px; }

  .site-nav { gap: 16px; }

  .steps::before { left: 21px; }

  .step { grid-template-columns: 44px 1fr; gap: 16px; }

  .step-num { width: 44px; height: 44px; font-size: 16px; }

  .step-body { padding: 20px 18px; }

  .craft-grid, .smith-grid {
    grid-template-columns: repeat(3, 46px);
    grid-auto-rows: 46px;
  }

  .slot { width: 46px; height: 46px; }
  .slot svg { width: 28px; height: 28px; }

  .slot-result { width: 56px; height: 56px; }
  .slot-result svg { width: 36px; height: 36px; }

  .craft-arrow { width: 26px; }

  .footer-legal { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cube, .float-item, .ember {
    animation: none;
  }

  .ember { display: none; }

  .use-card, .btn { transition: none; }
}
