:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef3ed;
  --ink: #17211c;
  --muted: #647067;
  --line: #dce3da;
  --accent: #1f7a5c;
  --accent-strong: #155d45;
  --accent-soft: #dff2e8;
  --warning: #8a5b12;
  --code-bg: #18211d;
  --code-ink: #eef8f1;
  --shadow: 0 22px 60px rgba(23, 33, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(220, 227, 218, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand strong {
  font-size: 1rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.nav a.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.nav a.nav-login:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.section {
  position: relative;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

main > .section:first-child:not(.hero-section) {
  padding-top: clamp(48px, 6vw, 76px);
}

.section:nth-child(even) {
  background: var(--surface);
}

.hero-section {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 242, 232, 0.58)),
    var(--bg);
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-section::before {
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(31, 122, 92, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 92, 0.13) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
}

.hero-section::after {
  opacity: 0.22;
  background:
    linear-gradient(112deg, transparent 0 34%, rgba(31, 122, 92, 0.36) 36%, transparent 39%),
    linear-gradient(112deg, transparent 0 52%, rgba(21, 93, 69, 0.24) 54%, transparent 57%);
  background-size: 220% 100%;
  animation: flowBackground 12s linear infinite;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(92vh - 78px);
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
}

h3 {
  font-size: 1.14rem;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.byline {
  margin: 8px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.proof-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 22px;
}

.proof-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
}

.data-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(31, 122, 92, 0.12), transparent),
    linear-gradient(180deg, transparent 0 72%, rgba(31, 122, 92, 0.08) 74%, transparent 78%);
  transform: translateX(-70%);
  animation: scanVisual 4.8s ease-in-out infinite;
}

.visual-header {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.visual-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.visual-header span:nth-child(1) {
  background: #e15b4f;
}

.visual-header span:nth-child(2) {
  background: #e6b84a;
}

.visual-header span:nth-child(3) {
  background: #36a56f;
}

.pipeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--surface-muted));
}

.pipeline-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  box-shadow: 0 0 0 0 rgba(31, 122, 92, 0.26);
  animation: pulseStep 2.9s ease-in-out infinite;
}

.pipeline-step:nth-child(2) span {
  animation-delay: 420ms;
}

.pipeline-step:nth-child(3) span {
  animation-delay: 840ms;
}

.pipeline-step p {
  margin: 2px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
  margin-top: 34px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(31, 122, 92, 0.45);
  box-shadow: 0 18px 48px rgba(23, 33, 28, 0.09);
  transform: translateY(-2px);
}

.card p,
.panel p,
.footer p {
  color: var(--muted);
}

.limit-card {
  border-color: rgba(138, 91, 18, 0.28);
  background: #fff9ec;
}

.code-block {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 28px;
  padding: 24px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 0.95rem;
  line-height: 1.65;
}

.note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--warning);
  background: #fff6df;
  color: #4f3810;
}

.pricing-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

code {
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}

.code-block code {
  overflow-wrap: normal;
  white-space: pre;
}

.pricing-preview {
  display: grid;
  align-content: center;
  gap: 14px;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pricing-row strong {
  display: block;
}

.pricing-row span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.spam-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: var(--accent-strong);
}

.form-status[data-state="error"] {
  color: #8a1f12;
}

.form-status[data-state="pending"] {
  color: var(--muted);
}

.footer {
  padding: 34px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #17211c;
  color: #fff;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: #fff;
}

.footer p {
  margin: 0;
  color: #d7e0d9;
}

.footer-links {
  display: flex;
  gap: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flowBackground {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -220% 0;
  }
}

@keyframes scanVisual {
  0%,
  18% {
    transform: translateX(-76%);
  }

  64%,
  100% {
    transform: translateX(76%);
  }
}

@keyframes pulseStep {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 122, 92, 0.24);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(31, 122, 92, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-section {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .lead {
    font-size: 1.03rem;
  }

  .hero-actions,
  .actions {
    margin-top: 24px;
  }

  .proof-list {
    margin-top: 18px;
  }

  .code-block {
    padding: 16px;
    font-size: 0.84rem;
  }

  .pricing-row,
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
