.hero {
  --hero-blue: #0072e3;
  --hero-ink: #0a2744;
  --hero-muted: #4a6478;
  --hero-mint: #a8eec6;
  --hero-mint-ink: #0b6b47;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 88px 0 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(0, 34, 78, 0.38), rgba(0, 34, 78, 0) 60%),
    var(--hero-blue);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 24px 32px;
}

.hero__copy {
  color: #fff;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero__eyebrow i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-mint);
  box-shadow: 0 0 0 4px rgba(168, 238, 198, 0.16);
}

.hero__head {
  margin-top: 20px;
}

.hero__title {
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__typed {
  display: inline;
}

.hero__caret {
  display: inline-block;
  width: 2px;
  height: 0.74em;
  margin-left: 0.06em;
  background: #fff;
  vertical-align: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__sub {
  margin-top: 14px;
  font-size: clamp(1.2rem, 2.05vw, 1.9rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero__lede {
  max-width: 30em;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.95;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #0057ad;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(0, 26, 64, 0.65);
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

.hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero__cta--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero__cover {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 26px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(0, 30, 70, 0.26);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero__cover::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--hero-mint);
}

.hero__stage {
  position: relative;
}

.hero__stack {
  width: min(448px, 100%);
  margin-left: auto;
}

.hero__horizon {
  width: 100%;
  margin-top: 26px;
}

.hero__horizon img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.55;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 3;
  display: inline-flex;
  padding: 8px;
  border-radius: 24px;
  opacity: 0.7;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero__mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
}

.hero__wheel {
  display: block;
  width: 3px;
  height: 7px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: scroll-wheel 1.7s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 0;
    transform: none;
  }
  25% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(11px);
  }
}

.hero__query {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 302px;
  padding: 12px 16px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero__query.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: #fff;
  vertical-align: -0.15em;
  animation: caret-blink 0.9s steps(1) infinite;
}

.hero__answer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 78px 0 0;
  padding: 20px 22px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--hero-ink);
  box-shadow: 0 42px 90px -34px rgba(0, 22, 58, 0.62);
}

.hero__answer-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__answer-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__answer-tag {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef3f8;
  color: #586b7e;
  font-size: 10.5px;
  line-height: 1;
}

.hero__answer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f9f0;
  color: var(--hero-mint-ink);
  font-size: 11px;
  line-height: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__answer-status i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #12a86a;
}

.hero__answer-body {
  display: flow-root;
  min-height: 102px;
  padding-top: 14px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero__stage.is-swapping .hero__query,
.hero__stage.is-swapping .hero__answer-body {
  opacity: 0;
  transform: translateY(-4px);
}

.hero__thinking {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin-top: 14px;
}

.hero__thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8fa3b6;
  animation: thinking 1s ease-in-out infinite;
}

.hero__thinking i:nth-child(2) {
  animation-delay: 0.15s;
}

.hero__thinking i:nth-child(3) {
  animation-delay: 0.3s;
}

.hero__stream-caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: #1b3a56;
  vertical-align: -0.1em;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes thinking {
  0%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.hero__answer p {
  margin-top: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #1b3a56;
}

.hero__answer p + p {
  margin-top: 10px;
}

.hero__cite {
  position: relative;
  isolation: isolate;
  padding: 0 0.1em;
  background: transparent;
  color: var(--hero-ink);
  font-weight: 700;
}

.hero__cite::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  right: -4%;
  bottom: 4%;
  left: -4%;
  border-radius: 3px;
  background: var(--hero-mint);
  transform: scaleX(1);
  transform-origin: left center;
}

.hero__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e9eff5;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__answer.is-writing .hero__answer-status,
.hero__answer.is-writing .hero__sources {
  opacity: 0;
  transform: translateY(4px);
}

.hero__sources span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--hero-muted);
}

.hero__sources i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #eef4fa;
  color: #46617a;
  font-size: 9.5px;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hero__wheel {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-hero] {
    animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: var(--hero-delay, 0ms);
  }

  .js .hero [data-hero="1"] { --hero-delay: 30ms; }
  .js .hero [data-hero="2"] { --hero-delay: 90ms; }
  .js .hero [data-hero="3"] { --hero-delay: 220ms; }
  .js .hero [data-hero="4"] { --hero-delay: 300ms; }
  .js .hero [data-hero="5"] { --hero-delay: 380ms; }
  .js .hero [data-hero="6"] { --hero-delay: 120ms; animation-duration: 0.8s; }
  .js .hero [data-hero="7"] { --hero-delay: 380ms; }
  .js .hero [data-hero="10"] { --hero-delay: 620ms; }
  .js .hero [data-hero="11"] { --hero-delay: 680ms; }
  .js .hero [data-hero="12"] { --hero-delay: 740ms; }

  .js .hero__horizon {
    animation: hero-fade 1.4s ease-out 0.1s both;
  }

  .js .hero__cite::before {
    transform: scaleX(0);
  }

  .js .hero__cite.is-cited::before {
    animation: hero-cite 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .js .hero__caret.is-typing {
    opacity: 1;
    animation: caret-blink 0.9s steps(1) infinite;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-cite {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero__inner {
    padding: 20px 32px;
  }

  .hero__title {
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  }

  .hero__sub {
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  }

  .hero__lede {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 26px;
  }

  .hero__cover {
    margin-top: 20px;
  }

}

@media (min-width: 1440px) {
  .hero__title {
    font-size: clamp(5.6rem, 6.2vw, 6.75rem);
  }

  .hero__sub {
    font-size: clamp(1.9rem, 2.1vw, 2.15rem);
  }

  .hero__stack {
    width: min(480px, 100%);
  }
}

@media (max-width: 1120px) {
  .hero__inner {
    gap: 32px;
    padding: 24px 24px;
  }

  .hero__stack {
    width: min(400px, 100%);
  }

  .hero__query {
    width: 270px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: 88px 0 0;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 20px 24px 10px;
  }

  .hero__stage {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__scroll {
    display: none;
  }

  .hero__query {
    width: min(300px, 88%);
    font-size: 13.5px;
  }

  .hero__stack {
    width: 100%;
  }

  .hero__horizon {
    margin-top: 28px;
  }

  .hero__horizon img {
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 84px 0 0;
  }

  .hero__inner {
    padding: 16px 20px 8px;
  }

  .hero__head {
    margin-top: 16px;
  }

  .hero__horizon {
    margin-top: 48px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
  }

  .hero__sub {
    margin-top: 10px;
    font-size: 1.1rem;
  }

  .hero__lede {
    font-size: 14.5px;
    line-height: 1.85;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__cta {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero__cover {
    margin-top: 22px;
    font-size: 11.5px;
  }

  .hero__answer {
    padding: 18px 18px 16px;
  }

  .hero__answer-body {
    min-height: 97px;
  }

  .hero__answer p {
    font-size: 13.5px;
  }

  .hero__horizon img {
    opacity: 0.42;
  }
}
