:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --border: 240 5.9% 90%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

a {
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border));
  transition: border-color 200ms ease, color 200ms ease;
}
a:hover { border-color: hsl(var(--foreground)); }

.container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border: none;
}
.brand .dot { color: hsl(var(--muted-foreground)); }
nav.site a {
  margin-left: 1.25rem;
  color: hsl(var(--muted-foreground));
  border: none;
  font-size: 0.9rem;
}
nav.site a:hover { color: hsl(var(--foreground)); }

main { padding: 4rem 0 6rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.hero p.lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
  max-width: 36rem;
}
.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.1rem;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid hsl(var(--primary));
}
.hero .cta:hover { opacity: 0.9; }

section.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.4rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.page h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
.page p, .page address {
  margin: 0 0 0.75rem;
  font-style: normal;
  color: hsl(var(--foreground));
}
.page .muted { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }

footer.site {
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
footer.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
footer.site a { border: none; color: hsl(var(--muted-foreground)); }
footer.site a:hover { color: hsl(var(--foreground)); }
