:root {
  font-family: 'Space Grotesk', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e2e8f0;
  background-color: #010512;
  line-height: 1.5;
  --primary: #fbbf24;
  --accent: #38bdf8;
  --surface: rgba(2, 6, 23, 0.75);
  --border: rgba(148, 163, 184, 0.2);
  --muted: rgba(226, 232, 240, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #010512;
  color: inherit;
  position: relative;
  overflow-x: hidden;
}

canvas#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.12"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1rem 4vw;
  backdrop-filter: blur(18px);
  background: rgba(1, 5, 18, 0.7);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #f8fafc;
}

.site-logo small {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.9);
}

.site-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.cta.primary {
  background: linear-gradient(120deg, #fbbf24, #f97316);
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
}

.cta.secondary {
  background: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.2);
}

.cta.ghost {
  border-color: rgba(248, 250, 252, 0.35);
  background: transparent;
}

.cta:hover {
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section {
  border-radius: 32px;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section__header {
  max-width: 560px;
  margin-bottom: 2rem;
}

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

.section__header h1,
.section__header h2,
.hero h1 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.hero__content .lede {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

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

.hero__stats div {
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
}

.hero__stats dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.hero__stats dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #fff6d5;
}

.hero__mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mockup-window {
  border-radius: 24px;
  border: 1px solid rgba(248, 250, 252, 0.15);
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.05);
  font-size: 0.95rem;
  color: var(--muted);
}

.mockup-toolbar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, #f87171, #fb7185);
}

.mockup-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 1rem;
  padding: 1.5rem;
}

.mockup-sidebar {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
}

.mockup-sidebar h3 {
  margin: 0.4rem 0 1rem;
}

.mockup-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mockup-sidebar li {
  font-size: 0.95rem;
  color: var(--muted);
}

.mockup-sidebar strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.7);
}

.mockup-sheet {
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.12);
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(248, 250, 252, 0.04);
}

.mockup-sheet header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.mockup-sheet h4 {
  margin: 0.2rem 0 0;
}

.accuracy {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}

.accuracy span {
  display: block;
  color: #fcd34d;
  font-weight: 600;
}

.sheet-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.problem {
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px dashed rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-card {
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(248, 250, 252, 0.15);
  background: rgba(248, 250, 252, 0.08);
  max-width: 320px;
  box-shadow: 0 20px 45px rgba(3, 7, 18, 0.45);
}

.floating-card .badge {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

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

.feature-grid article {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: rgba(248, 250, 252, 0.02);
  backdrop-filter: blur(8px);
}

.feature-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.workflow {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(2, 132, 199, 0.45));
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workflow-steps li {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(1, 5, 18, 0.35);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.15);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.stat-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.03);
}

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

.roadmap-grid article {
  border-radius: 18px;
  border: 1px dashed rgba(248, 250, 252, 0.25);
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
}

.testimonials {
  background: rgba(15, 23, 42, 0.85);
}

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

.testimonial-grid figure {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  padding: 1.25rem;
  background: rgba(248, 250, 252, 0.05);
}

.testimonial-grid blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #f8fafc;
}

.cta.section {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta.section .cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
}

.site-footer .to-top {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #fcd34d;
  text-decoration: none;
}

[data-parallax] {
  transition: transform 0.35s ease;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .site-actions {
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .cta.section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 2rem;
  }

  .site-header {
    padding: 0.75rem 1rem;
  }
}
