:root {
  --ink: #07142f;
  --muted: #647184;
  --line: #e5eaf2;
  --soft: #f7f9fc;
  --white: #ffffff;
  --blue: #061f63;
  --blue-2: #0b3bb3;
  --orange: #ff6b00;
  --orange-2: #ff8a1f;
  --purple: #5a28d6;
  --green: #0f766e;
  --radius: 10px;
  --shadow: 0 22px 70px rgba(7, 20, 47, 0.12);
  --shadow-soft: 0 12px 34px rgba(7, 20, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(230, 234, 240, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 76px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.brand-logo {
  width: 218px;
  max-width: 44vw;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple) 54%, var(--orange));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 950;
}

.brand-word {
  display: grid;
  line-height: 1.05;
}

.brand-word strong {
  font-size: 20px;
}

.brand-word span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  min-width: 0;
}

.nav-links a {
  border-radius: var(--radius);
  padding: 9px 9px;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf3ff;
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 16px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.btn.orange {
  background: linear-gradient(135deg, var(--orange), #ef3f19);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.22);
}

.btn.ghost {
  background: #eef3fb;
  color: var(--ink);
}

.hero {
  min-height: clamp(520px, calc(100svh - 118px), 640px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 20, 47, 0.88), rgba(6, 31, 99, 0.72), rgba(255, 107, 0, 0.28)),
    url("https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.hero-inner,
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px 22px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: var(--radius);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow.dark {
  background: #eef2f7;
  color: var(--blue);
}

.legal-page {
  background: var(--soft);
  min-height: calc(100vh - 72px);
}

.legal-inner {
  max-width: 900px;
}

.legal-inner h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-inner h2 {
  margin: 30px 0 8px;
  font-size: 22px;
}

.legal-inner p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.legal-inner a {
  color: var(--blue-2);
  font-weight: 900;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

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

.hero h1,
.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}

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

.hero-panel {
  margin-top: 34px;
  max-width: 850px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
}

.section {
  background: var(--white);
}

.section.soft {
  background: linear-gradient(180deg, #f7f9fc, #eef3fb);
}

.section-title {
  margin: 0 0 22px;
  max-width: 760px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
}

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

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

.card,
.metric-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card.feature {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #fff3e8;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

.card p,
.metric-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.card a {
  color: var(--blue-2);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--blue-2);
  font-weight: 900;
}

.legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.category-card {
  position: relative;
  width: 100%;
  min-height: 184px;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius);
  border: 0;
  padding: 16px;
  display: grid;
  align-content: end;
  background: var(--blue);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.category-card[aria-pressed="true"] {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 47, 0.08), rgba(7, 20, 47, 0.78));
  z-index: 1;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.category-card strong,
.category-card span {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.category-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 22px;
  box-shadow: var(--shadow);
}

.category-detail h3 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.category-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-hero {
  min-height: clamp(430px, calc(100svh - 138px), 560px);
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 20, 47, 0.9), rgba(6, 31, 99, 0.62), rgba(255, 107, 0, 0.18)),
    var(--page-image);
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: step;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
}

.step::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 950;
}

.step h3 {
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.form-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field label {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd7e3;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.site-footer {
  background: #07142f;
  color: var(--white);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.toast {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 360px;
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.toast.show {
  display: block;
}

@media (max-width: 880px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar,
  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .brand-logo {
    width: 188px;
    max-width: 72vw;
    height: 54px;
  }

  .hero-panel,
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .page-hero {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .legal-page {
    min-height: 100svh;
  }

  .legal-inner {
    width: 100%;
    padding: 28px 18px 42px;
  }

  .legal-inner h1 {
    margin-top: 12px;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
  }

  .legal-inner h2 {
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.25;
  }

  .legal-inner p {
    font-size: 15px;
    line-height: 1.6;
  }

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

  .footer-inner {
    padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
}

@media (max-width: 420px) {
  .nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    width: 164px;
    max-width: 78vw;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
