:root {
  --ink: #102126;
  --ink-soft: #31484f;
  --paper: #f6f3eb;
  --paper-deep: #ece7dc;
  --white: #fffdf8;
  --line: rgba(16, 33, 38, 0.14);
  --lime: #d9ff70;
  --mint: #70e0bd;
  --coral: #ff765f;
  --blue: #7ba7ff;
  --shadow: 0 18px 60px rgba(16, 33, 38, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(112, 224, 189, 0.16), transparent 27rem),
    var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(246, 243, 235, 0.88);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(16, 33, 38, 0.06);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: -0.05em;
}

.brand-mark::after {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(217, 255, 112, 0.55);
  border-radius: 50%;
  content: "";
}

.brand-name {
  font-size: 21px;
}

.brand-name small {
  display: block;
  margin-top: -5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 33, 38, 0.18);
}

.button-accent {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transition: transform 0.2s ease;
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(4px);
}

.menu-open .menu-button span {
  background: transparent;
}

.menu-open .menu-button span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-open .menu-button span::after {
  transform: translateY(-2px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  padding: clamp(72px, 9vw, 126px) 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: var(--coral);
  content: "";
}

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

h1,
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 90px);
  letter-spacing: -0.065em;
}

h1 .accent-underline {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

h1 .accent-underline::after {
  position: absolute;
  z-index: -1;
  left: -1%;
  right: -1%;
  bottom: 0.07em;
  height: 0.24em;
  border-radius: 2px;
  background: var(--lime);
  content: "";
  transform: rotate(-1.3deg);
}

.hero-copy > p {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-line span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.radar-card {
  position: relative;
  min-height: 485px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.radar-card::before {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  transform: rotate(10deg);
}

.radar-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 112, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-visual::before,
.radar-visual::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  content: "";
}

.radar-visual::after {
  inset: 34%;
}

.radar-sweep {
  position: absolute;
  inset: 50% 50% 50% 50%;
  width: 42%;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), transparent);
  animation: radar-spin 7s linear infinite;
}

.radar-sweep::before {
  position: absolute;
  top: -4px;
  left: calc(100% - 4px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px var(--lime);
  content: "";
}

.radar-axis,
.radar-axis::after {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.radar-axis::after {
  top: 0;
  left: 0;
  width: 100%;
  transform: rotate(90deg);
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

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

.radar-label,
.radar-note {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.radar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.radar-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.label-1 { top: 19%; left: 8%; }
.label-2 { top: 30%; right: 7%; }
.label-3 { bottom: 24%; left: 10%; }

.radar-note {
  right: 20px;
  bottom: 20px;
  max-width: 185px;
  padding: 16px;
  border-radius: 18px;
}

.radar-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 22px;
}

.radar-note span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.section-dark::before {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 90px solid rgba(217, 255, 112, 0.08);
  border-radius: 50%;
  content: "";
}

.section-white {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.055em;
}

.section-head p {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.66);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 850;
}

.text-link::after {
  content: "↗";
}

.category-grid,
.card-grid,
.tool-grid,
.compare-grid,
.steps-grid,
.reference-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  min-height: 182px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.tool-card:hover,
.compare-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(16, 33, 38, 0.09);
}

.category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 13px;
  background: var(--paper-deep);
  font-size: 19px;
  font-weight: 900;
}

.category-card:nth-child(2) .category-icon,
.category-card:nth-child(5) .category-icon { background: rgba(112, 224, 189, 0.28); }
.category-card:nth-child(3) .category-icon { background: rgba(255, 118, 95, 0.22); }
.category-card:nth-child(4) .category-icon { background: rgba(123, 167, 255, 0.23); }
.category-card:nth-child(6) .category-icon { background: rgba(217, 255, 112, 0.5); }

.category-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.category-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.feature-story,
.article-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.feature-story {
  min-height: 470px;
  padding: 42px;
}

.feature-story::after {
  position: absolute;
  right: -14%;
  bottom: -38%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(217, 255, 112, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(217, 255, 112, 0.035), 0 0 0 108px rgba(217, 255, 112, 0.025);
  content: "";
}

.feature-story .tag,
.article-card .tag {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.feature-story h3 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 94px 0 18px;
  font-size: clamp(32px, 4.4vw, 55px);
  letter-spacing: -0.05em;
}

.feature-story p {
  position: relative;
  z-index: 2;
  max-width: 570px;
  color: rgba(255, 255, 255, 0.66);
}

.article-stack {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}

.article-card {
  padding: 26px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-card h3 {
  margin: 26px 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.article-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tag::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.search-field {
  position: relative;
  margin-left: auto;
}

.search-field input {
  width: min(330px, 72vw);
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  color: var(--ink);
}

.search-field::before {
  position: absolute;
  top: 10px;
  left: 15px;
  color: var(--ink-soft);
  content: "⌕";
  font-size: 21px;
  line-height: 1;
}

.search-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(112, 224, 189, 0.2);
}

.tool-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tool-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card.hidden {
  display: none;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tool-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.tool-card h3 {
  margin: 28px 0 10px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.tool-card > p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tool-meta span {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.result-count {
  margin: -10px 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.compare-grid {
  grid-template-columns: repeat(3, 1fr);
}

.compare-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
}

.versus-logo {
  display: grid;
  min-height: 82px;
  place-items: center;
  border-radius: 16px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.versus-mark {
  font-size: 11px;
  font-weight: 900;
}

.compare-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.compare-card p {
  color: var(--ink-soft);
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(112, 224, 189, 0.3);
  color: var(--ink);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: steps;
}

.step-card {
  position: relative;
  min-height: 245px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: steps;
}

.step-card::after {
  position: absolute;
  right: -10px;
  bottom: -35px;
  color: var(--paper-deep);
  content: "0" counter(steps);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
}

.step-card h3,
.step-card p {
  position: relative;
  z-index: 2;
}

.step-card h3 {
  margin: 44px 0 12px;
  font-size: 22px;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 14px;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  padding: 52px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--lime);
}

.newsletter-panel h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(36px, 4.8vw, 60px);
  letter-spacing: -0.055em;
}

.newsletter-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(16, 33, 38, 0.72);
}

.newsletter-status {
  padding: 24px;
  border: 1px solid rgba(16, 33, 38, 0.16);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.54);
}

.newsletter-status strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.newsletter-status span {
  color: rgba(16, 33, 38, 0.68);
  font-size: 13px;
}

.page-hero {
  padding: 88px 0 58px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 6.7vw, 78px);
}

.page-hero > p,
.page-hero .page-shell > p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 19px;
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-kicker span {
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.calculator-layout > * {
  min-width: 0;
}

.calculator-card,
.info-card,
.policy-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.calculator-card h2,
.info-card h2,
.policy-card h2 {
  margin-bottom: 12px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
}

.form-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(112, 224, 189, 0.2);
}

.calc-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.metric {
  padding: 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}

.metric span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.copy-row {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  margin-top: 16px;
}

.copy-output {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-button {
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.history-line {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.history-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.history-item time {
  color: var(--coral);
  font-weight: 900;
}

.history-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.history-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.policy-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.policy-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-card p,
.policy-card li {
  color: var(--ink-soft);
}

.policy-card ul {
  padding-left: 20px;
}

.reference-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reference-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.reference-card h3 {
  margin: 24px 0 10px;
  font-size: 23px;
}

.reference-card p {
  color: var(--ink-soft);
  font-size: 14px;
}

.reference-card a {
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 68px 0 34px;
  background: #0a171b;
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 50px;
  padding-bottom: 48px;
}

.footer-brand p {
  max-width: 390px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer-column strong {
  display: block;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--coral);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 118, 95, 0.09);
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 1050px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid, .compare-grid, .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.2fr repeat(2, 0.8fr); }
  .footer-column:last-child { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .menu-button { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 4px;
    padding: 18px 20px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px rgba(16, 33, 38, 0.13);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 13px 14px;
    border-radius: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 66px;
  }
  .radar-card { min-height: 420px; }
  .section-head { align-items: start; flex-direction: column; }
  .featured-layout, .newsletter-panel, .calculator-layout { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-shell, .page-shell, .footer-shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { min-height: 68px; }
  .nav-links { top: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  h1 { font-size: 47px; }
  .hero { padding: 56px 0 64px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .radar-card { min-height: 360px; border-radius: 25px; }
  .radar-note { right: 14px; bottom: 14px; }
  .label-2 { top: 25%; right: 4%; }
  .section { padding: 68px 0; }
  .section-tight { padding: 50px 0; }
  .section-head h2 { font-size: 38px; }
  .category-grid, .tool-grid, .compare-grid, .steps-grid, .reference-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 154px; }
  .category-icon { margin-bottom: 20px; }
  .feature-story { min-height: 420px; padding: 26px; }
  .feature-story h3 { margin-top: 72px; font-size: 34px; }
  .filter-bar { align-items: stretch; }
  .search-field { width: 100%; margin-left: 0; order: -1; }
  .search-field input { width: 100%; }
  .newsletter-panel { padding: 30px 24px; border-radius: 24px; }
  .page-hero { padding: 64px 0 42px; }
  .page-hero h1 { font-size: 46px; }
  .calculator-card, .info-card, .policy-card { padding: 24px; }
  .form-grid, .calc-result { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; gap: 7px; }
  .policy-nav { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
