@font-face {
  font-family: "Codex Sans";
  src: url("assets/OpenAISans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Codex Sans";
  src: url("assets/OpenAISans-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #080808;
  --muted: #656565;
  --line: rgba(8, 8, 8, 0.12);
  --soft: #f3f3f3;
  --blue: #4059ff;
  --green: #20a75a;
  font-family: "Codex Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--black);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

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

.progress {
  display: none;
}

.section-pad {
  padding: clamp(80px, 8vw, 128px) clamp(24px, 2.5vw, 32px);
}

.gradient-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/551d2833c538ae82.jpg");
  background-size: cover;
  background-position: calc(50% + var(--mouse-x, 0px)) calc(50% + var(--mouse-y, 0px));
}

.gradient-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.53);
}

.hero {
  min-height: 1413px;
  padding: 185px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  z-index: 2;
  width: min(620px, 100%);
}

.codex-icon {
  width: 92px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 25px rgba(34, 39, 134, 0.12));
}

.hero h1 {
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  width: min(430px, 100%);
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 40px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.primary-action {
  color: #fff;
  background: #000;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
}

.availability {
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-top: 125px;
}

.hero-product {
  width: 100%;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.08));
}

.trust {
  padding-top: 100px;
  padding-bottom: 350px;
  background: #fff;
}

.logo-row {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: clamp(35px, 7vw, 105px);
}

.logo-row img {
  width: 100%;
  max-width: 108px;
  max-height: 38px;
  margin: auto;
  filter: grayscale(1);
}

.agent-story {
  padding-top: 30px;
  padding-bottom: 20px;
  color: var(--black);
  background: #fff;
}

.story-intro,
.surfaces-heading,
.proof-heading {
  max-width: 1216px;
  margin: 0 auto 24px;
  text-align: center;
}

.story-intro h2,
.surfaces-heading h2,
.proof-heading h2,
.closing h2 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.feature-stack {
  max-width: 1216px;
  margin: auto;
}

.feature-card {
  --art-gradient:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(32, 36, 152, 0.08)),
    var(--card-bg);
  position: relative;
  min-height: 525px;
  margin-bottom: 128px;
  display: grid;
  grid-template-columns: minmax(0, 384fr) minmax(0, 800fr);
  grid-template-areas: "copy art";
  gap: 32px;
  align-items: center;
  color: var(--black);
}

.feature-card:nth-child(even) {
  grid-template-columns: minmax(0, 800fr) minmax(0, 384fr);
  grid-template-areas: "art copy";
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card::before {
  grid-area: art;
  align-self: stretch;
  z-index: 0;
  min-height: 525px;
  border-radius: 5px;
  background-image: var(--art-gradient);
  background-size: cover;
  background-position: center;
  content: "";
}

.feature-number {
  display: none;
}

.feature-copy {
  grid-area: copy;
  z-index: 2;
  align-self: end;
  padding: 0 0 12px;
}

.feature-copy h3 {
  font-size: 29px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.feature-copy > p:last-child {
  margin-top: 22px;
  color: #222;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.mini-window {
  grid-area: art;
  z-index: 1;
  width: min(76%, 570px);
  min-height: 390px;
  justify-self: center;
  align-self: center;
  padding: clamp(23px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 13px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(20, 24, 110, 0.11);
  backdrop-filter: blur(24px);
  transition: transform 450ms ease, box-shadow 450ms ease;
}

.feature-card:hover .mini-window {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(20, 24, 110, 0.17);
}

.window-top {
  display: flex;
  gap: 7px;
  margin-bottom: 46px;
}

.window-top span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.mini-label {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-window strong {
  display: block;
  max-width: 420px;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.task-steps {
  margin-top: 42px;
  display: grid;
  gap: 9px;
}

.task-steps span {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.task-steps span::before {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.task-steps .done::before {
  border-color: var(--green);
  background: var(--green);
}

.task-steps .active::before {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(64, 89, 255, 0.12);
}

.agent-row {
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 13px;
}

.agent-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(64, 89, 255, 0.11);
}

.agent-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.skill-chip {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.skill-chip span {
  display: inline-block;
  width: 56px;
  margin-right: 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.automation-line {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.automation-line span,
.automation-line i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.automation-line strong {
  font-size: 12px;
  font-weight: 400;
}

.review-score {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: end;
}

.review-score strong {
  font-size: clamp(70px, 8vw, 110px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.review-score span {
  width: 90px;
  color: var(--muted);
  font-size: 11px;
}

.review-bars {
  margin-top: 58px;
  display: grid;
  gap: 11px;
}

.review-bars span {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
}

.review-bars span::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: var(--blue);
  content: "";
}

.surfaces {
  padding-top: 102px;
  padding-bottom: 120px;
  background: #fff;
}

.surfaces-heading {
  margin-bottom: 77px;
}

.surfaces-heading > p:last-child {
  max-width: 560px;
  margin: 22px auto 0;
  color: #222;
  font-size: 17px;
  line-height: 1.5;
}

.surface-grid {
  max-width: 1216px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.surface-card {
  min-height: 430px;
  padding: 8px 8px 20px;
  display: grid;
  grid-template-rows: auto auto 40px;
  grid-template-areas:
    "art"
    "copy"
    "button";
  gap: 0;
  background: #f4f4f4;
}

.surface-card::after {
  grid-area: button;
  margin: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #000;
  content: "Explore Codex";
  font-size: 13px;
}

.surface-copy {
  grid-area: copy;
  padding: 17px 12px 30px;
}

.surface-copy h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.surface-art {
  grid-area: art;
  height: 305px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background-size: cover;
}

.surface-art-app {
  background-image: url("assets/551d2833c538ae82.jpg");
}

.surface-art-editor {
  background-image: url("assets/387656162bf7a034.jpg");
}

.surface-art-terminal {
  background-image: url("assets/945a29378d3d4867.jpg");
}

.surface-art img {
  width: 100%;
  transition: transform 450ms ease;
}

.surface-card:hover .surface-art img {
  transform: scale(1.025);
}

.proof {
  padding-top: 5px;
  padding-bottom: 191px;
  background: #fff;
}

.proof-heading {
  margin-bottom: 29px;
}

.stat-row {
  display: none;
}

.quote-grid {
  max-width: 1216px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote-card {
  min-height: 363px;
  margin: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--black);
  background: #f4f4f4;
}

.quote-card:first-child {
  color: var(--black);
  background: #f4f4f4;
}

.quote-card p {
  margin-top: 42px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.quote-card footer {
  order: -1;
  display: flex;
  gap: 13px;
  align-items: center;
}

.quote-card footer img {
  width: 54px;
  height: 54px;
  border-radius: 2px;
}

.quote-card footer span,
.quote-card:first-child footer span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.quote-card footer strong {
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
}

.closing {
  min-height: 600px;
  padding: 120px 24px;
  display: grid;
  place-items: start center;
  text-align: center;
  background: #fff;
}

.closing::before {
  display: none;
}

.closing-inner {
  width: min(845px, 100%);
}

.closing-inner p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
}

.closing .primary-action {
  margin-top: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0) * 100ms);
}

.reveal[data-delay="1"] {
  --delay: 1;
}

.reveal[data-delay="2"] {
  --delay: 2;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: 1050px;
    padding-top: 125px;
  }

  .feature-card,
  .feature-card:nth-child(even) {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "copy";
    gap: 22px;
  }

  .feature-card::before {
    min-height: 480px;
  }

  .feature-card:nth-child(odd) .feature-copy,
  .feature-card:nth-child(even) .feature-copy {
    padding: 0;
  }

  .surface-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .surface-card {
    min-height: 500px;
  }

  .surface-art {
    height: 330px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 850px;
    padding: 100px 18px 0;
  }

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

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .logo-row img:last-child {
    grid-column: 1 / -1;
  }

  .feature-card::before {
    min-height: 390px;
  }

  .mini-window {
    width: 88%;
    min-height: 315px;
  }
}

@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;
  }
}
