/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --surface: #f3f4f6;
  --accent: #2563eb;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --surface: #0f1720;
    --accent: #60a5fa;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
}

/* ===== Base styles ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Source Sans 3, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--surface));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fluid, accessible type scale */
h1 {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 2.75rem);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
h2 {
  font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
  margin: 0 0 var(--space-3);
}
p,
li {
  font-size: 1rem;
  color: var(--text);
}
.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Layout ===== */
.container {
  width: min(100% - 2rem, 68ch);
  width: max(1100px);
  margin-inline: auto;
}


/* ===== Hero ===== */
.hero {
  padding: var(--space-8) 0 var(--space-6);
  display: grid;
  gap: var(--space-6);
}
.hero-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  min-height: 48px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  outline: 2px solid var(--accent);
}

/* ===== Features grid ===== */
.section {
  padding: var(--space-6) 0;
}
.grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}
.card {
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.1rem;
}