:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #111827;
  --surface-soft: #171d27;
  --line: #2a3342;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --gold: #d4af37;
  --gold-soft: #f5d98b;
  --ivory: #f5f1e8;
  --red: #b91c1c;
  --radius: 14px;
  --shadow: 0 20px 80px rgb(0 0 0 / 0.35);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgb(212 175 55 / 0.12), transparent 32rem),
    linear-gradient(135deg, #0b0d10 0%, #101722 58%, #07080b 100%);
  color: var(--text);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  background: var(--gold);
  color: #111;
  padding: 0.8rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(11 13 16 / 0.86);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero,
.panel,
.section,
.tools,
.stats,
.site-footer,
.breadcrumb,
.final-cta {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.site-nav,
.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0d10;
}

.site-nav {
  gap: 0.35rem;
}

.site-nav a,
.nav-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgb(212 175 55 / 0.45);
  color: var(--gold-soft);
  background: rgb(212 175 55 / 0.09);
}

.nav-toggle {
  display: none;
  background: transparent;
}

.hero {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero:not(:has(.hero-media)) {
  min-height: auto;
  display: block;
  padding-top: 3rem;
}

.kicker,
.section-number {
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero:not(:has(.hero-media)) h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
}

.lede {
  max-width: 61ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.notice {
  max-width: 68ch;
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgb(212 175 55 / 0.4);
  padding: 0.75rem 1.08rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--gold);
  color: #0b0d10;
}

.button.secondary {
  background: rgb(245 241 232 / 0.08);
  color: var(--ivory);
}

.hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: var(--shadow);
}

.breadcrumb {
  padding-top: 1.5rem;
  color: var(--soft);
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.panel,
.tools,
.section,
.final-cta {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  background: rgb(17 24 39 / 0.86);
  box-shadow: 0 12px 42px rgb(0 0 0 / 0.16);
}

.section {
  background: rgb(11 13 16 / 0.58);
}

.section-inner {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-head p,
.section p,
.panel p,
.tool-card p,
.final-cta p {
  color: var(--muted);
  line-height: 1.68;
}

.path-grid,
.guide-grid,
.related-grid,
.source-list,
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-grid a,
.related-grid a,
.source-list a,
.guide-grid article,
.tool-card,
.stats div {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(245 241 232 / 0.045);
  padding: 1rem;
  text-decoration: none;
}

.path-grid span,
.related-grid span,
.source-list span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
}

.stats strong {
  display: block;
  color: var(--gold-soft);
  font-size: 1.7rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

label {
  color: var(--ivory);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: #0b0d10;
}

.tool-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgb(212 175 55 / 0.1);
  color: var(--ivory);
}

.faq details {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ivory);
  font-weight: 900;
}

.final-cta {
  margin-bottom: 2rem;
  text-align: center;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    padding: 1rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 16px;
    background: #0b0d10;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .hero:not(:has(.hero-media)),
  .path-grid,
  .tools,
  .guide-grid,
  .related-grid,
  .source-list,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
  }

  .site-footer,
  .section-inner {
    display: block;
  }
}
