:root {
  --background: #f9fafb;
  --foreground: #1f2937;
  --muted: #6b7280;
  --muted-bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: hsl(221.2 83.2% 53.3%);
  --secondary: hsl(142.1 76.2% 36.3%);
  --accent: hsl(262.1 83.3% 57.8%);
  --shadow-card: 0 10px 30px -10px rgba(31, 41, 55, 0.1);
  --shadow-glow: 0 0 60px hsl(221.2 83.2% 53.3% / 0.15);
  --gradient-primary: linear-gradient(135deg, hsl(221.2 83.2% 53.3%) 0%, hsl(262.1 83.3% 57.8%) 100%);
  --gradient-mesh:
    radial-gradient(at 30% 20%, hsl(221.2 83.2% 53.3% / 0.18) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsl(262.1 83.3% 57.8% / 0.18) 0px, transparent 50%),
    radial-gradient(at 0% 70%, hsl(142.1 76.2% 36.3% / 0.12) 0px, transparent 50%);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px hsl(221.2 83.2% 53.3% / 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px hsl(221.2 83.2% 53.3% / 0.4);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--muted-bg);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: hsl(221.2 83.2% 53.3% / 0.08);
  border: 1px solid hsl(221.2 83.2% 53.3% / 0.2);
  color: hsl(221.2 83.2% 53.3%);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--foreground) 0%, hsl(221.2 83.2% 53.3%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -10px rgba(31, 41, 55, 0.18);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: hsl(221.2 83.2% 53.3% / 0.1);
  color: hsl(221.2 83.2% 53.3%);
  font-size: 1.4rem;
}

.feature-card .icon.green { background: hsl(142.1 76.2% 36.3% / 0.12); color: hsl(142.1 76.2% 36.3%); }
.feature-card .icon.purple { background: hsl(262.1 83.3% 57.8% / 0.12); color: hsl(262.1 83.3% 57.8%); }
.feature-card .icon.amber { background: hsl(38 92% 50% / 0.12); color: hsl(38 92% 50%); }

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
}

.cta-section {
  text-align: center;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin-bottom: 1.75rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Legal pages (privacy / terms) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.legal h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.6rem;
  color: var(--foreground);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--foreground);
}

.legal p,
.legal li {
  color: var(--foreground);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal a {
  color: hsl(221.2 83.2% 53.3%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: hsl(221.2 83.2% 43%);
}

.legal .callout {
  background: hsl(221.2 83.2% 53.3% / 0.06);
  border: 1px solid hsl(221.2 83.2% 53.3% / 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}
