:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #0f0f0f;
  --panel-soft: #151515;
  --ink: #f8f1d6;
  --muted: #c6b98a;
  --gold: #ffd700;
  --gold-soft: #f0c950;
  --gold-deep: #a97800;
  --line: rgba(255, 215, 0, 0.42);
  --line-soft: rgba(255, 215, 0, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 215, 0, 0.15), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(180, 120, 0, 0.14), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
select {
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffe56d, #d5a400 58%, #7a5200);
  color: #111;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 28px rgba(255, 215, 0, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
}

.top-nav,
.support-strip,
.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav {
  justify-content: flex-end;
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  gap: 24px;
  align-items: start;
}

.hero-copy,
.metal-card,
.black-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 100%;
  padding: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9ch;
  margin: 0 0 16px;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.spot-summary {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0a0a0a;
}

.spot-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.spot-summary span,
.spot-summary p {
  color: var(--muted);
}

.spot-summary p {
  margin: 0;
  font-size: 0.9rem;
}

.spot-summary strong {
  color: var(--gold);
  white-space: nowrap;
}

.metal-card {
  padding: 22px;
}

.klesh-form,
.paydirt-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #111;
  color: var(--gold);
  padding: 8px 12px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.28);
  outline-offset: 2px;
}

.spot-display,
.result-box,
.paydirt-results {
  border: 1px solid #333;
  border-radius: 4px;
  background: #111;
  color: var(--gold);
  padding: 12px;
}

.spot-row {
  display: grid;
  grid-template-columns: auto minmax(112px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.spot-input-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  color: var(--gold);
}

.spot-input-label input {
  min-height: 34px;
}

.spot-display p,
.spot-display small,
.result-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.mini-button,
.gold-button,
.gold-link,
.dark-link {
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mini-button {
  min-height: 34px;
  border: 1px solid var(--gold);
  background: #000;
  color: var(--gold);
  padding: 4px 9px;
  font-size: 0.82rem;
}

.gold-button,
.gold-link {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #090909;
}

.gold-button {
  width: 100%;
  min-height: 44px;
  text-transform: uppercase;
}

.gold-link,
.dark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.dark-link {
  border: 1px solid var(--line);
  background: #000;
  color: var(--gold);
}

.result-box {
  display: block;
  margin-top: 16px;
}

.result-box strong {
  font-size: 1.15rem;
}

.result-box.is-warning strong {
  color: #ffcf6a;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.black-card {
  padding: 22px;
}

.percentage-line {
  display: grid;
  grid-template-columns: minmax(72px, 0.7fr) auto minmax(72px, 0.7fr) minmax(88px, auto);
  gap: 10px;
  align-items: center;
}

.percentage-line span {
  color: var(--muted);
  text-align: center;
}

.percentage-line output {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-weight: 900;
}

.paydirt-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.paydirt-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 800;
}

.paydirt-results strong {
  color: var(--gold);
}

.seo-panel,
.faq-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.92);
  box-shadow: var(--shadow);
}

.seo-panel p,
.faq-panel p {
  color: var(--muted);
}

.seo-panel p {
  max-width: 76ch;
  margin: 0 0 14px;
}

.keyword-list {
  display: grid;
  gap: 8px;
  max-width: 82ch;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.keyword-list li::marker {
  color: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #0a0a0a;
}

.value-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.value-table th,
.value-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

.value-table th {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.value-table td {
  color: var(--ink);
}

.value-table tr:nth-child(even) td {
  background: rgba(255, 215, 0, 0.04);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-grid .seo-panel {
  margin-top: 0;
}

.faq-panel details {
  border-top: 1px solid var(--line-soft);
}

.faq-panel details:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.faq-panel summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-panel p {
  margin: 0 0 16px;
}

.support-strip {
  justify-content: center;
  margin-top: 24px;
  padding: 18px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .tool-grid,
  .guide-grid,
  .paydirt-form {
    grid-template-columns: 1fr;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .metal-card {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1120px);
  }

  .hero-copy,
  .metal-card,
  .black-card,
  .seo-panel,
  .faq-panel {
    padding: 18px;
  }

  h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  .field-grid,
  .spot-row,
  .percentage-line {
    grid-template-columns: 1fr;
  }

  .spot-summary div {
    flex-direction: column;
    gap: 4px;
  }
}
