:root {
  color-scheme: dark;
  --bg: #030303;
  --bg-soft: #090909;
  --ink: #f7f7f2;
  --muted: #b8b8ad;
  --quiet: #76766e;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --header: rgba(0, 0, 0, 0.91);
  --accent: #ffffff;
  --warm: #d9c49a;
  --green: #b9f0d2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 76%, transparent);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 74px;
  padding: 18px clamp(18px, 4vw, 46px);
  color: var(--ink);
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.58);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.28rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--warm);
}

.header-cta,
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta {
  margin-left: auto;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.primary-button {
  padding: 0 24px;
  background: var(--ink);
  color: #050505;
  border: 1px solid var(--ink);
}

.ghost-button {
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.header-cta:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
}

.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.section-bleed {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  padding: 150px clamp(20px, 6vw, 76px) 72px;
  isolation: isolate;
}

#signalCanvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #030303;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.24) 35%, rgba(0, 0, 0, 0.86)),
    linear-gradient(105deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62) 43%, rgba(0, 0, 0, 0.25));
}

.hero-content {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 900px;
  font-size: clamp(3.25rem, 8vw, 7.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.1vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-panel,
.price-card,
.signal-card,
.capability-grid article,
.case-stage,
.pdf-preview,
.comparison-table,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.36);
}

.hero-panel {
  padding: 24px;
  border-radius: 8px;
}

.panel-kicker,
.price-label {
  display: block;
  margin-bottom: 12px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel strong,
.signal-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.hero-panel p,
.signal-card p,
.price-card p,
.capability-grid p,
.steps p,
.intro-copy p,
.pricing-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.intro-section,
.capabilities-section,
.pricing-section,
.stack-section,
.delivery-section,
.faq-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-copy {
  font-size: 1.06rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 146px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
}

.proof-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pain-section,
.process-section,
.contact-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pain-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 7vw, 86px);
}

.pain-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain-list li {
  position: relative;
  padding: 18px 0 18px 34px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

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

.capability-grid article {
  min-height: 252px;
  padding: 22px;
  border-radius: 8px;
}

.line-icon {
  display: block;
  width: 48px;
  height: 32px;
  margin-bottom: 30px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.line-icon::before {
  width: 8px;
  height: 8px;
  left: -5px;
  bottom: -5px;
  border-radius: 50%;
}

.line-icon::after {
  width: 13px;
  height: 13px;
  right: -5px;
  top: -4px;
  transform: rotate(45deg);
}

.process-section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.case-section,
.comparison-section {
  padding: clamp(72px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-section > .section-heading,
.process-layout,
.contact-section > .section-heading,
.contact-form,
.case-section > .section-heading,
.case-board,
.comparison-section > .section-heading,
.comparison-table {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.case-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-stage {
  min-height: 430px;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.case-stage::before {
  content: "";
  position: absolute;
  inset: auto -20% -42% -20%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
  animation: softDrift 7s ease-in-out infinite alternate;
}

.case-stage span {
  display: block;
  margin-bottom: 28px;
  color: var(--warm);
  font-weight: 800;
}

.case-stage p {
  color: var(--muted);
  line-height: 1.6;
}

.doc-placeholder {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 155px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.doc-placeholder i {
  display: block;
  height: 10px;
  margin: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.doc-placeholder.messy i:nth-child(2) { width: 56%; transform: translateX(24px); }
.doc-placeholder.messy i:nth-child(3) { width: 76%; transform: translateX(-8px); }
.doc-placeholder.messy i:nth-child(4) { width: 42%; transform: translateX(34px); }
.doc-placeholder.messy i:nth-child(5) { width: 68%; transform: translateX(12px); }

.doc-placeholder.polished {
  background:
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.13), transparent),
    rgba(255, 255, 255, 0.045);
  background-size: 240% 100%;
  animation: sheen 4.8s ease-in-out infinite;
}

.doc-placeholder.polished i {
  width: calc(100% - 32px);
}

.doc-placeholder.polished i:nth-child(2) { width: 72%; }
.doc-placeholder.polished i:nth-child(3) { width: 86%; }
.doc-placeholder.polished i:nth-child(4) { width: 48%; }

.process-orbit {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 170px;
  height: 170px;
  translate: -50% 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: rotateSlow 13s linear infinite;
}

.process-orbit::before,
.process-orbit::after {
  content: "";
  position: absolute;
  inset: 24px -14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.process-orbit::after {
  inset: -14px 34px;
}

.process-orbit b {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.process-orbit b:nth-child(1) { top: 14px; left: 50%; }
.process-orbit b:nth-child(2) { right: 20px; bottom: 42px; background: var(--green); }
.process-orbit b:nth-child(3) { left: 22px; bottom: 30px; }

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.stack-copy {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-tags span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.comparison-table {
  border-radius: 8px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > div {
  min-height: 76px;
  padding: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.comparison-row > div:first-child {
  border-right: 1px solid var(--line);
}

.comparison-head > div {
  color: var(--ink);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.07);
}

.comparison-row > div:nth-child(2) {
  position: relative;
}

.comparison-row > div:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10px;
  width: 3px;
  height: calc(100% - 44px);
  border-radius: 999px;
  background: linear-gradient(var(--green), transparent);
  opacity: 0.65;
}

.delivery-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.delivery-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.pdf-preview {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.pdf-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.pdf-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.pdf-page {
  margin: 24px;
  min-height: 420px;
  padding: 30px;
  border-radius: 6px;
  color: #101010;
  background:
    linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.7), transparent 44%),
    #f3f1ea;
  background-size: 260% 100%;
  animation: sheen 5.4s ease-in-out infinite;
}

.pdf-page small {
  display: block;
  margin-bottom: 16px;
  color: #666;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdf-page strong {
  display: block;
  max-width: 260px;
  margin-bottom: 34px;
  font-size: 2rem;
  line-height: 1.04;
}

.pdf-page i {
  display: block;
  height: 11px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.pdf-page i:nth-of-type(1) { width: 92%; }
.pdf-page i:nth-of-type(2) { width: 74%; }
.pdf-page i:nth-of-type(3) { width: 84%; }

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

.pdf-grid b {
  height: 82px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green);
}

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

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.65;
}

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

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

@keyframes rotateSlow {
  to {
    rotate: 360deg;
  }
}

@keyframes softDrift {
  to {
    transform: translate3d(8%, -8%, 0);
  }
}

@keyframes sheen {
  0%, 45% {
    background-position: 140% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.steps {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--warm);
  font-weight: 800;
}

.signal-card {
  padding: 18px;
  border-radius: 8px;
}

.signal-card svg {
  width: 100%;
  height: auto;
  margin-bottom: 22px;
}

.signal-card rect,
.signal-card path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 2;
}

.signal-card .grid-line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 7 9;
}

.route {
  stroke-dasharray: 10 10;
  animation: dashMove 3.8s linear infinite;
}

.route-b {
  animation-duration: 5.2s;
  stroke: var(--green);
}

.nodes circle {
  fill: var(--ink);
  stroke: #050505;
  stroke-width: 3;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -80;
  }
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.pricing-copy {
  max-width: 680px;
}

.price-card {
  padding: 28px;
  border-radius: 8px;
}

.price {
  margin-bottom: 16px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 850;
  line-height: 1;
}

.price span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-card .primary-button {
  width: 100%;
  margin-top: 12px;
}

.contact-section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.085);
}

.form-button {
  width: max-content;
  min-width: 210px;
  cursor: pointer;
}

.form-note {
  align-self: center;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--quiet);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .intro-grid,
  .pain-inner,
  .process-layout,
  .pricing-section,
  .stack-layout,
  .delivery-section {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
  }

  .hero-panel {
    max-width: 420px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-board {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 94svh;
    padding: 118px 20px 44px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 2.7rem);
  }

  .proof-strip,
  .capability-grid,
  .contact-form,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

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

  .comparison-row > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .comparison-head > div:first-child {
    border-bottom: 0;
  }

  .pdf-page {
    margin: 14px;
    min-height: 360px;
    padding: 22px;
  }

  .form-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }
}

@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;
  }
}

.scan-title {
  position: relative;
  width: min(900px, 100%);
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(185, 240, 210, 0.95), rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 22px rgba(185, 240, 210, 0.34);
  animation: titleScan 5.4s ease-in-out infinite;
  pointer-events: none;
}

.scan-title h1 {
  animation: headlinePulse 5.4s ease-in-out infinite;
}

.stack-marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 18px 0;
  animation: stackTicker 34s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.visual-pain-section {
  padding: clamp(76px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    #050505;
  border-bottom: 1px solid var(--line);
}

.visual-pain-section > .section-heading,
.pain-visual-grid {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.pain-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pain-visual-grid article,
.restored-capabilities .capability-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
    rgba(8, 8, 8, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.34);
}

.pain-visual-grid article {
  min-height: 320px;
  padding: 24px;
}

.pain-visual-grid p,
.restored-capabilities small {
  color: var(--muted);
  line-height: 1.6;
}

.noise-visual,
.leak-visual,
.signal-visual {
  height: 112px;
  margin-bottom: 30px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.noise-visual i,
.leak-visual i,
.signal-visual i {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.56);
}

.noise-visual i {
  height: 8px;
  border-radius: 999px;
  animation: softDrift 5s ease-in-out infinite alternate;
}

.noise-visual i:nth-child(1) { width: 72%; left: 18px; top: 22px; }
.noise-visual i:nth-child(2) { width: 46%; left: 72px; top: 48px; animation-delay: 180ms; }
.noise-visual i:nth-child(3) { width: 64%; left: 34px; top: 74px; animation-delay: 320ms; }
.noise-visual i:nth-child(4) { width: 30%; right: 22px; top: 92px; animation-delay: 520ms; }

.leak-visual i {
  width: 1px;
  top: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.leak-visual i::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: leakDrop 2.6s ease-in-out infinite;
}

.leak-visual i:nth-child(1) { left: 30%; }
.leak-visual i:nth-child(2) { left: 52%; }
.leak-visual i:nth-child(3) { left: 74%; }
.leak-visual i:nth-child(2)::after { animation-delay: 420ms; }
.leak-visual i:nth-child(3)::after { animation-delay: 820ms; }

.signal-visual i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(185, 240, 210, 0.34);
  animation: pulseRing 2.6s ease-in-out infinite;
}

.signal-visual i:nth-child(1) { left: 24%; top: 34%; }
.signal-visual i:nth-child(2) { left: 48%; top: 54%; animation-delay: 260ms; }
.signal-visual i:nth-child(3) { left: 68%; top: 28%; animation-delay: 520ms; }
.signal-visual i:nth-child(4) { left: 78%; top: 70%; animation-delay: 760ms; }

.restored-capabilities {
  display: block;
}

.restored-capabilities .capability-grid article {
  min-height: 270px;
  position: relative;
  overflow: hidden;
}

.restored-capabilities .capability-grid article::after {
  content: "";
  position: absolute;
  inset: auto -30% -42% -30%;
  height: 150px;
  background: radial-gradient(circle, rgba(185, 240, 210, 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.restored-capabilities .capability-grid article:hover::after {
  opacity: 1;
  transform: translateY(-12px);
}

.restored-capabilities small {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.mini-viz {
  display: block;
  width: 58px;
  height: 46px;
  margin-bottom: 28px;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(185, 240, 210, 0.18));
}

.mini-viz::before,
.mini-viz::after {
  content: "";
  position: absolute;
}

.mini-viz.bars::before {
  left: 0;
  top: 7px;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 13px 0 rgba(255,255,255,0.48), 0 26px 0 rgba(255,255,255,0.22);
}

.mini-viz.leak::before {
  inset: 0;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.mini-viz.leak::after {
  right: 4px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: leakDrop 2.2s ease-in-out infinite;
}

.mini-viz.pulse::before {
  inset: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: pulseRing 2.6s ease-in-out infinite;
}

.mini-viz.orbit::before {
  inset: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: rotateSlow 8s linear infinite;
}

.mini-viz.orbit::after {
  left: 42px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.mini-viz.doc::before {
  left: 15px;
  top: 3px;
  width: 30px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.mini-viz.doc::after {
  left: 21px;
  top: 16px;
  width: 18px;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 16px 0 var(--ink);
}

.mini-viz.flow::before {
  left: 3px;
  right: 3px;
  top: 22px;
  height: 1px;
  background: var(--line-strong);
}

.mini-viz.flow::after {
  left: 4px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 20px 0 0 var(--green), 40px 0 0 var(--ink);
}

.mini-viz.vault::before {
  inset: 4px 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.mini-viz.vault::after {
  left: 27px;
  top: 8px;
  width: 1px;
  height: 30px;
  background: var(--ink);
  transform: rotate(45deg);
}

.mini-viz.copy::before {
  left: 0;
  top: 8px;
  width: 54px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.mini-viz.copy::after {
  left: 10px;
  top: 20px;
  width: 34px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 8px 0 rgba(255,255,255,0.55);
}

.work-section {
  padding: clamp(76px, 10vw, 130px) 0;
  background: var(--bg);
}

.work-section > .section-heading,
.flow-chart,
.terminal-section > .section-heading,
.terminal-window {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.flow-chart {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 70px minmax(190px, 1fr) 70px minmax(190px, 1fr);
  gap: 12px;
  align-items: center;
}

.flow-step {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.flow-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(185, 240, 210, 0.08), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.flow-step:hover::after {
  opacity: 1;
}

.flow-step h3 {
  margin-top: 28px;
  font-size: 1.22rem;
}

.flow-step p {
  max-height: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.flow-step:hover p,
.flow-step:focus-within p {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
}

.flow-icon {
  width: 86px;
  height: 86px;
  margin: 6px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}

.intake-icon {
  animation: pulseRing 2.6s ease-in-out infinite;
}

.intake-icon::before,
.intake-icon::after {
  content: "";
  position: absolute;
  border: 1px solid var(--ink);
}

.intake-icon::before {
  width: 42px;
  height: 30px;
  left: 19px;
  top: 24px;
  border-radius: 13px;
  box-shadow: 0 0 28px rgba(185, 240, 210, 0.14);
}

.intake-icon::after {
  width: 11px;
  height: 11px;
  right: 20px;
  bottom: 25px;
  border-top: 0;
  border-left: 0;
  transform: rotate(35deg);
  background: var(--bg);
}

.process-icon {
  animation: none;
}

.process-icon::before,
.process-icon::after {
  content: "";
  position: absolute;
}

.process-icon::before {
  left: 18px;
  right: 18px;
  top: 40px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

.process-icon::after {
  left: 21px;
  top: 43px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  animation: loadingSweep 1.8s ease-in-out infinite;
}

.document-icon {
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
  animation: docGlow 3s ease-in-out infinite;
}

.document-icon::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.document-icon::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 38px;
  width: 19px;
  height: 10px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.flow-arrow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.terminal-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.terminal-section > .section-heading,
.terminal-window {
  width: 100%;
}

.terminal-window {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030303;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #ff5f56; }
.terminal-top span:nth-child(2) { background: #ffbd2e; }
.terminal-top span:nth-child(3) { background: #27c93f; }

.terminal-top small {
  margin-left: 10px;
  color: var(--quiet);
  font-size: 0.76rem;
}

#terminalText {
  min-height: clamp(180px, 22vw, 250px);
  margin: 0;
  padding: clamp(22px, 4vw, 38px);
  color: var(--green);
  font: 600 clamp(0.9rem, 1.55vw, 1.1rem)/1.8 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

#terminalText::after {
  content: "_";
  animation: cursorBlink 900ms steps(2, end) infinite;
}

.pdf-output {
  width: min(330px, calc(100% - 44px));
  max-height: 0;
  min-height: 0;
  margin: 0 auto;
  padding: 0 30px;
  border-radius: 6px;
  color: #101010;
  background:
    linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.82), transparent 44%),
    #f4f1e8;
  background-size: 260% 100%;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  overflow: hidden;
  transition: max-height 520ms ease, min-height 520ms ease, padding 520ms ease, margin 520ms ease, opacity 420ms ease, transform 420ms ease;
}

.pdf-output.is-ready {
  max-height: 520px;
  min-height: 430px;
  margin: 0 auto 34px;
  padding: 30px;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pdfArrive 620ms ease forwards, sheen 4.8s ease-in-out infinite 620ms;
}

.pdf-output small {
  display: block;
  margin-bottom: 18px;
  color: #6a675d;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdf-output strong {
  display: block;
  margin-bottom: 34px;
  font-size: 2rem;
  line-height: 1.04;
}

.pdf-output span {
  display: block;
  height: 10px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.pdf-output span:nth-of-type(1) { width: 92%; }
.pdf-output span:nth-of-type(2) { width: 74%; }
.pdf-output span:nth-of-type(3) { width: 84%; }

.pdf-output em {
  display: block;
  margin-top: 70px;
  color: #444036;
  font-style: normal;
  font-weight: 800;
}

.pricing-section,
.pain-section,
.intro-section,
.delivery-section,
.stack-section {
  display: none;
}

@keyframes titleScan {
  0%, 100% { top: 4%; opacity: 0; }
  12%, 88% { opacity: 1; }
  50% { top: 92%; opacity: 0.72; }
}

@keyframes headlinePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(185, 240, 210, 0); }
  50% { text-shadow: 0 0 30px rgba(185, 240, 210, 0.09); }
}

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

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 240, 210, 0.2); }
  50% { box-shadow: 0 0 0 18px rgba(185, 240, 210, 0); }
}

@keyframes docGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 42px rgba(255, 255, 255, 0.26); }
}

@keyframes loadingSweep {
  0%, 100% { transform: translateX(0); width: 12px; opacity: 0.5; }
  50% { transform: translateX(25px); width: 26px; opacity: 1; }
}

@keyframes ctaGlitch {
  0% { transform: translate(0); filter: contrast(1); }
  35% { transform: translate(2px, -1px); filter: contrast(1.4); }
  70% { transform: translate(-2px, 1px); filter: contrast(1.1); }
  100% { transform: translate(0); filter: contrast(1); }
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

@keyframes pdfArrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes leakDrop {
  0%, 100% { transform: translateY(-4px); opacity: 0.32; }
  50% { transform: translateY(18px); opacity: 1; }
}

@media (max-width: 980px) {
  .flow-chart {
    grid-template-columns: 1fr;
  }

  .pain-visual-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 1px;
    height: 48px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  }

  .flow-arrow::after {
    right: -4px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  .flow-step {
    min-height: 230px;
  }

  .flow-step p {
    max-height: 150px;
    opacity: 1;
    transform: none;
  }
}
