:root {
  --ink: #17211f;
  --muted: #65716e;
  --paper: #f7f8f6;
  --paper-2: #ffffff;
  --line: rgba(23, 33, 31, 0.14);
  --dark: #10201d;
  --dark-2: #17332e;
  --green: #26a269;
  --mint: #b9f3d0;
  --amber: #f3b84b;
  --red: #e45757;
  --blue: #3877f6;
  --shadow: 0 24px 80px rgba(16, 32, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(246, 244, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.dashboard-top,
.chart-head,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: var(--mint);
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper-2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  cursor: pointer;
  place-items: center;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  right: 16px;
  top: calc(100% + 8px);
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 18px 50px rgba(16, 32, 29, 0.14);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.mobile-nav a:hover {
  background: var(--paper);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: var(--mint);
  box-shadow: 0 16px 40px rgba(16, 32, 29, 0.22);
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .stagger-reveal > * {
  transition-delay: calc(var(--stagger-index, 0) * 70ms);
}

.js .dashboard .metric-grid article,
.js .dashboard .chart-card,
.js .dashboard .ai-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.js .dashboard.is-visible .metric-grid article,
.js .dashboard.is-visible .chart-card,
.js .dashboard.is-visible .ai-card {
  opacity: 1;
  transform: translateY(0);
}

.js .dashboard .metric-grid article:nth-child(1) {
  transition-delay: 120ms;
}

.js .dashboard .metric-grid article:nth-child(2) {
  transition-delay: 190ms;
}

.js .dashboard .metric-grid article:nth-child(3) {
  transition-delay: 260ms;
}

.js .dashboard .chart-card {
  transition-delay: 330ms;
}

.js .dashboard .ai-card {
  transition-delay: 470ms;
}

.js .bars span {
  transform: scaleY(0.18);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .dashboard.is-visible .bars span {
  transform: scaleY(1);
}

.js .dashboard.is-visible .bars span:nth-child(1) {
  transition-delay: 420ms;
}

.js .dashboard.is-visible .bars span:nth-child(2) {
  transition-delay: 470ms;
}

.js .dashboard.is-visible .bars span:nth-child(3) {
  transition-delay: 520ms;
}

.js .dashboard.is-visible .bars span:nth-child(4) {
  transition-delay: 570ms;
}

.js .dashboard.is-visible .bars span:nth-child(5) {
  transition-delay: 620ms;
}

.js .dashboard.is-visible .bars span:nth-child(6) {
  transition-delay: 670ms;
}

.js .dashboard.is-visible .bars span:nth-child(7) {
  transition-delay: 720ms;
}

.section,
.section-light,
.section-dark {
  padding: 88px clamp(20px, 4vw, 64px);
}

.section-dark {
  background:
    radial-gradient(circle at 85% 15%, rgba(185, 243, 208, 0.16), transparent 32%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #f8fbf5;
}

.section-light {
  background: #edf2ee;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.pain,
.signals,
.before-after,
.lead-section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero-copy,
.section-copy,
.section-heading,
.lead-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.16;
}

.hero-lead,
.section-copy p,
.lead-copy p {
  color: var(--muted);
  font-size: 19px;
}

.section-dark .hero-lead,
.section-dark .section-copy p,
.section-dark .lead-copy p {
  color: rgba(248, 251, 245, 0.78);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button-primary {
  background: var(--mint);
  color: var(--dark);
  box-shadow: 0 12px 34px rgba(185, 243, 208, 0.22);
}

.button-dark {
  background: var(--dark);
  color: var(--paper-2);
}

.button-note {
  max-width: 260px;
  color: rgba(248, 251, 245, 0.68);
  font-size: 14px;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-list span,
.pill-grid span {
  padding: 9px 12px;
  border: 1px solid rgba(248, 251, 245, 0.2);
  border-radius: 999px;
  color: rgba(248, 251, 245, 0.86);
  font-size: 14px;
}

.dashboard {
  border: 1px solid rgba(248, 251, 245, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dashboard-top {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-top p,
.dashboard-top strong {
  margin: 0;
}

.dashboard-top p {
  color: rgba(248, 251, 245, 0.62);
  font-size: 13px;
}

.status-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(228, 87, 87, 0.18);
  color: #ffd8d8;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid article,
.chart-card,
.ai-card,
.lead-form {
  border: 1px solid rgba(248, 251, 245, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid article {
  min-height: 116px;
  padding: 14px;
}

.metric-grid span,
.metric-grid small,
.chart-head {
  color: rgba(248, 251, 245, 0.64);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 23px;
}

.good {
  color: var(--mint) !important;
}

.warn {
  color: #ffd783 !important;
}

.danger {
  color: #ffb8b8 !important;
}

.chart-card {
  margin-top: 10px;
  padding: 16px;
}

.chart-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 160px;
  padding-top: 12px;
}

.bars span {
  display: block;
  min-height: 28px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--mint), rgba(185, 243, 208, 0.32));
}

.bars .bar-danger {
  background: linear-gradient(180deg, #ff8a8a, rgba(228, 87, 87, 0.28));
}

.ai-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
}

.ai-card p {
  margin: 0;
  color: rgba(248, 251, 245, 0.86);
  font-size: 14px;
}

.ai-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(228, 87, 87, 0.14);
}

.question-grid,
.industry-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.question-grid span,
.industry-grid article,
.steps article,
.comparison > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.question-grid span {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 20px 22px;
  font-size: 20px;
  font-weight: 800;
}

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

.accent-line {
  max-width: 980px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--green);
  color: #30403d;
  font-size: 22px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.alert-feed {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.alert-feed article {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(248, 251, 245, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.alert-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-meta strong {
  color: #f8fbf5;
  font-size: 14px;
}

.alert-meta small {
  margin-left: auto;
  color: rgba(248, 251, 245, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.danger-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(228, 87, 87, 0.13);
}

.warn-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(243, 184, 75, 0.13);
}

.info-dot {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(185, 243, 208, 0.13);
}

.alert-feed p {
  margin: 0;
  color: rgba(248, 251, 245, 0.94);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.alert-feed em {
  color: rgba(248, 251, 245, 0.66);
  font-size: 14px;
  font-style: normal;
}

.section-heading {
  margin-bottom: 28px;
}

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

.industry-grid article {
  padding: 24px;
}

.industry-grid p {
  color: var(--muted);
}

.industry-grid strong {
  color: var(--green);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.value-pills {
  align-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.pill-grid span {
  border-color: var(--line);
  color: #30403d;
  background: var(--paper-2);
}

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

.comparison > div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 251, 245, 0.15);
}

.comparison h3 {
  color: var(--mint);
}

.comparison p {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(248, 251, 245, 0.13);
  color: rgba(248, 251, 245, 0.82);
}

.steps {
  grid-template-columns: repeat(5, 1fr);
}

.steps article {
  padding: 20px;
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: var(--mint);
  font-weight: 900;
}

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

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.52fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.lead-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.lead-copy li {
  position: relative;
  padding-left: 28px;
  color: rgba(248, 251, 245, 0.84);
  font-size: 18px;
}

.lead-copy li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: rgba(248, 251, 245, 0.78);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(248, 251, 245, 0.18);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
}

.form-note,
.form-success {
  margin: 0;
  color: rgba(248, 251, 245, 0.62);
  font-size: 13px;
}

.form-success {
  color: var(--mint);
  font-weight: 800;
}

.footer {
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1080px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 44px;
  }

  .hero,
  .split,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .question-grid,
  .compact-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    align-items: stretch;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav {
    left: 16px;
    right: 16px;
  }

  .section,
  .section-light,
  .section-dark {
    padding: 64px 18px;
  }

  .pain,
  .signals,
  .before-after,
  .lead-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead,
  .section-copy p,
  .lead-copy p {
    font-size: 18px;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .button-note {
    max-width: none;
  }

  .metric-grid,
  .question-grid,
  .compact-grid,
  .industry-grid,
  .comparison,
  .steps {
    grid-template-columns: 1fr;
  }

  .dashboard {
    padding: 14px;
  }

  .metric-grid article {
    min-height: auto;
  }

  .question-grid span {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal-on-scroll,
  .js .dashboard .metric-grid article,
  .js .dashboard .chart-card,
  .js .dashboard .ai-card,
  .js .bars span {
    opacity: 1;
    transform: none;
  }
}
