:root {
  color-scheme: light dark;
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --border: #404040;
  --accent: #fafafa;
  --accent-bg: #262626;
  --accent-bg-hover: #333333;
  --header-bg: color-mix(in srgb, var(--bg) 92%, transparent);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px color-mix(in srgb, #000 24%, transparent);
  font-synthesis: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --fg: #171717;
    --muted: #737373;
    --border: #e5e5e5;
    --accent: #171717;
    --accent-bg: #f5f5f5;
    --accent-bg-hover: #ebebeb;
    --header-bg: color-mix(in srgb, var(--bg) 88%, var(--fg));
    --shadow: 0 1px 3px color-mix(in srgb, #000 8%, transparent);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap.narrow {
  max-width: 40rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  max-width: 72rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
}

.logo:hover {
  opacity: 0.85;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.button--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.button--primary {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: var(--border);
}

.button--primary:hover {
  background: var(--accent-bg-hover);
}

.button--ghost {
  color: var(--fg);
  background: transparent;
  border-color: transparent;
}

.button--ghost:hover {
  background: var(--accent-bg);
  border-color: var(--border);
}

.button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 5.5rem;
  }
}

.hero__inner {
  max-width: 40rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero__lede {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* Sections */
.section {
  padding: 4rem 0;
}

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

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

/* Feature grid */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  margin: 0;
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
}

.step__num {
  flex: 0 0 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
}

.step__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.step__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Pricing */
.pricing-panel {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.pricing-panel__lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.pricing-panel__lede strong {
  color: var(--fg);
  font-weight: 600;
}

.pricing-panel__cta {
  width: 100%;
}

@media (min-width: 480px) {
  .pricing-panel__cta {
    width: auto;
  }
}

/* FAQ */
.faq {
  margin: 0;
}

.faq__item {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__q {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.faq__a {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq__a a {
  color: var(--fg);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__meta a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__meta a:hover {
  text-decoration: underline;
}

.site-footer__dot {
  opacity: 0.5;
}
