:root {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #163247;
  --muted: #5a7487;
  --line: rgba(22, 50, 71, 0.1);
  --primary: #0e85b7;
  --primary-dark: #0a6d95;
  --secondary: #1fbf9f;
  --accent: #ffd978;
  --success: #0f8b6a;
  --shadow: 0 18px 50px rgba(19, 61, 90, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 191, 159, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 133, 183, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #eef7fb 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 252, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

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

.brand strong {
  display: block;
  font-size: 1rem;
}

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

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(22, 50, 71, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(19, 61, 90, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--text);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle.is-open span {
  opacity: 1;
}

.nav a,
.footer-links a,
.text-link,
.side-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav a:hover,
.footer-links a:hover,
.text-link:hover,
.side-link:hover {
  color: var(--primary);
}

.nav a.active,
.nav a[aria-current="page"],
.nav a[aria-current="location"] {
  color: var(--primary-dark);
  background: rgba(14, 133, 183, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 133, 183, 0.18);
}

.hero {
  padding: 62px 0 28px;
}

.hero-grid,
.section-grid,
.faq-grid,
.footer-grid,
.two-col-grid,
.article-layout {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy h1,
.section-head h2,
.legal-card h1,
.article-card h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.02;
  max-width: 12ch;
}

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

.lead {
  margin: 20px 0 0;
  max-width: 66ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 133, 183, 0.24);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #16a98d 100%);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid rgba(22, 50, 71, 0.08);
}

.button-block {
  width: 100%;
}

.hero-points,
.stats-grid,
.feature-grid,
.guide-grid,
.method-grid,
.article-grid,
.trust-strip,
.use-case-list {
  display: grid;
  gap: 16px;
}

.hero-points,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

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

.guide-grid,
.method-grid,
.article-grid,
.trust-strip,
.use-case-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.point-card,
.stat-card,
.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.point-card,
.stat-card,
.feature-card,
.guide-card,
.method-card,
.insight-card,
.prose-card,
.side-card,
.article-card,
.trust-strip,
.legal-card,
.faq-card,
.table-card,
.chart-card,
.form-card {
  padding: 28px;
}

.point-card strong,
.stat-card strong {
  display: block;
  font-size: 1.12rem;
}

.point-card span,
.stat-card span,
.assumption-box p,
.section-head p,
.faq-card p,
.site-footer p,
.legal-card p,
.legal-card li,
.feature-card p,
.guide-card p,
.method-grid p,
.prose-card p,
.article-card p,
.side-card p,
.trust-strip p,
.use-case-list p,
.insight-card p {
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 120, 0.38), transparent 62%);
  filter: blur(8px);
  z-index: -1;
}

.trust-section,
.feature-section,
.difference-section,
.calculator-section,
.table-section,
.guide-section,
.faq-section,
.legal-main {
  padding: 26px 0 70px;
}

.center-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 22px;
}

.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.trust-strip strong,
.feature-card h3,
.guide-card h3,
.method-grid strong,
.prose-card h2,
.article-card h2,
.insight-card strong,
.side-card h2 {
  display: block;
  margin: 0 0 8px;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(14, 133, 183, 0.09), rgba(31, 191, 159, 0.12));
}

.two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list {
  margin: 0;
  padding-left: 18px;
}

.check-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.soft-accent {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255, 248, 228, 0.88) 100%);
}

.section-grid {
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: start;
}

.form-card,
.table-card,
.chart-card,
.legal-card,
.article-card,
.method-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.calculator-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.calculator-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.calculator-form span {
  font-size: 0.96rem;
}

input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.9);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(14, 133, 183, 0.18);
  border-color: rgba(14, 133, 183, 0.35);
}

.assumption-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 133, 183, 0.08), rgba(31, 191, 159, 0.12));
}

.muted-box {
  background: rgba(247, 251, 255, 0.92);
}

.assumption-box strong {
  display: block;
  margin-bottom: 8px;
}

.results-column {
  display: grid;
  gap: 20px;
}

.stat-card .value {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.insight-card {
  background: linear-gradient(135deg, rgba(255, 217, 120, 0.18), rgba(31, 191, 159, 0.14));
}

.insight-card p {
  margin: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.chart {
  min-height: 330px;
}

.chart svg {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(22, 50, 71, 0.08);
}

th {
  font-size: 0.9rem;
  color: var(--muted);
}

tbody tr:hover {
  background: rgba(14, 133, 183, 0.03);
}

.positive {
  color: var(--success);
  font-weight: 700;
}

.faq-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-card h3,
.legal-card h2 {
  margin: 0 0 8px;
}

.guide-card a {
  color: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}

.article-page .site-header,
.legal-page .site-header {
  position: relative;
}

.article-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.article-card h2 {
  margin-top: 30px;
}

.article-card h2:first-of-type {
  margin-top: 18px;
}

.article-card strong,
.side-card strong {
  color: var(--text);
}

.side-card {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(238,248,253,0.95) 100%);
}

.side-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 50, 71, 0.08);
}

.mini-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
}

.legal-card,
.article-card {
  max-width: 900px;
}

.site-footer {
  padding: 0 0 42px;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 24px 0 0;
  border-top: 1px solid rgba(22, 50, 71, 0.08);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-grid,
  .faq-grid,
  .footer-grid,
  .two-col-grid,
  .article-layout,
  .guide-grid,
  .method-grid,
  .article-grid,
  .trust-strip,
  .use-case-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .stats-grid,
  .hero-points {
    grid-template-columns: 1fr 1fr;
  }

  .side-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid rgba(22, 50, 71, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(19, 61, 90, 0.12);
  }

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

  .nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(22, 50, 71, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 32px;
  }

  .point-card,
  .stat-card,
  .feature-card,
  .guide-card,
  .method-card,
  .insight-card,
  .prose-card,
  .side-card,
  .article-card,
  .trust-strip,
  .legal-card,
  .faq-card,
  .table-card,
  .chart-card,
  .form-card {
    padding: 20px;
  }

  .stats-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }
}
