:root {
  color-scheme: light;
  --paper: #f7fbff;
  --paper-2: #eaf3ff;
  --ink: #081936;
  --muted: #5d6f86;
  --line: rgb(21 52 96 / 12%);
  --deep: #061832;
  --deep-2: #0d2a55;
  --deep-muted: #a9c4e8;
  --accent: #1f6ff2;
  --accent-2: #5ee7ff;
  --white: #ffffff;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--ink);
  background: rgb(255 255 255 / 86%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  justify-content: center;
  color: #39506d;
  font-size: 14px;
  font-weight: 760;
}

.header-actions,
.hero-actions,
.access-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-nav a,
.ghost-link,
.solid-link,
.primary-action,
.secondary-action,
.access-link {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a:hover,
.ghost-link:hover,
.secondary-action:hover {
  color: var(--accent);
}

.ghost-link,
.solid-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.solid-link,
.primary-action {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.ghost-link,
.secondary-action {
  color: var(--ink);
  background: rgb(255 255 255 / 72%);
}

.solid-link:hover,
.primary-action:hover {
  transform: translateY(-2px);
  color: var(--white);
  background: #0b56ca;
  border-color: #0b56ca;
  box-shadow: 0 18px 38px rgb(31 111 242 / 24%);
}

.ghost-link:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  background: rgb(31 111 242 / 7%);
  border-color: rgb(31 111 242 / 26%);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(88svh - 76px);
  padding: 52px max(22px, calc((100vw - var(--max)) / 2)) 68px;
  color: var(--ink);
  overflow: hidden;
  background: var(--paper);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 16svh;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(0.96) contrast(1.04);
  animation: imageFloat 18s ease-in-out infinite alternate;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(247 251 255 / 96%) 0%, rgb(247 251 255 / 80%) 36%, rgb(247 251 255 / 18%) 70%, rgb(247 251 255 / 54%) 100%),
    linear-gradient(180deg, rgb(247 251 255 / 22%) 0%, transparent 36%, rgb(247 251 255 / 82%) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.flow-section .eyebrow,
.access-section .eyebrow {
  color: var(--accent);
}

.access-section .eyebrow {
  color: var(--accent-2);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 7.2vw, 104px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-line {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}

.section-heading h2,
.operate-copy h2,
.proof-copy h2,
.access-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.operate-lead,
.proof-copy p,
.access-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.flow-section {
  padding: 118px max(22px, calc((100vw - var(--max)) / 2)) 108px;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 24%, rgb(31 111 242 / 10%), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, #eef6ff 48%, var(--paper) 100%);
}

.flow-section .section-heading p {
  color: var(--muted);
}

.flow-map {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid rgb(31 111 242 / 12%);
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 34px 90px rgb(21 52 96 / 10%);
  scrollbar-width: thin;
  scrollbar-color: rgb(31 111 242 / 30%) transparent;
}

.flow-map::-webkit-scrollbar {
  height: 4px;
}

.flow-map::-webkit-scrollbar-thumb {
  background: rgb(31 111 242 / 30%);
  border-radius: 999px;
}

.flow-map::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(31 111 242 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 111 242 / 6%) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.flow-map svg {
  position: relative;
  width: 100%;
  height: auto;
}

.flow-line {
  fill: none;
  stroke: rgb(21 52 96 / 24%);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url("#arrow");
}

.flow-line-return {
  stroke-dasharray: 7 11;
  opacity: 0.7;
}

.flow-motion {
  fill: none;
  stroke: url("#lineGradient");
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 136 780;
  animation: flowMove 4.8s ease-in-out infinite;
}

.flow-motion-return {
  animation-delay: 1.4s;
  opacity: 0.76;
}

#arrow path {
  fill: var(--accent);
}

.flow-node rect,
.flow-core rect {
  fill: rgb(255 255 255 / 88%);
  stroke: rgb(21 52 96 / 18%);
  stroke-width: 1.4;
}

.flow-core rect {
  fill: rgb(235 245 255 / 92%);
  stroke: rgb(31 111 242 / 40%);
}

.flow-node text,
.flow-core text {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 820;
}

.flow-node text + text,
.flow-core text + text {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 740;
}

.flow-node-small text {
  font-size: 14px;
}

.flow-node-small text + text {
  font-size: 12px;
}

.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgb(31 111 242 / 12%);
}

.flow-steps::before {
  position: absolute;
  top: 28px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgb(31 111 242 / 16%), rgb(31 111 242 / 36%), rgb(94 231 255 / 48%), rgb(31 111 242 / 16%));
}

.flow-steps article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 126px;
  padding: 28px 0 0;
}

.flow-steps span {
  position: absolute;
  top: -35px;
  left: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #2b7bff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  background: var(--paper);
}

.flow-steps span::before {
  width: 10px;
  height: 10px;
  content: "";
  background: #2b7bff;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(31 111 242 / 30%);
}

.flow-steps h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.24;
}

.flow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.operate-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
  padding: 118px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}

.operate-copy {
  position: sticky;
  top: 116px;
}

.operate-lead {
  max-width: 540px;
}

.operate-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.operate-grid article {
  display: grid;
  gap: 14px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.operate-grid span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.operate-grid h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.operate-grid p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(0, 0.72fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2)) 118px;
  background: var(--paper);
}

.proof-media {
  min-height: 560px;
  overflow: hidden;
  background: var(--paper-2);
}

.proof-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 48% 50%;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 900ms ease;
}

.proof-media:hover img {
  transform: scale(1.035);
}

.proof-copy {
  max-width: 520px;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding: 118px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(120deg, rgb(6 24 50 / 96%), rgb(13 42 85 / 88%)),
    url("./assets/hero-dsp-ops.jpg") center / cover;
}

.access-copy p {
  color: var(--deep-muted);
  max-width: 460px;
}

.access-actions {
  align-items: stretch;
}

.access-link {
  display: grid;
  gap: 14px;
  width: 100%;
  min-height: 160px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(14px);
}

.access-link:hover {
  transform: translateY(-4px);
  border-color: rgb(94 231 255 / 52%);
  background: rgb(255 255 255 / 12%);
}

.access-link span {
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 850;
}

.access-link strong {
  color: var(--white);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.36;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px max(22px, calc((100vw - var(--max)) / 2));
  color: #6a7773;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

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

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

@keyframes imageFloat {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.055) translate3d(-1%, -0.8%, 0);
  }
}

@keyframes flowMove {
  0% {
    stroke-dashoffset: 820;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

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

  .hero-media img,
  .flow-motion,
  .reveal {
    animation: none;
    transition: none;
  }

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

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

  .site-nav {
    display: none;
  }

  .operate-section,
  .proof-section,
  .access-section {
    grid-template-columns: 1fr;
  }

  .operate-copy {
    position: static;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand span {
    display: none;
  }

  .ghost-link,
  .solid-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
    padding-bottom: 54px;
  }

  .hero-media img {
    object-position: 52% 50%;
  }

  .hero h1 {
    font-size: clamp(36px, 9.8vw, 46px);
    line-height: 1.05;
  }

  .section-heading h2,
  .operate-copy h2,
  .proof-copy h2,
  .access-copy h2 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.14;
  }

  .hero-line,
  .section-heading p,
  .operate-lead,
  .operate-grid p,
  .proof-copy p,
  .access-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .access-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    min-height: 50px;
  }

  .flow-section,
  .operate-section,
  .access-section {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .proof-section {
    padding-bottom: 82px;
  }

  .flow-map {
    overflow-x: auto;
    padding: 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .flow-map svg {
    min-width: 600px;
    scroll-snap-align: start;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
    padding-top: 0;
    border-top: 0;
  }

  .flow-steps::before {
    top: 0;
    bottom: 0;
    left: 6px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgb(94 231 255 / 0%), rgb(94 231 255 / 42%), rgb(31 111 242 / 48%), rgb(94 231 255 / 0%));
  }

  .flow-steps article,
  .flow-steps article:nth-child(2) {
    min-height: 0;
    padding: 0 0 0 34px;
    border: 0;
  }

  .flow-steps span {
    position: static;
    justify-self: start;
    width: auto;
    background: transparent;
  }

  .flow-steps span::before {
    position: absolute;
    top: 3px;
    left: 0;
  }

  .proof-media,
  .proof-media img {
    min-height: 310px;
  }

  .access-link {
    min-height: 136px;
  }

  .site-footer {
    flex-direction: column;
  }
}
