:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0b0b11;
  --panel: rgba(18, 18, 28, 0.76);
  --panel-strong: rgba(26, 26, 39, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #fbfbff;
  --muted: #a7a7b8;
  --soft: #d7d7e2;
  --accent: #ff4d2e;
  --accent-2: #ff8d3a;
  --green: #5dffb1;
  --blue: #85b7ff;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.56);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-body: "Manrope", ui-sans-serif, sans-serif;
  --font-code: "DM Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 77, 46, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(133, 183, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #08080c 0%, var(--bg) 42%, #07070a 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.52'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button {
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 44px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 9, 14, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.console-topbar,
.prompt-row,
.beta-panel {
  display: flex;
  align-items: center;
}

.brand {
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 128px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(255, 77, 46, 0.18));
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a,
.nav-cta {
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a {
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-cta {
  padding: 11px 16px;
  background: #f7f4eb;
  color: #0a0a0f;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 28px 0 84px;
}

.hero::before {
  position: absolute;
  top: 2%;
  left: 43%;
  width: 1px;
  height: 78%;
  content: "";
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(16deg);
}

.hero-copy,
.agent-stage,
.section-heading,
.workflow-grid article,
.capability-card,
.beta-panel {
  animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-2);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-lede,
.section-heading p:not(.eyebrow),
.beta-panel p,
.capability-card p,
.workflow-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 1.13rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  appearance: none;
}

.button-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 50px rgba(255, 77, 46, 0.34);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats div {
  min-width: 142px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats dt {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-code);
  font-size: 0.92rem;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.agent-stage {
  position: relative;
  min-height: 620px;
  animation-delay: 120ms;
}

.agent-stage::before {
  position: absolute;
  inset: 4% -8% 2% 4%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.035);
  transform: rotate(-4deg);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.86;
}

.orb-one {
  top: 16px;
  right: 22px;
  width: 164px;
  height: 164px;
  background: radial-gradient(circle at 38% 34%, #fff7d7, var(--accent-2) 36%, transparent 68%);
  animation: float 7s ease-in-out infinite;
}

.orb-two {
  bottom: 40px;
  left: -20px;
  width: 112px;
  height: 112px;
  background: radial-gradient(circle at 35% 30%, #d9ffff, var(--blue) 42%, transparent 70%);
  animation: float 8s ease-in-out 1s infinite reverse;
}

.console-card {
  position: absolute;
  top: 58px;
  right: 0;
  left: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(11, 11, 18, 0.82);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(28px);
}

.console-card::after {
  position: absolute;
  right: -30%;
  bottom: -35%;
  width: 72%;
  height: 72%;
  content: "";
  background: radial-gradient(circle, rgba(255, 77, 46, 0.22), transparent 65%);
  pointer-events: none;
}

.console-topbar {
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.76rem;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.traffic-lights span:first-child {
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) {
  background: #ffbd2e;
}

.traffic-lights span:nth-child(3) {
  background: #28c840;
}

.beta-pill {
  padding: 5px 9px;
  border: 1px solid rgba(255, 141, 58, 0.35);
  border-radius: 999px;
  color: var(--accent-2);
  text-transform: uppercase;
}

.prompt-row {
  gap: 12px;
  margin: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--font-code);
  font-size: 0.88rem;
}

.prompt-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 77, 46, 0.18);
  color: var(--accent-2);
}

.prompt-row kbd {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--font-code);
}

.run-log {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 8px 22px 28px;
  list-style: none;
}

.run-log li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.status {
  position: relative;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}

.status.complete {
  background: var(--green);
  box-shadow: 0 0 18px rgba(93, 255, 177, 0.65);
}

.status.active {
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(255, 141, 58, 0.7);
  animation: pulse 1.7s ease-in-out infinite;
}

.status.queued {
  background: rgba(255, 255, 255, 0.28);
}

.run-log strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.run-log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 13, 20, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  color: var(--soft);
  font-family: var(--font-code);
  font-size: 0.78rem;
  backdrop-filter: blur(18px);
}

.chip-left {
  bottom: 138px;
  left: 0;
  transform: rotate(-5deg);
}

.chip-right {
  right: -6px;
  bottom: 88px;
  transform: rotate(4deg);
}

.section {
  padding: 92px 0;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workflow-grid article,
.capability-card,
.beta-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.workflow-grid article {
  min-height: 280px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.workflow-grid article:nth-child(2) {
  animation-delay: 80ms;
}

.workflow-grid article:nth-child(3) {
  animation-delay: 160ms;
}

.step-number {
  display: inline-flex;
  margin-bottom: 70px;
  color: var(--accent-2);
  font-family: var(--font-code);
  font-size: 0.84rem;
}

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

.capability-card {
  min-height: 250px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.large-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 77, 46, 0.28), transparent 22rem),
    var(--panel-strong);
}

.wide-card {
  grid-column: span 2;
}

.icon-glyph {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-2);
  font-family: var(--font-code);
  font-size: 1.1rem;
}

.beta {
  padding-bottom: 120px;
}

.beta-panel {
  align-items: stretch;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 141, 58, 0.32), transparent 24rem),
    radial-gradient(circle at 15% 95%, rgba(133, 183, 255, 0.18), transparent 24rem),
    rgba(19, 19, 30, 0.82);
}

.beta-panel > div {
  max-width: 620px;
}

.beta-panel p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.beta-form {
  display: grid;
  flex: 0 1 460px;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(5, 5, 8, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.beta-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.beta-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.beta-form input::placeholder {
  color: rgba(215, 215, 226, 0.5);
}

.beta-form input:focus {
  border-color: rgba(255, 141, 58, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.16);
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px !important;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.beta-button {
  flex: 0 0 auto;
  min-width: 164px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(8deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .nav {
    top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 18px;
  }

  .hero::before {
    display: none;
  }

  .agent-stage {
    min-height: 560px;
  }

  .workflow-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .large-card,
  .wide-card {
    grid-column: auto;
  }

  .step-number,
  .icon-glyph {
    margin-bottom: 36px;
  }

  .beta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .beta-form {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 22px, 520px);
  }

  .nav {
    border-radius: 22px;
  }

  .brand-logo {
    width: 108px;
  }

  .nav-cta {
    padding-inline: 13px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

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

  .hero-stats div {
    width: 100%;
  }

  .agent-stage {
    min-height: 520px;
  }

  .agent-stage::before {
    inset: 8% -18% 2% 6%;
  }

  .console-card {
    left: 0;
  }

  .prompt-row {
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 16px;
  }

  .run-log {
    padding: 0 16px 20px;
  }

  .beta-form-row {
    grid-template-columns: 1fr;
  }

  .beta-button {
    width: 100%;
  }

  .floating-chip {
    display: none;
  }

  .section {
    padding: 66px 0;
  }

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

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