:root {
  --bg: #050505;
  --ink: #f7f4ea;
  --muted: rgba(247, 244, 234, 0.64);
  --line: rgba(247, 244, 234, 0.14);
  --acid: #f7ff62;
  --violet: #8d61ff;
  --cyan: #58e6ff;
  --hot: #ff5c93;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(247, 255, 98, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.58) 62%, rgba(5, 5, 5, 0.08));
}

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

#flowCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  inset: 22px clamp(16px, 4vw, 50px) auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand,
.site-header nav,
.ticker div,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 26px rgba(247, 255, 98, 0.7);
}

.site-header nav {
  gap: clamp(18px, 4vw, 42px);
  color: var(--muted);
}

.pill,
.cta {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--acid);
  color: #080808;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease,
    background 240ms ease;
}

.pill {
  justify-self: end;
}

.pill:hover,
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 42px rgba(247, 255, 98, 0.32);
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 142px) clamp(18px, 5vw, 58px);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.hero-copy {
  max-width: 790px;
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -10px), 0);
  transition: transform 320ms ease-out;
}

.tag {
  margin: 0 0 22px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(52px, 7.6vw, 96px);
  line-height: 0.92;
}

h2 {
  max-width: 1000px;
  margin-bottom: 36px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.04;
}

p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

.hero-copy p:not(.tag),
.price-section > p {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 20px;
}

.operator-core {
  position: relative;
  display: grid;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  transform: translate3d(calc(var(--mx, 0) * 20px), calc(var(--my, 0) * 18px), 0);
  transition: transform 320ms ease-out;
}

.core-ring {
  position: absolute;
  inset: var(--inset);
  border: 1px solid rgba(247, 255, 98, 0.28);
  border-radius: 50%;
  animation: spin var(--speed) linear infinite;
}

.core-ring::before,
.core-ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 28px var(--color);
}

.core-ring::before {
  left: 50%;
  top: -5px;
}

.core-ring::after {
  right: 16%;
  bottom: 7%;
}

.r1 { --inset: 4%; --speed: 16s; --color: var(--acid); }
.r2 { --inset: 18%; --speed: 11s; --color: var(--cyan); animation-direction: reverse; }
.r3 { --inset: 32%; --speed: 7s; --color: var(--violet); }

.operator-core strong {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.operator-core em {
  position: absolute;
  bottom: 30%;
  color: var(--acid);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker {
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker div {
  width: max-content;
  gap: 48px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}

.ticker span {
  color: var(--ink);
}

.automation-section,
.operator-section,
.case-section,
.start-section,
.price-section {
  min-height: 74svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.automation-grid,
.steps,
.start-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 6vw, 80px);
  margin-top: 52px;
}

.automation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.automation-grid article,
.start-flow article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.steps article,
.automation-grid article,
.start-flow article,
.case-line {
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    color 240ms ease;
}

.steps article:hover,
.automation-grid article:hover,
.start-flow article:hover,
.case-line:hover {
  transform: translateY(-8px);
}

.steps span,
.automation-grid span,
.start-flow span {
  display: block;
  margin-bottom: 28px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.automation-grid span {
  margin-bottom: 18px;
  text-transform: uppercase;
}

.automation-grid p,
.start-flow p {
  margin: 0;
  font-size: 16px;
}

.case-line {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.case-line:last-child {
  border-bottom: 1px solid var(--line);
}

.case-line span {
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-line p {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-line strong {
  display: block;
  max-width: 840px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.price-section h2 {
  max-width: 850px;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 34px;
}

.formats article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(247, 244, 234, 0.035);
  backdrop-filter: blur(12px);
}

.formats span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formats em {
  display: block;
  margin: -8px 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formats p {
  margin: 0;
  font-size: 16px;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 4px 0 34px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--acid);
  font-size: 18px;
  font-weight: 900;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  max-width: 560px;
  margin: -4px 0 18px;
  font-size: 15px;
  line-height: 1.45;
}

footer {
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px clamp(18px, 5vw, 58px) 52px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(44px) scale(0.98);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .automation-grid,
  .steps,
  .start-flow,
  .case-line,
  .formats,
  .faq {
    grid-template-columns: 1fr;
  }

  .operator-core {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    inset: 16px 14px auto;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .pill,
  .cta {
    padding: 12px 14px;
    font-size: 12px;
  }

  .operator-core {
    width: min(340px, 84vw);
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
