:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --bg-raised: #12151c;
  --border: #1e2430;
  --accent: #3dd6c3;
  --accent-dim: #2a9d8f;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted2: #71717a;
  --container: 64rem;
  --narrow: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.container-narrow {
  max-width: var(--narrow);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem 1rem;
}

@media (min-width: 640px) {
  .header-inner {
    padding-inline: 1.5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted2);
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
}

.nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hide-sm {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-lg {
  min-height: 3rem;
  padding-inline: 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-raised) 50%, transparent);
  color: #fff;
}

.btn-outline:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--bg-raised);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: #e4e4e7;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 6rem;
  }
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.hero-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 32rem;
  height: 32rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(120px);
}

.hero-glow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-dim) 12%, transparent);
  filter: blur(90px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
  }
}

.hero-stats {
  margin: 3.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  margin: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 40%, transparent);
}

.stat-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
}

.stat-card dd {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #d4d4d8;
}

/* Sections */
.section {
  scroll-margin-top: 6rem;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-muted {
  background: color-mix(in srgb, var(--bg-raised) 20%, var(--bg));
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

/* Prose block */
.prose {
  margin-top: 2rem;
}

.prose p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-tight {
  margin-top: 2rem;
}

.h3-spacing {
  margin: 2.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e4e4e7;
}

.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.bullet-list li::marker {
  color: var(--accent);
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 1px 0 color-mix(in srgb, #000 20%, transparent);
}

.feature-accent {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
}

.feature-card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.steps li:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.steps span:last-child {
  padding-top: 0.2rem;
  color: #d4d4d8;
}

.section .cta-row {
  margin-top: 3rem;
}

/* CTA panel */
.section-cta {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-raised) 30%, var(--bg)), var(--bg));
}

.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 40%, transparent);
}

@media (min-width: 640px) {
  .cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.cta-panel-text {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.cta-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-panel-actions {
    width: auto;
    flex-direction: row;
    flex-shrink: 0;
  }
}

.cta-panel-actions .btn {
  min-width: 200px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 30%, var(--bg));
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    padding-inline: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-desc {
  margin: 0.25rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted2);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #52525b;
}
