:root {
  --bg: #ffffff;
  --bg-soft: #f0fdf4;
  --bg-dark: #064e3b;
  --text: #334155;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --primary: #059669;
  --primary-hover: #047857;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --success: #10b981;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --container: 1140px;
  --nav-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bg-dark);
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.brand small {
  display: none;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-soft);
}

.nav-cta {
  background: var(--bg-dark);
  color: white;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--bg-dark);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
}

.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--bg-dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-mock {
  display: grid;
  gap: 20px;
}

.mock-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mock-block {
  background: var(--bg-soft);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-soft);
  text-align: center;
}

.mock-block strong {
  display: block;
  font-size: 1.75rem;
  color: var(--bg-dark);
  margin-bottom: 4px;
}

.mock-block h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--bg-dark);
}

.mock-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.section {
  padding: 100px 0;
}

.bg-soft {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--bg-dark);
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-light);
}

.metric-grid,
.feature-grid,
.modules-grid,
.story-grid,
.pricing-grid,
.split,
.footer-grid,
.showcase-layout {
  display: grid;
  gap: 32px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid,
.modules-grid {
  grid-template-columns: repeat(3, 1fr);
}

.story-grid,
.pricing-grid,
.split,
.showcase-layout {
  grid-template-columns: repeat(2, 1fr);
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.metric-card,
.feature-card,
.module-card,
.story-card,
.pricing-card,
.showcase-card,
.glass-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.metric-card:hover,
.feature-card:hover,
.module-card:hover,
.story-card:hover,
.pricing-card:hover,
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.feature-icon,
.module-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-soft);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid var(--accent-soft);
}

.metric-card strong,
.feature-card h3,
.module-card h3,
.story-card h3,
.pricing-card h3,
.glass-card h3 {
  color: var(--bg-dark);
}

.metric-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.metric-card span,
.feature-card p,
.module-card p,
.story-card p,
.pricing-card p,
.glass-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1rem;
}

.module-list,
.check-list,
.page-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.module-list li,
.check-list li,
.page-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.module-list li:last-child,
.check-list li:last-child,
.page-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 12px;
}

.kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}

.callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 32px;
  font-weight: 500;
}

.cta-section {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  margin: 80px auto;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.cta-section h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 40px;
}

.site-footer {
  background: white;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.footer-title {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 20px;
  max-width: 300px;
}

.page-list a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.page-hero {
  background: var(--bg-soft);
  padding: 100px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--bg-dark);
}

.page-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--accent-soft);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 32px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-steps {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.doc-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.doc-step-number {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--accent-soft);
  color: var(--primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.doc-step h3 {
  margin-bottom: 10px;
  color: var(--bg-dark);
}

.doc-step p {
  margin: 0;
  color: var(--text-light);
}

code {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.9em;
  color: var(--bg-dark);
}

@media (max-width: 1024px) {
  .hero-grid,
  .metric-grid,
  .feature-grid,
  .modules-grid,
  .story-grid,
  .pricing-grid,
  .split,
  .showcase-layout,
  .footer-grid,
  .mock-top,
  .mock-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .metric-grid,
  .feature-grid,
  .modules-grid,
  .story-grid,
  .pricing-grid,
  .split,
  .showcase-layout,
  .footer-grid,
  .mock-top,
  .mock-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .cta-section h2 {
    font-size: 2.2rem;
  }

   .doc-step {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .doc-step-number {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section,
  .hero,
  .page-hero {
    padding: 72px 0;
  }

  .cta-section {
    padding: 48px 24px;
  }
}
