:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --text: #1f2121;
  --text-muted: #626c6c;
  --border: #e5eaed;
  --primary: #457b9d;
  --primary-hover: #376781;
  --primary-soft: rgba(69, 123, 157, 0.12);
  --secondary: #21808d;
  --secondary-hover: #18636d;
  --secondary-soft: rgba(33, 128, 141, 0.14);
  --shadow-sm: 0 4px 12px rgba(31, 33, 33, 0.05);
  --shadow-md: 0 10px 24px rgba(31, 33, 33, 0.08);
  --shadow-card: 0 14px 40px rgb(29 53 87 / 10%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max: 1100px;
  --font-sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(69, 123, 157, 0.45);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

/* ── Header ───────────────────────────────────────────── */

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

.header-content,
.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.brand,
.site-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.logo-text {
  font-weight: 800;
  color: var(--text);
}

.logo-accent {
  font-weight: 800;
  color: var(--primary);
}

.site-brand__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.site-brand__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 520px;
}

/* ── Nav ──────────────────────────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff !important;
  background: var(--primary);
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* ── Hero (landing) ───────────────────────────────────── */

.hero {
  overflow: hidden;
  padding: 100px 0 88px;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(69, 123, 157, 0.12),
      transparent 30rem
    ),
    linear-gradient(135deg, #fff 0%, #f6f9fc 100%);
}

.hero__card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 72px;
}

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

h1 {
  max-width: 750px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h2 {
  max-width: 720px;
  margin-bottom: 36px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-description {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

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

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

.hero__meta-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.hero__meta-item strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.hero__meta-item span {
  color: var(--text);
  font-weight: 700;
}

.hero-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.hero-card-label {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

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

.hero-card-footer {
  margin: 22px 0 0;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero__card img {
  display: block;
  width: 70%;
  margin: 0 auto;
  border-radius: 30px;
  border: #457b9d solid 2px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
}

/* ── Buttons ──────────────────────────────────────────── */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.button-light {
  flex: 0 0 auto;
  color: var(--text);
  background: #fff;
}

.button-light:hover {
  background: var(--surface-soft);
}

/* ── Sections (landing) ───────────────────────────────── */

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--surface-soft);
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgb(29 53 87 / 5%);
}

.feature-card p,
.text-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.role-label {
  margin: 48px 0 20px;
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--primary-soft);
}

.role-label:first-of-type {
  margin-top: 0;
}

.text-content {
  max-width: 840px;
}

/* ── CTA section ──────────────────────────────────────── */

.cta-section {
  color: #fff;
  background: var(--text);
}

.cta-section h2 {
  margin-bottom: 0;
  color: #fff;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ── Page layout (terms/privacy) ──────────────────────── */

.page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.page-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.page-nav h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--primary);
}

.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-nav li + li {
  margin-top: 10px;
}

.page-nav a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-content {
  min-width: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.content-card + .content-card {
  margin-top: 18px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 1.24rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.content-card p,
.content-card li {
  text-decoration: none;
}

.content-card p {
  margin: 0 0 14px;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 8px;
}

.content-note {
  margin-top: 16px;
  background: var(--secondary-soft);
  border: 1px solid rgba(33, 128, 141, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 32px;
}

.footer-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-content a:hover {
  color: var(--primary);
}

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

.site-footer__block h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.site-footer__block p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer__block a {
  color: var(--secondary);
  text-decoration: none;
}

.site-footer__block a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-nav {
    position: static;
  }

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

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

  .main-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
  }

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

  .main-nav a {
    padding: 10px;
    text-decoration: none;
  }

  .hero {
    padding: 72px 0;
  }

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

  .hero-grid {
    gap: 40px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-light {
    width: 100%;
  }

  .hero__card {
    justify-self: center;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .header-content,
  .site-header__inner,
  .page-layout,
  .site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__card,
  .content-card,
  .page-nav {
    padding: 20px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .site-brand {
    align-items: flex-start;
  }

  .site-brand__title {
    font-size: 0.98rem;
  }

  .site-brand__tagline {
    font-size: 0.86rem;
    max-width: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}
