:root {
  --bg: #0b0b0d;
  --text: #f2f2f2;
  --muted: #9a9aa0;
  --line: #1b1b1f;
  --accent: #3a6ff7;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Sohne", "GT America", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 40;
  background: rgba(242, 242, 242, 0.07);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  opacity: 0.78;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.page-grid span {
  border-right: 1px solid rgba(242, 242, 242, 0.05);
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav .nav-btn {
  color: var(--text);
  margin-top: 0;
  padding: 0.62rem 0.95rem;
  font-size: 0.9rem;
}

.section {
  padding: clamp(96px, 12vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3.5rem, 7vw, 4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

h2::after {
  content: "";
  display: block;
  width: 58px;
  margin-top: 0.95rem;
  border-top: 1px solid var(--accent);
}

.no-underline::after {
  display: none;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.subhead {
  margin-top: 1.35rem;
  max-width: 58ch;
  color: var(--muted);
}

.support {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.86rem 1.14rem;
  border: 1px solid var(--accent);
  background: rgba(58, 111, 247, 0.12);
  color: var(--text);
  font-size: 0.95rem;
  transition: filter 150ms ease, background-color 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.12);
  background: rgba(58, 111, 247, 0.2);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  color: var(--text);
  border-color: var(--text);
  background: transparent;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.issue-grid article,
.steps article {
  border: 1px solid var(--line);
  padding: 1.3rem;
}

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

.impact-line {
  margin-top: 1.8rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.015em;
}

.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.system-flow {
  --flow-line-progress: 0;
  position: relative;
}

.system-flow::before,
.system-flow::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  height: 1px;
  pointer-events: none;
}

.system-flow::before {
  background: rgba(242, 242, 242, 0.12);
}

.system-flow::after {
  background: var(--accent);
  opacity: 0.76;
  transform-origin: left center;
  transform: scaleX(var(--flow-line-progress));
}

.flow li {
  border: 1px solid var(--line);
  padding: 0.9rem 0.7rem;
  text-align: center;
  position: relative;
  font-size: 0.94rem;
  z-index: 1;
  background: rgba(11, 11, 13, 0.92);
}

.flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -0.56rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.flow-step {
  opacity: 0.3;
  transform: translateY(10px);
  transition: opacity 340ms ease, transform 340ms ease, font-weight 260ms ease, border-color 260ms ease;
}

.flow-step.step-visible {
  opacity: 1;
  transform: translateY(0);
}

.lock-step.step-locked {
  font-weight: 600;
  border-color: rgba(58, 111, 247, 0.65);
}

.label {
  margin-top: 2rem;
  color: var(--muted);
}

.install-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.install-list li {
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.small-line {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.roi-box {
  max-width: 620px;
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.roi-box p + p {
  margin-top: 0.6rem;
}

.steps .step-num {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.for-list {
  max-width: 760px;
}

.cta {
  text-align: center;
}

.cta-inner h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  margin-top: 1.4rem;
}

.cta .small-line {
  margin-top: 1rem;
}

.site-footer {
  padding: 1.2rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.legal-main {
  min-height: calc(100vh - 76px);
}

.legal-section {
  padding-top: clamp(72px, 10vw, 96px);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

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

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
}

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

@media (max-width: 980px) {
  .container {
    width: min(var(--max), calc(100% - 2rem));
  }

  .three-col,
  .flow,
  .install-list {
    grid-template-columns: 1fr;
  }

  .flow li:not(:last-child)::after {
    content: "v";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -0.72rem;
    transform: translateX(-50%);
  }

  .system-flow::before,
  .system-flow::after {
    display: none;
  }

  .main-nav {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: calc(94vh - 76px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-content h1 {
    font-size: clamp(2rem, 9vw, 2.35rem);
  }
}

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

  * {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-step {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    display: none;
  }
}
