@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --bg: #ffffff;
  --subtle: #fafafa;
  --fg: #171717;
  --muted: #4d4d4d;
  --soft: #737373;
  --line: #0000001f;
  --line-strong: #0000003d;
  --grid: #0000000d;
  --blue: #0070f3;
  --blue-soft: #f0f7ff;
  --blue-line: #d8eaff;
  --green: #2f9461;
  --green-soft: #f1fbf5;
  --green-line: #d9f2e3;
  --amber: #e8a400;
  --amber-soft: #fff8e6;
  --amber-line: #ffe5a3;
  --red: #d64545;
  --gray-soft: #f5f5f5;
  --content-width: 1104px;
  --grid-unit: 48px;
  --sans: "Geist", "Aptos", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --transition: all 0.16s ease;
  --spotlight-x: 50%;
  --spotlight-y: 280px;
  --spotlight-opacity: 0.7;
}

@media (max-width: 1200px) {
  :root { --content-width: 960px; }
}

@media (max-width: 1056px) {
  :root { --content-width: 864px; }
}

@media (max-width: 960px) {
  :root { --content-width: 768px; }
}

@media (max-width: 864px) {
  :root { --content-width: 672px; }
}

@media (max-width: 768px) {
  :root { --content-width: 576px; }
}

@media (max-width: 672px) {
  :root { --content-width: 480px; }
}

@media (max-width: 576px) {
  :root { --content-width: 384px; }
}

@media (max-width: 432px) {
  :root { --content-width: 336px; }
}

@media (max-width: 384px) {
  :root { --content-width: 288px; }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricprecision;
}

body::before,
body::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - var(--content-width)) / 2 - 960px);
  z-index: 0;
  width: calc(var(--content-width) + 1920px);
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 0 0, #00000012 0 1px, transparent 1.5px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  opacity: 0.9;
}

body::after {
  background:
    radial-gradient(circle at 0 0, rgba(0, 112, 243, 0.24) 0 1px, transparent 1.5px),
    linear-gradient(rgba(0, 112, 243, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 243, 0.12) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  opacity: var(--spotlight-opacity);
  -webkit-mask-image: radial-gradient(520px circle at var(--spotlight-x) var(--spotlight-y), #000 0%, rgba(0, 0, 0, 0.7) 34%, transparent 72%);
  mask-image: radial-gradient(520px circle at var(--spotlight-x) var(--spotlight-y), #000 0%, rgba(0, 0, 0, 0.7) 34%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content-width), calc(100% - 32px));
  height: 88px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  place-items: center;
}

.brand-mark::before {
  width: 10px;
  height: 10px;
  background: var(--blue);
  content: "";
}

.brand-wordmark {
  position: relative;
}

.brand-wordmark::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: brand-scan 5.2s ease-in-out infinite;
}

@keyframes brand-scan {
  0%, 18% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  38%, 62% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }

  82%, 100% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
  line-height: 20px;
  padding: 0 14px;
}

.nav a:hover,
.nav a.active {
  border-color: var(--blue-line);
  background: var(--blue-soft);
  color: var(--fg);
}

.nav a.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 1px;
  background: var(--blue);
  content: "";
}

main {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.hero {
  min-height: 576px;
  border-bottom: 1px solid var(--line);
  padding: 48px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 672px) 384px;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  min-height: 48px;
  border: 1px solid var(--section-border, var(--line));
  background: var(--section-soft, var(--subtle));
  color: var(--section-accent, var(--fg));
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 16px;
  padding: 0 12px;
  text-transform: uppercase;
}

.label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 768px;
  margin-top: 24px;
  font-size: 72px;
  font-weight: 620;
  line-height: 80px;
}

h2 {
  font-size: 40px;
  font-weight: 620;
  line-height: 48px;
}

h3 {
  font-size: 20px;
  font-weight: 620;
  line-height: 28px;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 672px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 32px;
}

.lead::before {
  display: block;
  width: 96px;
  height: 1px;
  margin-bottom: 23px;
  background: var(--line-strong);
  content: "";
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 560;
  line-height: 20px;
  padding: 0 18px;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--subtle);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: #005bd1;
}

.hero-card,
.metric-card,
.flow-node,
.code-panel,
.chart-card,
.step,
.card,
.access-panel {
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 0 0 1px #00000008;
  transition: var(--transition);
}

.hero-card:hover,
.metric-card:hover,
.flow-node:hover,
.code-panel:hover,
.chart-card:hover,
.step:hover,
.card:hover,
.access-panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px #00000024;
  transform: translateY(-1px);
}

.hero-card {
  position: relative;
  height: 288px;
  border-color: var(--green-line);
  padding: 32px;
}

.hero-card::before,
.step::before,
.chart-card.wide::before,
.flow-node.accent::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 1px;
  background: var(--module-accent, var(--green));
  content: "";
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  padding-bottom: 20px;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green-line);
  background: var(--green);
}

.facts {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

.facts strong {
  color: var(--fg);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.section {
  padding: 96px 0 0;
  scroll-margin-top: 104px;
}

.section-title {
  display: grid;
  align-content: start;
  gap: 16px;
  max-width: 768px;
  min-height: 192px;
  margin-bottom: 48px;
}

.section-title.compact {
  min-height: auto;
}

.section-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 4px;
  height: 24px;
  background: var(--section-accent, var(--fg));
  content: "";
}

.section-title p {
  max-width: 672px;
  font-size: 16px;
  line-height: 24px;
}

#processo {
  --section-accent: var(--blue);
  --section-soft: var(--blue-soft);
  --section-border: var(--blue-line);
}

#ai {
  --section-accent: var(--green);
  --section-soft: var(--green-soft);
  --section-border: var(--green-line);
}

#numeri {
  --section-accent: var(--amber);
  --section-soft: var(--amber-soft);
  --section-border: var(--amber-line);
}

#timeline {
  --section-accent: var(--blue);
  --section-soft: var(--blue-soft);
  --section-border: var(--blue-line);
}

#interventi,
#accessi {
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
}

.snapshot {
  padding-top: 64px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  min-height: 168px;
  padding: 24px;
}

.metric-label {
  display: block;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  color: var(--fg);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 36px;
}

.mini-range {
  position: relative;
  height: 8px;
  margin-top: 22px;
  background: var(--gray-soft);
  overflow: hidden;
}

.mini-range::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--start);
  width: calc(var(--end) - var(--start));
  background: var(--blue);
  content: "";
}

.mini-range.reverse::before {
  background: var(--amber);
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--blue-line);
  background: var(--bg);
}

.flow-node {
  position: relative;
  min-height: 280px;
  border: 0;
  border-right: 1px solid var(--blue-line);
  padding: 28px;
}

.flow-node:last-child {
  border-right: 0;
}

.flow-node::after {
  position: absolute;
  top: 32px;
  right: -8px;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  background: var(--bg);
  content: "";
  transform: rotate(45deg);
}

.flow-node:last-child::after {
  content: none;
}

.flow-node span,
.card-index {
  display: inline-grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.flow-node h3 {
  margin-top: 28px;
}

.flow-node p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
}

.flow-node.accent {
  --module-accent: var(--green);
  background: linear-gradient(180deg, var(--green-soft), #fff 62%);
}

.flow-node.accent span {
  border-color: var(--green-line);
  background: #fff;
  color: var(--green);
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 528px) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}

.ai-engine {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--green-line);
  background:
    linear-gradient(var(--green-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-line) 1px, transparent 1px),
    var(--green-soft);
  background-size: 48px 48px;
  overflow: hidden;
}

.ai-engine-3d {
  --engine-tilt-x: 0deg;
  --engine-tilt-y: 0deg;
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 148, 97, 0.1), transparent 44%),
    linear-gradient(var(--green-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-line) 1px, transparent 1px),
    var(--green-soft);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.ai-engine-3d::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(47, 148, 97, 0.08);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(47, 148, 97, 0.18) 49% 51%, transparent 51% 100%),
    linear-gradient(0deg, transparent 0 49%, rgba(47, 148, 97, 0.18) 49% 51%, transparent 51% 100%);
  opacity: 0.35;
  pointer-events: none;
  content: "";
}

.ai-engine-3d::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(47, 148, 97, 0.24);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(28deg);
  transform-style: preserve-3d;
}

.ai-engine-3d.is-static-fallback::after {
  opacity: 1;
  animation: fallback-system-spin 14s linear infinite;
}

.ai-engine-3d.is-static-fallback .engine-3d-label {
  box-shadow:
    0 0 0 64px rgba(47, 148, 97, 0.045),
    0 0 0 128px rgba(0, 112, 243, 0.035);
}

@keyframes fallback-system-spin {
  from {
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(360deg);
  }
}

#ai-system-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.engine-css-system {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 390px;
  height: 390px;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    perspective(780px)
    rotateX(calc(58deg + var(--engine-tilt-y)))
    rotateY(var(--engine-tilt-x))
    rotateZ(28deg);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}

.engine-plane,
.engine-axis,
.engine-css-label {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.engine-plane {
  inset: 52px;
  border: 1px solid rgba(47, 148, 97, 0.25);
}

.engine-plane::before,
.engine-plane::after {
  position: absolute;
  background: rgba(47, 148, 97, 0.16);
  content: "";
}

.engine-plane::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.engine-plane::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.plane-a {
  transform: translateZ(-42px);
}

.plane-b {
  border-color: rgba(0, 112, 243, 0.22);
  transform: rotateY(62deg) translateZ(12px);
}

.plane-c {
  border-color: rgba(232, 164, 0, 0.24);
  transform: rotateX(62deg) translateZ(28px);
}

.axis-x,
.axis-y,
.axis-z {
  top: 50%;
  left: 50%;
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 148, 97, 0.34), transparent);
  transform-origin: left center;
}

.axis-x {
  transform: translate3d(-150px, 0, 48px);
}

.axis-y {
  background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0.28), transparent);
  transform: translate3d(-150px, 0, 48px) rotateZ(90deg);
}

.axis-z {
  background: linear-gradient(90deg, transparent, rgba(232, 164, 0, 0.3), transparent);
  transform: translate3d(-150px, 0, 48px) rotateY(90deg);
}

.engine-css-label {
  min-height: 32px;
  border: 1px solid rgba(47, 148, 97, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 620;
  line-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
  transform: translateZ(62px) rotateZ(-28deg) rotateX(-58deg);
}

.label-query {
  top: 54px;
  left: 78px;
}

.label-audience {
  top: 88px;
  right: 54px;
}

.label-cpl {
  right: 62px;
  bottom: 82px;
}

.label-lead {
  bottom: 58px;
  left: 82px;
}

.label-budget {
  top: 186px;
  left: 36px;
}

.label-creativity {
  top: 190px;
  right: 28px;
}

.engine-3d-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 144px;
  min-height: 104px;
  place-items: center;
  border: 1px solid var(--green);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
}

.engine-3d-label span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 750;
  line-height: 32px;
}

.engine-3d-label strong {
  margin-top: -20px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 650;
}

.engine-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--green);
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 296px;
  height: 296px;
  opacity: 0.42;
}

.ring-two {
  width: 408px;
  height: 408px;
  opacity: 0.22;
}

.code-panel {
  display: grid;
  align-content: center;
  min-height: 480px;
  border-color: var(--green-line);
  background: var(--bg);
}

.code-line {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
}

.code-line:last-child {
  border-bottom: 0;
}

.code-line span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 620;
  text-transform: uppercase;
}

.code-line strong {
  color: var(--fg);
  font-size: 16px;
  font-weight: 580;
  line-height: 24px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chart-card {
  position: relative;
  min-height: 384px;
  padding: 28px;
}

.chart-card.wide {
  --module-accent: var(--amber);
  grid-column: 1 / -1;
  min-height: auto;
  border-color: var(--amber-line);
}

.chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.chart-head span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 10px;
}

.range-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.range-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.range-row strong {
  color: var(--fg);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.range-track {
  height: 16px;
  background: var(--gray-soft);
  overflow: hidden;
}

.range-track i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--amber);
}

.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  color: var(--fg);
}

.total-line span {
  font-size: 16px;
  font-weight: 650;
}

.total-line strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  line-height: 36px;
  text-align: right;
}

.donut {
  width: 192px;
  height: 192px;
  margin: 42px auto 32px;
  border: 1px solid var(--line);
  background: conic-gradient(var(--blue) 0 45%, var(--green) 45% 80%, var(--amber) 80% 90%, #a3a3a3 90% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 52px, #000 53px);
  mask: radial-gradient(circle, transparent 0 52px, #000 53px);
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.legend .blue { background: var(--blue); }
.legend .green { background: var(--green); }
.legend .amber { background: var(--amber); }
.legend .gray { background: #a3a3a3; }

.scenario-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  height: 272px;
  padding-top: 32px;
}

.scenario-bars div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  height: 100%;
  gap: 12px;
  text-align: center;
}

.scenario-bars span {
  color: var(--muted);
  font-size: 13px;
}

.scenario-bars i {
  display: block;
  width: 100%;
  height: var(--h);
  min-height: 32px;
  background: linear-gradient(180deg, var(--blue), #81bfff);
}

.scenario-bars strong {
  color: var(--fg);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.pipeline {
  position: relative;
  display: grid;
  gap: 32px;
}

.pipeline::before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 35px;
  width: 2px;
  background: var(--blue);
  content: "";
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  min-height: 224px;
  border-color: var(--blue-line);
  padding: 32px;
  overflow: hidden;
}

.step::before {
  --module-accent: var(--blue);
}

.step-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 2;
}

.step-body {
  display: grid;
  gap: 12px;
  max-width: 816px;
}

.step-meta {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 580;
  line-height: 16px;
}

.step-body p {
  max-width: 768px;
  font-size: 15px;
  line-height: 24px;
}

.step ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.step li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  color: var(--fg);
  font-size: 13px;
  font-weight: 520;
  padding: 0 12px;
}

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

.card {
  min-height: 264px;
  padding: 28px;
}

.card-index {
  border-color: var(--line);
  background: var(--subtle);
  color: var(--fg);
}

.card h3 {
  margin-top: 28px;
}

.card p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
}

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

.access-panel {
  min-height: 328px;
  padding: 28px;
}

.access-panel h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.access-panel ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.access-panel li {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
  padding-left: 20px;
}

.access-panel li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--fg);
  content: "";
}

@media (max-width: 960px) {
  .topbar-inner {
    height: auto;
    min-height: 80px;
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

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

  .hero-card {
    height: auto;
  }

  h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .snapshot-grid,
  .cards.three,
  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-map {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--blue-line);
  }

  .flow-node:last-child {
    border-bottom: 0;
  }

  .flow-node::after {
    top: auto;
    right: auto;
    bottom: -8px;
    left: 32px;
    transform: rotate(135deg);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 672px) {
  main {
    padding-top: 32px;
  }

  .topbar {
    position: static;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    width: 100%;
    gap: 2px;
    justify-content: flex-start;
  }

  .nav a {
    min-height: 34px;
    font-size: 12px;
    padding: 0 6px;
  }

  h1 {
    font-size: 38px;
    line-height: 46px;
    text-wrap: normal;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
    text-wrap: normal;
  }

  .section-title h2 {
    display: block;
  }

  .section-title h2::before {
    margin-right: 10px;
    vertical-align: -3px;
  }

  .lead {
    font-size: 18px;
    line-height: 29px;
  }

  .facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .facts strong {
    text-align: left;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 72px;
  }

  .section-title {
    min-height: auto;
    margin-bottom: 32px;
  }

  .snapshot-grid,
  .cards.three,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .card,
  .access-panel,
  .chart-card,
  .flow-node,
  .step,
  .hero-card {
    padding: 22px;
  }

  .range-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .range-row strong {
    text-align: left;
  }

  .total-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
  }

  .total-line strong {
    font-size: 24px;
    line-height: 32px;
    text-align: left;
  }

  .legend {
    grid-template-columns: 1fr;
  }

  .ai-engine,
  .code-panel {
    min-height: 420px;
  }

  .engine-css-system {
    width: 310px;
    height: 310px;
  }

  .engine-plane {
    inset: 42px;
  }

  .axis-x,
  .axis-y,
  .axis-z {
    width: 236px;
  }

  .axis-x {
    transform: translate3d(-118px, 0, 42px);
  }

  .axis-y {
    transform: translate3d(-118px, 0, 42px) rotateZ(90deg);
  }

  .axis-z {
    transform: translate3d(-118px, 0, 42px) rotateY(90deg);
  }

  .engine-css-label {
    min-height: 28px;
    font-size: 10px;
    line-height: 26px;
    padding: 0 8px;
  }

  .label-query { top: 40px; left: 52px; }
  .label-audience { top: 70px; right: 34px; }
  .label-cpl { right: 42px; bottom: 66px; }
  .label-lead { bottom: 42px; left: 54px; }
  .label-budget { top: 150px; left: 14px; }
  .label-creativity { top: 154px; right: 10px; }

  .code-line {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 0 22px;
  }

  .pipeline::before {
    left: 27px;
  }

  .step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .step-index {
    width: 40px;
    height: 40px;
  }
}
