:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #1a1a1a;
  --text-muted: #555555;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-bg: #eef2ff;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --radius: 12px;
  --spacing: 2rem;
  --container: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-bg: #1e1b4b;
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  }
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing);
  width: 100%;
}

.site-header {
  padding: 1.25rem var(--spacing);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.site-header nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

button.btn-ghost {
  border: 2px solid var(--primary);
}

button.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.demo-msg {
  min-height: 1.2em;
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: #b45309;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: var(--primary-bg);
  text-decoration: none;
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .beta-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section {
  padding: 4rem 0;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 2rem;
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.steps h3 {
  margin-bottom: 0.25rem;
}

.steps p {
  color: var(--text-muted);
}

.principles {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
}

.principles dl {
  display: grid;
  gap: 1.5rem;
}

.principles dt {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.principles dd {
  color: var(--text-muted);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.roadmap .card {
  position: relative;
}

.badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta {
  text-align: center;
  padding: 4rem 0;
  background: var(--primary-bg);
  border-radius: var(--radius);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
}

.prose h2 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p, .prose ul, .prose ol {
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  margin-top: auto;
  padding: 2rem var(--spacing);
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.muted {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
}

.cta .hero-actions {
  justify-content: center;
}
