
:root {
  --yellow: #f8c400;
  --yellow-soft: #ffe073;
  --yellow-deep: #c99700;
  --black: #090909;
  --black-soft: #141414;
  --ink: #181818;
  --muted: #5c5c5c;
  --line: rgba(9, 9, 9, 0.12);
  --paper: #fffdf4;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
  --radius: 26px;
  --header-h: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(248, 196, 0, 0.26), transparent 34rem),
    linear-gradient(180deg, #fff9db 0%, #fffdf4 36%, #ffffff 100%);
  line-height: 1.72;
  overflow-x: hidden;
}

main, section, article, aside, header, footer, nav, .hero-content, .hero-media, .article-card, .toc-card, .layout-shell, .quick-panel, .quick-panel article, .site-footer {
  min-width: 0;
  max-width: 100%;
}


a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow-deep); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 12px;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(9, 9, 9, 0.94);
  border-bottom: 1px solid rgba(248, 196, 0, 0.36);
  backdrop-filter: blur(16px);
}
.navbar {
  width: min(1560px, calc(100% - 28px));
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 176px;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-links a {
  color: #f7f7f7;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 8px 11px;
  border-radius: 999px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-1px);
}
.nav-links .nav-cta {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(248, 196, 0, 0.25);
}
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(248, 196, 0, 0.48);
  border-radius: 12px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--yellow);
  border-radius: 10px;
}

.hero-section {
  width: min(1600px, calc(100% - 32px));
  margin: 28px auto 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 26px;
  min-height: calc(100vh - 132px);
  padding: clamp(28px, 4.6vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(140deg, rgba(9, 9, 9, 0.98) 0%, rgba(22, 22, 22, 0.98) 48%, rgba(72, 57, 0, 0.95) 100%);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -26% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(248, 196, 0, 0.36), transparent 64%);
  pointer-events: none;
}
.hero-content, .hero-media { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(248, 196, 0, 0.38);
  border-radius: 999px;
  color: var(--yellow-soft);
  background: rgba(248, 196, 0, 0.1);
  font-size: clamp(.78rem, 1.5vw, .94rem);
  font-weight: 800;
  letter-spacing: .02em;
}
h1 {
  margin: 0;
  max-width: 1060px;
  font-size: clamp(2.25rem, 5.35vw, 6.25rem);
  line-height: .98;
  letter-spacing: -0.075em;
  color: #fff;
}
.hero-lead {
  max-width: 920px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.9vw, 1.42rem);
  line-height: 1.64;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(248, 196, 0, 0.28);
}
.button-secondary {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.button-primary:hover,
.button-secondary:hover,
.button-primary:focus,
.button-secondary:focus {
  transform: translateY(-2px);
  background: #ffe680;
  color: var(--black);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trust-strip span {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-media {
  padding: 10px;
  transform: perspective(1000px) rotateY(-4deg);
}
.hero-media img {
  width: 100%;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.35));
}

.quick-panel {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.quick-panel article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0,0,0,.06);
}
.quick-panel strong {
  display: block;
  color: var(--black);
  font-size: 1.06rem;
  line-height: 1.2;
}
.quick-panel span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.layout-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.toc-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  max-height: calc(100vh - var(--header-h) - 38px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: var(--black);
  color: #fff;
  border: 1px solid rgba(248, 196, 0, .36);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}
.toc-card p {
  margin: 0 0 12px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .02em;
}
.toc-card a {
  display: block;
  margin: 3px 0;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.34;
}
.toc-card a:hover,
.toc-card a.active {
  background: rgba(248, 196, 0, .15);
  color: var(--yellow-soft);
}
.article-card {
  padding: clamp(22px, 4vw, 58px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-card > *:first-child { margin-top: 0; }
.article-card h2 {
  margin: 64px 0 18px;
  padding: 0 0 14px;
  border-bottom: 4px solid var(--yellow);
  color: var(--black);
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.article-card h3 {
  margin: 34px 0 10px;
  color: var(--black);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.article-card h2,
.article-card h3,
.article-card p,
.article-card li,
.faq-question span,
.table-wrap td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-card p,
.article-card li {
  font-size: clamp(1rem, 1.35vw, 1.11rem);
  color: #2e2e2e;
}
.article-card p { margin: 0 0 18px; }
.article-card ul,
.article-card ol {
  margin: 12px 0 28px;
  padding-left: 22px;
}
.article-card li { margin: 9px 0; }
.article-card strong { color: var(--black); font-weight: 900; }
.article-card hr {
  border: 0;
  height: 1px;
  margin: 48px 0;
  background: linear-gradient(90deg, transparent, rgba(9,9,9,.18), transparent);
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 28px 0 34px;
  border-radius: 22px;
  border: 1px solid rgba(9,9,9,.12);
  box-shadow: 0 16px 42px rgba(0,0,0,.08);
  background: #fff;
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .98rem;
}
th {
  background: var(--black);
  color: var(--yellow-soft);
  text-align: left;
  padding: 16px 18px;
  font-weight: 900;
  line-height: 1.25;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(9,9,9,.08);
  vertical-align: top;
}
tr:nth-child(even) td { background: #fff8d7; }
tr:last-child td { border-bottom: 0; }

.action-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff8d7;
  border: 1px solid rgba(248, 196, 0, .42);
}
.action-step span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--black);
  color: var(--yellow);
  font-size: .82rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.final-cta {
  padding: clamp(20px, 3.5vw, 38px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--black), #2f2600);
  color: #fff !important;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.final-cta strong { color: var(--yellow-soft); }

.faq-section {
  margin-top: 54px;
}
.faq-section h2 {
  margin-top: 0;
}
.faq-item {
  margin: 10px 0;
  border: 1px solid rgba(9,9,9,.11);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  background: #fff;
  color: var(--black);
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.faq-question:hover,
.faq-question:focus {
  background: #fff8d7;
}
.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.site-footer {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 28px;
  border-radius: 26px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-footer p {
  margin: 10px 0 0;
  max-width: 640px;
  color: rgba(255,255,255,.68);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.site-footer a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}
.site-footer a:hover {
  background: var(--yellow);
  color: var(--black);
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { max-width: 740px; margin: 0 auto; transform: none; }
  .quick-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-shell { grid-template-columns: 1fr; }
  .toc-card { position: relative; top: 0; max-height: none; }
  .toc-card nav { columns: 2; column-gap: 18px; }
}

@media (max-width: 820px) {
  body { line-height: 1.65; }
  .navbar { width: calc(100% - 20px); }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(var(--header-h) + 8px);
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(9,9,9,.98);
    border: 1px solid rgba(248,196,0,.3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; text-align: center; }
  .hero-section,
  .quick-panel,
  .layout-shell,
  .site-footer { width: calc(100% - 20px); }
  .hero-section { margin-top: 14px; padding: 26px 18px; border-radius: 26px; overflow: hidden; }
  h1 { letter-spacing: -0.055em; }
  .hero-actions { flex-direction: column; }
  .button-primary, .button-secondary { width: 100%; }
  .quick-panel { grid-template-columns: 1fr; }
  .toc-card nav { columns: 1; }
  .article-card { padding: 22px 14px; border-radius: 22px; overflow: hidden; }
  .article-card h2 { margin-top: 42px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer nav { justify-content: flex-start; }
  .action-step { grid-template-columns: 1fr; }
}


@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin: 22px 0 28px;
  }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .table-wrap table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .table-wrap tr:first-child {
    display: none;
  }
  .table-wrap tr {
    margin: 0 0 14px;
    border: 1px solid rgba(9,9,9,.12);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0,0,0,.06);
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(9,9,9,.08);
    background: #fff;
  }
  .table-wrap td::before {
    content: attr(data-label);
    font-weight: 900;
    color: var(--black);
    line-height: 1.35;
  }
  .table-wrap td:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
