:root {
  --bg: #06111f;
  --bg-2: #0b1f3a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 223, 126, 0.18);
  --text: #ffffff;
  --muted: #aab7c4;
  --gold: #f7c948;
  --gold-soft: #ffdf7e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1200px;
  --header-height: 76px;
  --focus-ring: 0 0 0 3px rgba(247, 201, 72, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(247, 201, 72, 0.18), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(83, 130, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #06111f 0%, #081629 48%, #06111f 100%);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(82px);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.site-shell::before {
  top: 120px;
  left: -90px;
  background: rgba(247, 201, 72, 0.34);
}

.site-shell::after {
  right: -90px;
  bottom: 120px;
  background: rgba(65, 124, 255, 0.28);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  backdrop-filter: blur(14px);
}

.section-title {
  margin: 14px 0 12px;
  font-size: clamp(1.95rem, 3vw, 3.1rem);
  line-height: 1.1;
}

.section-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.glass,
.card,
.hero-panel,
.toc,
.article,
.faq-item,
.footer-panel,
.cta-band,
.meta-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: #09111d;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: var(--focus-ring);
}

.header-inner {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  width: auto;
  height: 52px;
  max-width: 120px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 18px rgba(247, 201, 72, 0.28);
}

.logo-copy {
  display: grid;
  gap: 2px;
}

.logo-copy strong {
  font-size: 1rem;
}

.logo-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-toggle-text {
  line-height: 1;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 223, 126, 0.28);
  background: rgba(247, 201, 72, 0.1);
  color: var(--gold-soft);
}

.header-nav {
  flex: 1 0 100%;
  display: none;
  padding: 14px;
  border-radius: 20px;
  background: rgba(6, 17, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 101;
}

.header-nav.open {
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-links a:not(.btn).active {
  color: #09111d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
  font-weight: 800;
}

.nav-cta-mobile {
  display: flex;
  width: 100%;
  margin-top: 6px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #09111d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 16px 30px rgba(247, 201, 72, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-external::after {
  content: "↗";
  margin-left: 8px;
  font-size: 0.92em;
  line-height: 1;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero {
  padding: 42px 0 28px;
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 8vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.meta-row,
.mini-grid,
.grid-4,
.guide-grid,
.related-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.meta-panel {
  padding: 18px;
  border-radius: 20px;
}

.meta-panel strong {
  display: block;
  margin-bottom: 4px;
}

.meta-panel span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 14px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(247, 201, 72, 0.14), rgba(255, 255, 255, 0.03) 42%, rgba(64, 119, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.2);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(65, 124, 255, 0.18);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 28px 22px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 223, 126, 0.24);
  background:
    radial-gradient(circle at 50% 12%, rgba(247, 201, 72, 0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(65, 124, 255, 0.16), transparent 34%),
    linear-gradient(165deg, #122a4d 0%, #06111f 52%, #0a1a31 100%);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual-logo {
  width: min(58%, 230px);
  height: auto;
  margin-bottom: 18px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(247, 201, 72, 0.38));
}

.hero-visual-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

.hero-visual-copy {
  margin: 0;
  color: #d5dee8;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.card-nav {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card-nav:hover,
.card-nav:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 223, 126, 0.32);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  outline: none;
}

.card-nav:focus-visible {
  box-shadow: var(--focus-ring), 0 24px 48px rgba(0, 0, 0, 0.32);
}

.card-nav .card-link {
  margin-top: auto;
  padding-top: 14px;
}

.card h3 {
  margin: 16px 0 12px;
  font-size: 1.16rem;
}

.card p,
.article p,
.article li,
.faq-answer,
.footer-copy,
.author-box p {
  color: var(--muted);
}

.icon-chip {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 223, 126, 0.22), rgba(247, 201, 72, 0.08));
  border: 1px solid rgba(255, 223, 126, 0.24);
  color: var(--gold-soft);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
}

.icon-chip--label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 0.94rem;
}

.card-arrow {
  transition: transform 0.18s ease;
}

.card-nav:hover .card-arrow,
.card-nav:focus-visible .card-arrow {
  transform: translateX(4px);
}

.category-nav {
  margin-top: 4px;
}

.content-layout {
  display: grid;
  gap: 22px;
}

.toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 22px;
  border-radius: var(--radius-lg);
}

.toc h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.toc a:hover,
.toc a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.toc a.active {
  background: rgba(247, 201, 72, 0.12);
  color: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding-left: 9px;
  font-weight: 700;
}

.article {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.article h2,
.article h3 {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.article h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  line-height: 1.15;
}

.article h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
}

.article p,
.article ul,
.article ol {
  margin: 0 0 16px;
}

.article ul,
.article ol {
  padding-left: 20px;
}

.highlight-box {
  margin: 24px 0;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 223, 126, 0.2);
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.12), rgba(255, 255, 255, 0.04));
}

.highlight-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
}

.guide-step {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #09111d;
  font-weight: 900;
}

.breadcrumbs {
  padding-top: 18px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--gold-soft);
  font-weight: 700;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(170, 183, 196, 0.56);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 20px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold-soft);
  font-size: 1.15rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 22px 20px;
}

.author-box {
  padding: 24px;
  border-radius: 24px;
}

.author-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.cta-band {
  padding: 28px;
  border-radius: 30px;
  color: #09111d;
  background:
    linear-gradient(135deg, rgba(255, 223, 126, 0.96), rgba(247, 201, 72, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.cta-band h2,
.cta-band p {
  margin: 0;
}

.cta-band p {
  margin-top: 10px;
  color: rgba(9, 17, 29, 0.8);
}

.cta-band .btn-primary {
  background: #09111d;
  color: var(--gold-soft);
  box-shadow: none;
}

.footer-panel {
  margin-top: 36px;
  padding: 34px 24px 120px;
  border-radius: 28px 28px 0 0;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-soft);
}

.footer-copy {
  margin: 14px 0 0;
}

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 24;
  display: none;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  color: #09111d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 900;
  box-shadow: 0 20px 42px rgba(247, 201, 72, 0.25);
}

.floating-cta:hover,
.floating-cta:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: var(--focus-ring), 0 20px 42px rgba(247, 201, 72, 0.25);
}

.sticky-mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(6, 17, 31, 0.96);
  border: 1px solid rgba(255, 223, 126, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.sticky-mobile-cta p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.sticky-mobile-cta .btn {
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 760px) {
  .grid-4,
  .mini-grid,
  .guide-grid,
  .related-grid,
  .info-grid,
  .meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .sticky-mobile-cta {
    left: 50%;
    right: auto;
    width: min(700px, calc(100% - 24px));
    transform: translateX(-50%);
  }
}

@media (min-width: 980px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 18px;
  }

  .nav-toggle {
    display: none;
  }

  .header-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:not(.btn) {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .nav-links a:not(.btn):hover,
  .nav-links a:not(.btn):focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links a:not(.btn).active {
    color: #09111d;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 8px 20px rgba(247, 201, 72, 0.2);
  }

  .nav-cta-mobile {
    display: none;
  }

  .floating-cta {
    display: inline-flex;
  }

  .sticky-mobile-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  }

  .content-layout {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .grid-4,
  .mini-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .meta-row,
  .guide-grid,
  .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-panel {
    padding-bottom: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
