:root {
  --ink: #11151d;
  --muted: #5f6874;
  --paper: #f6f7f3;
  --white: #ffffff;
  --line: #d9ddd6;
  --line-strong: #b9c0b8;
  --blue: #2f66e8;
  --coral: #f35a3d;
  --green: #16865f;
  --yellow: #f2c94c;
  --shadow: 0 18px 55px rgba(17, 21, 29, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
}

.topbar-trust {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.status-dot,
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 134, 95, 0.12);
}

.topbar-action,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
}

.topbar-action {
  justify-self: end;
  padding: 0 18px;
}

.topbar-action svg,
.primary-action svg,
.proof-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.topbar-action:hover,
.primary-action:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.topbar-action:focus-visible,
.primary-action:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 4vw 30px;
  background: var(--paper);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 42px;
  right: 3vw;
  width: 132px;
  height: 14px;
  background: var(--yellow);
  transform: rotate(-3deg);
}

.hero::after {
  top: 76px;
  right: 8vw;
  width: 76px;
  height: 14px;
  background: var(--coral);
  transform: rotate(2deg);
}

.hero-copy,
.automation-demo,
.hero-actions {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.hero-copy {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p,
blockquote {
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: 82px;
  line-height: 0.96;
  font-weight: 850;
}

h1 span {
  display: block;
  color: var(--blue);
}

.subtitle {
  max-width: 760px;
  margin: 24px auto 0;
  color: #3e4651;
  font-size: 21px;
  line-height: 1.48;
}

.automation-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.demo-progress {
  position: absolute;
  top: 33px;
  right: 17%;
  left: 17%;
  z-index: 0;
  height: 2px;
  overflow: hidden;
  background: var(--line-strong);
}

.progress-line {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

.demo-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 278px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-top-width: 5px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.prompt-stage {
  border-top-color: var(--coral);
}

.build-stage {
  border-top-color: var(--blue);
}

.live-stage {
  border-top-color: var(--green);
}

.stage-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
}

.stage-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}

.prompt-stage .stage-number {
  color: var(--coral);
}

.build-stage .stage-number {
  color: var(--blue);
}

.live-stage .stage-number {
  color: var(--green);
}

.stage-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.stage-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

blockquote {
  position: relative;
  margin: 28px 0 22px;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--coral);
  font-size: 19px;
  font-weight: 720;
  line-height: 1.42;
}

.source-row,
.build-status,
.live-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.source-icon,
.runtime-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
}

.source-icon {
  width: 30px;
  height: 30px;
}

.source-icon svg,
.runtime-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.source-icon-coral {
  background: rgba(243, 90, 61, 0.12);
  color: var(--coral);
}

.code-window {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #29313d;
  border-radius: 5px;
  background: #141922;
  color: #f7f8fa;
}

.code-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #323a48;
  color: #c7ccd4;
  font-size: 11px;
}

.code-language {
  color: #8fb0ff;
}

pre {
  min-height: 94px;
  margin: 0;
  padding: 14px 12px;
  overflow: auto;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.code-blue {
  color: #8fb0ff;
}

.code-coral {
  color: #ff8d72;
}

.build-status {
  margin-top: 16px;
}

.build-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(47, 102, 232, 0.22);
  border-top-color: var(--blue);
  border-radius: 50%;
}

.runtime-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.runtime-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.runtime-icon {
  width: 27px;
  height: 27px;
}

.runtime-icon.coral {
  background: rgba(243, 90, 61, 0.12);
  color: var(--coral);
}

.runtime-icon.yellow {
  background: rgba(242, 201, 76, 0.22);
  color: #8c6810;
}

.runtime-icon.green {
  background: rgba(22, 134, 95, 0.12);
  color: var(--green);
}

.runtime-time {
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.live-state {
  margin-top: 18px;
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.primary-action {
  min-width: 226px;
  padding: 0 22px;
}

.primary-action:disabled,
.topbar-action:disabled {
  cursor: wait;
  opacity: 0.76;
}

.interaction-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: #343b45;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

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

.proof-item:nth-child(1) svg,
.proof-item:nth-child(4) svg {
  color: var(--green);
}

.proof-item:nth-child(2) svg,
.proof-item:nth-child(5) svg {
  color: var(--blue);
}

.proof-item:nth-child(3) svg {
  color: var(--coral);
}

.automation-demo[data-demo-state="running"] .progress-line {
  animation: progress 2.7s ease-out forwards;
}

.automation-demo[data-demo-state="running"] .prompt-stage,
.automation-demo[data-demo-state="running"] .build-stage,
.automation-demo[data-demo-state="running"] .live-stage {
  animation: stage-pulse 0.6s ease both;
}

.automation-demo[data-demo-state="running"] .build-stage {
  animation-delay: 0.75s;
}

.automation-demo[data-demo-state="running"] .live-stage {
  animation-delay: 1.65s;
}

.automation-demo[data-demo-state="running"] .build-spinner {
  animation: spin 0.75s linear infinite;
}

.automation-demo[data-demo-state="running"] .runtime-row {
  animation: runtime-enter 0.45s ease both;
}

.automation-demo[data-demo-state="running"] .runtime-row:nth-child(1) {
  animation-delay: 1.65s;
}

.automation-demo[data-demo-state="running"] .runtime-row:nth-child(2) {
  animation-delay: 1.95s;
}

.automation-demo[data-demo-state="running"] .runtime-row:nth-child(3) {
  animation-delay: 2.25s;
}

@keyframes progress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes stage-pulse {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes runtime-enter {
  0% {
    opacity: 0.28;
    transform: translateX(-8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  .topbar-trust {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .automation-demo {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 680px;
  }

  .demo-progress {
    top: 52px;
    right: auto;
    bottom: 52px;
    left: 41px;
    width: 2px;
    height: auto;
  }

  .progress-line {
    transform: scaleY(0);
    transform-origin: top;
  }

  .automation-demo[data-demo-state="running"] .progress-line {
    animation-name: progress-vertical;
  }

  .demo-stage {
    min-height: 0;
    padding: 20px;
  }

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

  .proof-item:nth-child(2n) {
    border-right: 0;
  }

  .proof-item:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1100px) and (min-width: 621px) {
  h1 {
    font-size: 66px;
  }

  .subtitle {
    font-size: 20px;
  }
}

@keyframes progress-vertical {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand {
    gap: 9px;
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .topbar-action {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
  }

  .topbar-action svg {
    width: 18px;
    height: 18px;
  }

  .hero {
    padding: 38px 16px 24px;
  }

  .hero::before {
    top: 20px;
    right: -24px;
    width: 98px;
    height: 10px;
  }

  .hero::after {
    top: 43px;
    right: 9px;
    width: 52px;
    height: 10px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.43;
  }

  .automation-demo {
    margin-top: 30px;
  }

  .demo-progress {
    left: 37px;
  }

  .demo-stage {
    padding: 18px;
  }

  blockquote {
    margin-top: 21px;
    font-size: 17px;
  }

  .code-window {
    margin-top: 18px;
  }

  pre {
    font-size: 11px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .primary-action {
    width: 100%;
  }

  .proof-item {
    min-height: 66px;
    padding: 12px 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
