:root {
  color-scheme: light;
  --stage: #fbfaf7;
  --stage-deep: #f2eee7;
  --paper: #fbfaf7;
  --paper-soft: rgba(255, 255, 255, 0.72);
  --ink: #15202a;
  --muted: #6f7476;
  --soft: #a9aa9f;
  --line: rgba(21, 32, 42, 0.09);
  --line-strong: rgba(21, 32, 42, 0.16);
  --accent: #b88d49;
  --accent-dark: #7a5b2f;
  --navy: #111e2a;
  --shadow: 0 34px 96px rgba(24, 42, 50, 0.25);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #fffdf9;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.preview-stage {
  width: 100%;
  margin: 0;
  padding: 0;
}

.browser-frame {
  padding: 0;
  border-radius: 0;
  background: #fffdf9;
  border: 0;
  box-shadow: none;
}

.browser-window {
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  background: #fffdf9;
}

.site-header {
  width: min(var(--max), calc(100% - 64px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 34px);
  color: var(--ink);
  font-size: 13px;
}

.brand,
.nav-cta,
.hero-actions,
.primary-action {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 7px;
  font-weight: 650;
  text-transform: lowercase;
}

.brand-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.nav-cta,
.primary-action {
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(21, 32, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-cta span,
.primary-action span {
  display: inline-grid;
  place-items: center;
  font-weight: 760;
  line-height: 1;
}

.hero-panel {
  position: relative;
  width: min(var(--max), calc(100% - 64px));
  min-height: 560px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f7f0e7;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.9), rgba(255, 253, 249, 0.72) 42%, rgba(255, 253, 249, 0.18) 72%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.5), transparent 50%, rgba(255, 253, 249, 0.3));
  pointer-events: none;
}

.hero-copy {
  width: min(520px, calc(100% - 40px));
  padding: clamp(66px, 9vw, 106px) 0 50px clamp(34px, 6vw, 72px);
}

.section-label {
  display: block;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1;
  font-weight: 590;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-action {
  min-height: 43px;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-action {
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 32px rgba(17, 30, 42, 0.12);
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #0c1721;
  box-shadow: 0 18px 44px rgba(17, 30, 42, 0.18);
}

.agent-card {
  position: absolute;
  right: clamp(34px, 5vw, 72px);
  top: clamp(110px, 15vw, 164px);
  width: min(500px, 44%);
  min-height: 268px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 208, 139, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 72% 24%, rgba(134, 169, 165, 0.22), transparent 128px),
    radial-gradient(circle at 42% 62%, rgba(184, 141, 73, 0.2), transparent 112px),
    linear-gradient(145deg, rgba(16, 26, 32, 0.92), rgba(32, 42, 44, 0.84) 52%, rgba(15, 25, 31, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 42px 42px, 42px 42px;
  color: #f9f7ef;
  box-shadow: 0 30px 90px rgba(10, 18, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(90deg, transparent, rgba(244, 208, 139, 0.08), transparent);
  pointer-events: none;
}

.agent-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 139, 0.58), transparent);
  opacity: 0.62;
  pointer-events: none;
}

.agent-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(249, 247, 239, 0.68);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(249, 247, 239, 0.74);
}

.agent-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd0a1;
  box-shadow: 0 0 0 5px rgba(143, 208, 161, 0.12), 0 0 20px rgba(143, 208, 161, 0.42);
}

.workflow-scene {
  position: relative;
  z-index: 1;
  height: 210px;
  margin-top: 8px;
  overflow: visible;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.flow-path {
  fill: none;
  stroke: url(#flow-gradient);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  opacity: 0;
  marker-end: url(#flow-arrow);
  filter: drop-shadow(0 0 8px rgba(244, 208, 139, 0.32));
}

.flow-arrow {
  fill: none;
  stroke: #f4d08b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-packet {
  fill: #f4d08b;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(244, 208, 139, 0.72));
}

.flow-node {
  position: absolute;
  z-index: 2;
  min-width: 104px;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 208, 139, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #f9f7ef;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
}

.flow-node span {
  color: #f4d08b;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.flow-node strong {
  font-size: 12px;
  line-height: 1.15;
  color: #fffdf7;
}

.node-input {
  left: 0;
  top: 102px;
}

.node-systems {
  left: 72px;
  top: 18px;
}

.agent-node {
  left: calc(50% - 72px);
  top: 82px;
  min-width: 118px;
  min-height: 78px;
  place-items: center;
  text-align: center;
  border-color: rgba(244, 208, 139, 0.48);
  background:
    radial-gradient(circle at 50% 22%, rgba(244, 208, 139, 0.28), transparent 42px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(244, 208, 139, 0.1), 0 0 46px rgba(244, 208, 139, 0.2), 0 22px 52px rgba(0, 0, 0, 0.22);
}

.agent-node::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 46% 48%, #f4d08b 0 4px, rgba(244, 208, 139, 0.18) 5px 100%);
  box-shadow: 0 0 32px rgba(244, 208, 139, 0.48);
}

.agent-node strong {
  font-size: 15px;
}

.node-output {
  right: 0;
  top: 108px;
}

.vectorpoint-loaded .flow-path {
  animation: draw-line 1350ms cubic-bezier(0.22, 0.74, 0.2, 1) forwards;
}

.vectorpoint-loaded .flow-packet {
  animation: packet-appear 700ms ease 900ms forwards;
}

.vectorpoint-loaded .path-systems-agent {
  animation-delay: 180ms;
}

.vectorpoint-loaded .path-agent-output {
  animation-delay: 320ms;
}

.vectorpoint-loaded .flow-node {
  animation: raise-node 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.vectorpoint-loaded .node-input {
  animation-delay: 120ms;
}

.vectorpoint-loaded .node-systems {
  animation-delay: 300ms;
}

.vectorpoint-loaded .agent-node {
  animation-delay: 560ms;
}

.vectorpoint-loaded .node-output {
  animation-delay: 820ms;
}

.section {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 82px) clamp(24px, 5vw, 58px);
  background: #fffdf9;
}

.section + .section,
.final-cta {
  border-top: 1px solid var(--line);
}

.offer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(540px, 1fr);
  gap: clamp(72px, 8vw, 112px);
}

.offer-section > div:first-child {
  min-width: 0;
}

.section.offer-section h2 {
  max-width: 520px;
  font-size: clamp(34px, 3.9vw, 52px);
}

.section h2,
.final-cta h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.98;
  font-weight: 560;
  letter-spacing: 0;
}

.offer-grid {
  display: grid;
  gap: 12px;
}

.offer-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.68fr) 1fr;
  gap: 18px;
  align-items: baseline;
  min-height: 102px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.offer-grid article:first-child {
  border-top: 0;
}

.offer-grid span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.offer-grid h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.14;
  font-weight: 620;
}

.offer-grid p,
.offer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.final-cta {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(46px, 7vw, 74px) clamp(24px, 5vw, 58px);
  background: linear-gradient(180deg, #fffdf9, #f5eee6);
}

.final-cta h2 {
  max-width: 620px;
}

@keyframes draw-line {
  0% {
    opacity: 0;
    stroke-dashoffset: 620;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes raise-node {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes packet-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero-panel,
  .section,
  .final-cta {
    width: 100%;
  }

  .preview-stage {
    width: 100%;
    padding-top: 0;
  }

  .browser-frame {
    padding: 0;
  }

  .site-header {
    gap: 14px;
  }

  .hero-panel {
    min-height: 760px;
  }

  .hero-panel::after {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 253, 249, 0.68) 54%, rgba(255, 253, 249, 0.2)),
      linear-gradient(90deg, rgba(255, 253, 249, 0.82), transparent 82%);
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 56px 24px 0;
  }

  .agent-card {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 28px;
    width: auto;
  }

  .offer-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .preview-stage {
    width: 100%;
    padding: 0;
  }

  .browser-frame {
    border-radius: 0;
    padding: 0;
  }

  .browser-window {
    border-radius: 0;
  }

  .site-header {
    min-height: 52px;
    padding: 0 14px;
  }

  .brand {
    font-size: 12px;
  }

  .nav-cta {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-panel {
    min-height: auto;
    margin: 0 0 9px;
    border-radius: 12px;
    padding-bottom: 8px;
  }

  .hero-image {
    object-position: 45% bottom;
  }

  .hero-copy {
    padding: 42px 18px 0;
  }

  .section-label {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action {
    width: 100%;
  }

  .agent-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 28px 12px 18px;
    padding: 14px;
  }

  .workflow-scene {
    height: 236px;
  }

  .node-systems {
    left: 8px;
    top: 8px;
  }

  .node-input {
    left: 0;
    top: 158px;
  }

  .agent-node {
    left: calc(50% - 59px);
    top: 82px;
  }

  .node-output {
    right: 0;
    top: 158px;
  }

  .section,
  .final-cta {
    padding: 46px 18px;
  }

  .section h2,
  .final-cta h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .offer-grid article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .final-cta {
    display: grid;
    text-align: left;
  }
}

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

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

  .flow-path,
  .flow-node {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }

  .flow-packet {
    opacity: 0 !important;
  }
}
