:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1b2733;
  --muted: #5b6b7c;
  --accent: #1d5fd6;
  --accent-dark: #15489f;
  --header-bg: #101f33;
  --footer-bg: #101f33;
  --border: #e2e8f0;
  --max-width: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.site-header {
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: #cfe0ff;
}

.site-nav a {
  color: #c2cddd;
  text-decoration: none;
  margin-left: 1.75rem;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  background: linear-gradient(135deg, #101f33 0%, #1c3a63 100%);
  color: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 1.25rem;
  color: #c2cddd;
  margin: 1rem auto 2rem;
  max-width: 34rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.section {
  padding: 4rem 0;
}

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

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(16, 31, 51, 0.12);
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.prose h1 {
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.site-footer {
  background: var(--footer-bg);
  color: #8fa1b8;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: #8fa1b8;
  text-decoration: none;
  margin-left: 1.5rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.page {
  padding: 3.5rem 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .site-nav a {
    margin: 0 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav a {
    margin: 0 0.75rem;
  }
}
