:root {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-alt: #efe9dd;
  --text: #1c1b1a;
  --muted: #5b6472;
  --primary: #0f766e;
  --primary-strong: #0b5d57;
  --accent: #f59e0b;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.6);
  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1120px;
}

body[data-theme="dark"] {
  --bg: #0b1117;
  --surface: #111827;
  --surface-alt: #0f172a;
  --text: #f1f5f9;
  --muted: #a3b0c2;
  --primary: #2dd4bf;
  --primary-strong: #14b8a6;
  --accent: #fbbf24;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.2;
}

p {
  color: var(--muted);
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 12px 0 16px;
}

h3 {
  margin: 0 0 10px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 999px;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 80px 0;
}

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

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--primary-strong);
  font-weight: 600;
}

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

.hero {
  padding: 90px 0 70px;
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.25), rgba(15, 23, 42, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-logo {
  width: 84px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.6rem, 3vw + 1rem, 3.8rem);
  margin: 16px 0;
  color: var(--text);
}

.hero .lead {
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.secondary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn.ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}

.hero-media {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-card {
  position: absolute;
  right: 16px;
  bottom: -40px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  width: min(280px, 90%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 8px;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.checklist {
  padding-left: 18px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.check-item {
  display: flex;
  gap: 14px;
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.check-item img {
  width: 42px;
  height: 42px;
}

.check-item h3 {
  margin-bottom: 6px;
}

.media-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: auto;
}

.media-card__content {
  padding: 18px 20px 24px;
}

.media-card.wide {
  margin-top: 24px;
}

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

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

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

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.resource {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.footer {
  padding: 50px 0;
  background: #0b1117;
  color: #d1d5db;
}

.footer p {
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  gap: 16px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
    margin-top: 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  html {
    scroll-behavior: auto;
  }
}
