:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --blue: #3b82f6;
  --green: #22c55e;
  --ink: #111827;
  --cta: #111827;
  --cta-text: #ffffff;
  --ghost-border: #d1d5db;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  --radius: 20px;
  --max: 880px;
  --header-offset: 5rem;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-subtle: #111827;
    --surface: #152033;
    --text: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border: #243044;
    --cta: #f9fafb;
    --cta-text: #111827;
    --ghost-border: #374151;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  margin: 0;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(34, 197, 94, 0.14), transparent);
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse 70% 45% at 8% -8%, rgba(59, 130, 246, 0.16), transparent),
      radial-gradient(ellipse 55% 40% at 100% 0%, rgba(34, 197, 94, 0.1), transparent);
  }
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
  outline: none;
  box-shadow: var(--focus);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav a:hover { color: var(--text); }

.hero {
  padding: 4.5rem 0 2.5rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lede,
.section-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.section {
  padding: 2.75rem 0;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-lede { margin-bottom: 1.6rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card { max-width: 36rem; }

.product-card h3 { font-size: 1.35rem; }

.product-card p + p { margin-top: 0.85rem; }

.product-actions { margin-top: 1.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--ghost-border);
  background: transparent;
}

.btn:hover { filter: brightness(1.08); }

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }

  .nav ul { gap: 0.85rem; }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero { padding-top: 3rem; }
}

@media (max-width: 560px) {
  .nav { display: none; }

  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
}
