:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #1d2a3a;
  --muted: #5f6f83;
  --line: #d7dee8;
  --brand: #0d4a8b;
  --brand-strong: #093667;
  --accent: #0b6ea8;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(15, 39, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e9eff6 0%, var(--bg) 240px, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: var(--brand);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.92);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font: inherit;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.main-nav .nav-login {
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
}

.main-nav .nav-login:hover,
.main-nav .nav-login:focus-visible {
  color: #fff;
  background: var(--brand-strong);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  color: #10253f;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.08rem;
  color: #32465f;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button {
  display: inline-block;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-strong);
}

.button-secondary {
  color: var(--brand-strong);
  background: #dce8f4;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.hero-card h2 {
  font-size: 1.15rem;
}

.hero-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #2f4259;
}

.proof-strip {
  padding: 0 0 1.25rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-item {
  background: #10345f;
  border: 1px solid #27507f;
  border-radius: var(--radius);
  padding: 1rem;
  color: #e7f0fa;
}

.proof-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.proof-item p {
  margin: 0;
  color: #d2e3f6;
}

.section {
  padding: 3.2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-lead {
  color: #32465f;
  margin: 0.35rem 0 1rem;
}

.section-alt {
  background: #edf3fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.benefit-item h3 {
  margin: 0 0 0.45rem;
}

.benefit-item p {
  margin: 0;
  color: #354b65;
}

.card,
.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3,
.feature-item h3 {
  margin-bottom: 0.45rem;
}

.card p,
.feature-item p {
  margin: 0;
  color: #354b65;
}

.cta {
  background: #123661;
  color: #eaf2fb;
}

.cta h2,
.cta p {
  color: #eaf2fb;
}

.cta .button-primary {
  background: #f5f7fb;
  color: #10345f;
}

.cta .button-primary:hover,
.cta .button-primary:focus-visible {
  background: #ffffff;
}

.cta-note {
  margin-top: 0.9rem;
  color: #10345f;
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
}

.faq-item p {
  margin: 0;
  color: #354b65;
}

.snippet-shell {
  background: #0e2b4f;
  border: 1px solid #2c4f7b;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 420px;
}

.snippet-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  border-right: 1px solid #335983;
  background: #0b2542;
}

.snippet-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.snippet-variants {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-bottom: 1px solid #335983;
  background: #0b2542;
  overflow-x: auto;
}

.snippet-step,
.snippet-variant {
  border: 1px solid #39618e;
  background: #123760;
  color: #d7e7fa;
  border-radius: 9px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.snippet-step {
  text-align: left;
}

.snippet-step:hover,
.snippet-step:focus-visible,
.snippet-variant:hover,
.snippet-variant:focus-visible {
  background: #184878;
}

.snippet-step.is-active,
.snippet-variant.is-active {
  background: #f4f8fd;
  color: #133a64;
  border-color: #f4f8fd;
}

.snippet-panels {
  padding: 0.55rem;
  min-width: 0;
}

.snippet-panel pre {
  margin: 0;
  background: #081c33;
  border: 1px solid #2c4f7b;
  border-radius: 10px;
  padding: 0.95rem;
  overflow-x: auto;
}

.snippet-panel code {
  color: #d8ecff;
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f0f5fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0 0.8rem;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0.25rem 0;
  color: #3e526b;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--brand);
}

.footer-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #3e526b;
}

@media (max-width: 900px) {
  .hero-grid,
  .flow-grid,
  .feature-grid,
  .proof-grid,
  .benefit-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .snippet-shell {
    grid-template-columns: 1fr;
  }

  .snippet-steps {
    border-right: 0;
    border-bottom: 1px solid #335983;
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 4vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    width: min(220px, 75vw);
    padding: 0.6rem;
    display: none;
  }

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

  .main-nav .nav-login {
    text-align: center;
    width: 100%;
  }

  .snippet-variants {
    flex-wrap: wrap;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0;
  }

  .footer-grid {
    padding-top: 1rem;
  }
}
