:root {
  --bg: #f5f7fd;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-muted: rgba(239, 244, 255, 0.72);
  --line: #d5def0;
  --ink: #132547;
  --muted: #5c6d89;
  --primary: #2d61f4;
  --primary-strong: #183fb8;
  --primary-soft: rgba(45, 97, 244, 0.1);
  --navy: #0f1d3e;
  --navy-strong: #081127;
  --shadow-soft: 0 18px 48px rgba(17, 33, 71, 0.08);
  --shadow-strong: 0 34px 80px rgba(17, 33, 71, 0.14);
  --radius-sm: 18px;
  --radius: 28px;
  --radius-xl: 36px;
  --max: 1240px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 226, 255, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 236, 255, 0.76), transparent 22%),
    linear-gradient(180deg, #fcfdff, var(--bg));
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding-top: var(--header-height);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(252, 253, 255, 0.88);
  border-bottom: 1px solid rgba(213, 222, 240, 0.65);
  backdrop-filter: blur(18px);
}

.site-header__row {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.brand-wordmark {
  display: inline-grid;
  gap: 2px;
  text-transform: lowercase;
}

.brand-mark {
  width: 44px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5f86ff, #2547c8);
  position: relative;
  box-shadow: 0 18px 36px rgba(45, 97, 244, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
}

.brand-mark::before {
  left: 8px;
}

.brand-mark::after {
  right: 8px;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-links,
.hero-actions,
.footer-links,
.header-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 18px;
  min-width: 0;
}

.nav-links a {
  color: #334566;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links a[aria-current="page"] {
  color: var(--primary-strong);
}

.header-actions {
  gap: 12px;
  justify-content: flex-end;
}

.header-actions__support {
  color: #435472;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.locale-dropdown {
  display: inline-flex;
  align-items: center;
}

.locale-dropdown select {
  min-height: 46px;
  min-width: 120px;
  padding: 0 40px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 37, 71, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.98));
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.dashboard-menu {
  position: relative;
}

.dashboard-menu__trigger {
  gap: 10px;
}

.dashboard-menu__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.dashboard-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 188px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(19, 37, 71, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.dashboard-menu__panel[hidden] {
  display: none;
}

.dashboard-menu__panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}

.dashboard-menu__panel a:hover,
.dashboard-menu__panel a:focus-visible {
  background: var(--surface-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4d82ff);
  box-shadow: 0 18px 34px rgba(45, 97, 244, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(19, 37, 71, 0.12);
}

.button-secondary--soft {
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 37, 71, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before {
  position: absolute;
  inset: -5px 0 auto 0;
}

.nav-toggle__bars::after {
  position: absolute;
  inset: auto 0 -5px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(45, 97, 244, 0.34);
  outline-offset: 3px;
}

.hero-section,
.section {
  padding: 40px 0 72px;
}

.hero-section {
  padding-top: 48px;
}

.hero-grid,
.split-grid,
.partner-grid,
.editorial-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.95fr);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-visual__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preview-card,
.feature-card,
.info-card,
.stack-item,
.cta-panel,
.form-card,
.feature-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.preview-card {
  padding: 24px;
}

.preview-card-spotlight {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.98));
}

.preview-card-inline {
  min-height: 190px;
  background: rgba(255, 255, 255, 0.92);
}

.preview-card-inline--accent {
  background: linear-gradient(180deg, rgba(19, 37, 71, 0.98), rgba(24, 47, 92, 0.98));
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.preview-card-inline--accent p,
.preview-card-inline--accent h2 {
  color: inherit;
}

.preview-copy,
.hero-text,
.section-heading p,
.editorial-copy p,
.feature-card p,
.stack-item p,
.info-card p,
.cta-panel p,
.form-note,
.footer-copy {
  color: var(--muted);
}

.preview-eyebrow,
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--primary);
}

.eyebrow--muted {
  color: #6b7a98;
}

.preview-eyebrow {
  color: #6c86f8;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 6vw, 82px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.6vw, 54px);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.1vw, 28px);
}

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

.trust-strip {
  padding: 8px 0 28px;
}

.trust-strip__inner {
  display: grid;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(19, 37, 71, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.trust-strip__items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip__items span {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.92);
  color: #425372;
  font-size: 14px;
  font-weight: 700;
}

.section-alt {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(213, 222, 240, 0.78);
  border-bottom: 1px solid rgba(213, 222, 240, 0.78);
}

.split-grid,
.partner-grid,
.editorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid--balanced {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading--compact {
  margin-bottom: 0;
}

.editorial-copy {
  max-width: 520px;
}

.related-links,
.breadcrumbs,
.faq-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.related-links {
  margin-top: 22px;
}

.related-links a,
.text-link {
  color: var(--primary-strong);
  font-weight: 700;
}

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

.feature-card,
.stack-item,
.feature-panel,
.cta-panel,
.form-card,
.info-card {
  padding: 28px;
}

.benefit-list,
.check-list,
.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #334566;
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-panel--wide {
  padding: 36px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
  color: #41506a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  color: var(--ink);
  font: inherit;
}

.field-error {
  margin: -4px 0 14px;
  color: #c13f44;
  font-size: 14px;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.field input[aria-invalid="true"] {
  border-color: rgba(193, 63, 68, 0.65);
  background: rgba(255, 246, 247, 0.96);
}

.field-checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.field-checkbox input {
  margin-top: 3px;
}

.success-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eff9f2;
  color: #1f7a37;
  border: 1px solid #cfe8d6;
}

.site-footer {
  margin-top: 56px;
  padding: 40px 0 52px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  background: linear-gradient(180deg, var(--navy), var(--navy-strong));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
}

.footer-brand,
.footer-heading {
  margin: 0 0 10px;
  font-weight: 800;
}

.footer-brand {
  color: #fff;
  font-size: 18px;
}

.footer-heading {
  color: #fff;
}

.footer-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
}

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

.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.article-layout {
  display: grid;
  gap: 26px;
}

.article-lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 900px;
}

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

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  body {
    padding-top: 76px;
  }

  .site-header__row {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(19, 37, 71, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-strong);
    flex-direction: column;
    align-items: stretch;
  }

  body[data-nav-open] .site-navigation {
    display: flex;
  }

  .nav-links,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a,
  .header-actions__support,
  .dashboard-menu__panel a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .header-actions__support:hover,
  .header-actions__support:focus-visible {
    background: var(--surface-muted);
  }

  .dashboard-menu__panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .trust-strip__items,
  .feature-grid,
  .faq-grid,
  .split-grid,
  .partner-grid,
  .editorial-grid,
  .split-grid--balanced,
  .hero-visual__stack,
  .footer-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero-section,
  .section {
    padding: 28px 0 52px;
  }

  .hero-copy,
  .feature-card,
  .feature-panel,
  .cta-panel,
  .form-card,
  .preview-card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(28px, 10vw, 38px);
  }
}
