:root {
  color-scheme: light dark;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #1a365d;
  --muted: #4a5568;
  --accent: #0891b2;
  --accent-strong: #059669;
  --border: rgb(26 54 93 / 0.12);
  --shadow: 0 24px 60px rgb(15 23 42 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #111827;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #22d3ee;
    --accent-strong: #10b981;
    --border: rgb(226 232 240 / 0.16);
    --shadow: 0 20px 40px rgb(0 0 0 / 0.4);
  }
}

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

body {
  font-family: "Inter", "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem; /* 16px+ per spec */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__visual {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  max-width: 320px;
  color: var(--accent);
}

.hero__visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgb(8 145 178 / 0.25));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  min-width: 200px;
}

.cta-note {
  font-size: 0.95rem;
  color: var(--muted);
}

main {
  flex: 1;
}

.section {
  padding: 2.5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 720px;
  margin-bottom: 1rem;
}

.emphasis {
  font-weight: 600;
  color: var(--accent);
}

.pillars {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pillars article {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pillars h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
}

.footer {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.footer a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.footer__dot {
  margin: 0 0.5rem;
  color: var(--accent);
}

.footer__note {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2rem;
    padding: 5rem 3rem 4rem;
  }

  .hero__visual {
    margin-top: 0;
    justify-self: end;
  }

  .hero__cta {
    flex-direction: row;
    align-items: center;
  }

  .section {
    padding: 3.5rem 3rem;
  }

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

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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