:root {
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-text: #172033;
  --color-muted: #667085;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-border: #e5e7eb;

  --radius-lg: 24px;
  --radius-md: 16px;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);

  --container-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
    var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.page {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.hero {
  margin-bottom: 2rem;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.content-card {
  padding: 2rem;
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.content-card p {
  margin: 0;
  color: var(--color-muted);
}

.content-card p + p,
.content-card ul + p,
.content-card p + ul {
  margin-top: 1rem;
}

.info-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--color-muted);
}

.info-list strong {
  color: var(--color-text);
}

.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.65);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 700px) {
  .nav {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding-inline: 0.75rem;
  }

  .page {
    padding: 2rem 0;
  }

  .hero,
  .content-card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}