:root {
  --bg: #06101b;
  --card: rgba(10, 23, 39, 0.92);
  --card-soft: rgba(12, 27, 46, 0.82);
  --line: rgba(139, 171, 214, 0.16);
  --text: #f4f8ff;
  --muted: #99acc8;
  --accent: #56f0a4;
  --accent-2: #a9ffd2;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(41, 142, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(86, 240, 164, 0.14), transparent 26%),
    linear-gradient(180deg, #050d17 0%, #081321 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 31, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.compact-header {
  max-width: 1040px;
  margin: 0 auto;
}

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

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.top-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.header-actions,
.cta-actions,
.calculator-actions,
.inline-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #05121d;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 16px 40px rgba(86, 240, 164, 0.22);
  border: 0;
}

.secondary-button,
.ghost-button {
  color: var(--text);
  border: 1px solid rgba(139, 171, 214, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button {
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: stretch;
  padding: 52px 0 24px;
}

.simple-hero,
.quick-points,
.trust-line,
.seo-section,
.platform-hub,
.cta-banner,
.site-footer {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy,
.calculator-card,
.quick-card,
.cta-banner,
.article-card,
.seo-copy,
.seo-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(12, 26, 44, 0.92), rgba(8, 18, 31, 0.96));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(86, 240, 164, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 26, 44, 0.92), rgba(8, 18, 31, 0.96));
}

.hero-copy h1,
.calculator-head h2,
.cta-banner h2,
.article-card h1,
.article-card h2,
.seo-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 0.96;
  max-width: 13ch;
}

.hero-text,
.calculator-head p,
.quick-card p,
.cta-banner p,
.article-card p,
.seo-copy p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-points span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 171, 214, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.94rem;
}

.calculator-card {
  padding: 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at top right, rgba(86, 240, 164, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(11, 25, 42, 0.96), rgba(7, 17, 30, 0.98));
}

.simple-calculator {
  max-width: none;
  width: 100%;
  justify-self: stretch;
  justify-content: center;
}

.calculator-head p {
  margin: 10px 0 0;
}

.calculator-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(139, 171, 214, 0.18);
  border-radius: 16px;
  background: rgba(4, 12, 23, 0.76);
  color: var(--text);
  font: inherit;
  outline: none;
}

.field input:focus {
  border-color: rgba(86, 240, 164, 0.6);
  box-shadow: 0 0 0 3px rgba(86, 240, 164, 0.12);
}

.calc-submit {
  width: 100%;
}

.calc-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(139, 171, 214, 0.12);
  background: rgba(4, 12, 23, 0.68);
}

.calc-result.is-hidden {
  display: none;
}

.calc-total {
  display: grid;
  gap: 6px;
}

.calc-total span {
  color: var(--muted);
  font-size: 0.92rem;
}

.calc-total strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.calc-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.calc-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 171, 214, 0.1);
}

.calc-lines span,
.calc-note {
  color: var(--muted);
}

.calc-note {
  margin: 16px 0 0;
  line-height: 1.6;
  font-size: 0.94rem;
}

.calculator-actions {
  margin-top: 16px;
}

.trust-line {
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.trust-line span::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.trust-line span:first-child::before {
  content: "";
  margin-right: 0;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.compact-points {
  margin-top: 6px;
}

.quick-card {
  padding: 24px;
}

.quick-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.seo-section {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.seo-copy,
.seo-link-card {
  border-radius: var(--radius-lg);
}

.seo-copy {
  padding: 26px;
  height: 100%;
}

.platform-hub {
  margin-top: 24px;
  padding: 28px;
}

.seo-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.seo-links {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.seo-link-card {
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}

.seo-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 240, 164, 0.34);
}

.seo-link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.seo-link-card span {
  color: var(--muted);
  line-height: 1.62;
}

.cta-banner {
  margin-top: 24px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at right center, rgba(86, 240, 164, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 26, 44, 0.92), rgba(8, 18, 31, 0.96));
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.compact-cta p {
  max-width: 560px;
}

.compact-cta > div:first-child {
  flex: 1;
  min-width: 0;
}

.compact-cta .cta-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.site-footer {
  margin-top: 26px;
  padding: 8px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.inner-page .site-header {
  position: static;
  margin-bottom: 28px;
}

.inner-page .header-actions {
  flex-wrap: nowrap;
}

.article-layout {
  display: flex;
  justify-content: center;
}

.article-card {
  width: min(100%, 860px);
  padding: 32px;
}

.article-card h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1;
}

.article-card h2 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 171, 214, 0.12);
  font-size: 1.4rem;
}

.article-card > p,
.article-card > ul,
.article-card > ol {
  max-width: 72ch;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.fact-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.fact-card,
.guide-link {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.fact-card strong,
.guide-link strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.fact-card span,
.guide-link span {
  color: var(--muted);
  line-height: 1.6;
}

.guide-link {
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.guide-link:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 240, 164, 0.34);
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(86, 240, 164, 0.07);
  color: var(--muted);
  line-height: 1.7;
}

.notice strong {
  color: var(--text);
}

.article-card table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  color: var(--muted);
}

.article-card th,
.article-card td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-card th {
  color: var(--text);
}

.lead {
  margin-top: 16px;
  font-size: 1.08rem;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-card details {
  border-top: 1px solid rgba(139, 171, 214, 0.12);
  padding: 18px 0;
}

.faq-card details:first-of-type {
  margin-top: 20px;
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-card summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-card details[open] summary::after {
  content: "−";
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.inline-cta {
  margin-top: 24px;
}

.article-card .inline-cta + h2 {
  margin-top: 22px;
}

.inner-footer {
  width: min(100%, 860px);
  margin-top: 28px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.top-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

@media (max-width: 980px) {
  .hero,
  .quick-points,
  .seo-section,
  .cta-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .seo-links {
    grid-template-rows: none;
  }

  .compact-cta .cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .compact-cta .cta-actions a {
    width: 100%;
  }

  .top-nav {
    display: none;
  }

  .inner-page .site-header {
    flex-wrap: wrap;
  }

  .inner-page .top-nav {
    display: flex;
    order: 3;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 171, 214, 0.12);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .inner-page .top-nav::-webkit-scrollbar {
    display: none;
  }

  .inner-page .top-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    border-radius: 26px;
    padding: 14px;
  }

  .brand {
    align-self: center;
  }

  .header-actions,
  .calculator-actions,
  .cta-actions,
  .inline-cta {
    width: 100%;
  }

  .header-actions {
    width: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .inner-page .top-nav {
    grid-column: 1 / -1;
  }

  .calculator-actions a,
  .cta-actions a,
  .inline-cta a,
  .calc-submit {
    width: 100%;
  }

  .header-actions a {
    width: auto;
    min-height: 48px;
    padding: 12px 14px;
    text-align: center;
  }

  .fact-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    overflow-x: hidden;
  }

  .article-card table {
    font-size: 0.9rem;
  }

  .compact-cta .cta-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-copy,
  .calculator-card,
  .quick-card,
  .cta-banner,
  .article-card,
  .seo-copy,
  .seo-link-card {
    padding: 22px;
  }

  .hero-copy h1,
  .calculator-head h2,
  .cta-banner h2,
  .article-card h1,
  .seo-copy h2 {
    font-size: 2.2rem;
  }

  .quick-points {
    grid-template-columns: 1fr;
  }

  .calc-lines div {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-line {
    justify-content: flex-start;
    padding: 0;
  }

  .trust-line span::before {
    content: "";
    margin-right: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
