/* Photo-led hero using the user-selected city and swallow image. */
.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: end;
  gap: 30px;
  min-height: 748px;
  margin-top: 22px;
  padding: 113px 34px 58px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(15, 103, 155, .11);
}

.hero::before {
  display: none;
}

.hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 360px;
  background-image: url("./hero-city-sky.webp");
  background-position: center 51%;
  background-size: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 48%, rgba(255,255,255,.2) 68%, #fff 100%),
    linear-gradient(90deg, rgba(7,52,90,.06), transparent 38%);
}

.swallow-flight {
  position: fixed;
  z-index: 4;
  top: 120px;
  left: 0;
  width: clamp(26px, 2.8vw, 40px);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(7, 52, 90, .16));
  transform-origin: center;
  will-change: transform, opacity;
}

.swallow-flight svg {
  display: block;
  width: 100%;
  overflow: visible;
  transition: transform .18s ease;
}

.swallow-flight.is-reverse svg {
  transform: scaleX(-1);
}

.swallow-wing,
.swallow-body {
  fill: #0b3b63;
}

.swallow-wing {
  transform-box: fill-box;
  transform-origin: right center;
  animation: swallow-wingbeat .68s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.swallow-flight.is-flying .swallow-wing {
  animation-play-state: running;
}

.swallow-wing-bottom {
  fill: #126b9f;
  animation-delay: -.34s;
}

.swallow-highlight {
  fill: rgba(180, 231, 252, .72);
}

@keyframes swallow-wingbeat {
  from { transform: rotate(-5deg) scaleY(.86); }
  to { transform: rotate(5deg) scaleY(1.08); }
}

.hero-copy {
  z-index: 3;
  align-self: start;
  margin-top: -36px;
  padding: 38px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(213,232,242,.9);
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(7,52,90,.14);
  backdrop-filter: blur(16px) saturate(125%);
}

.hero h1 {
  font-size: clamp(56px, 5.1vw, 73px);
}

.hero .hero-lead {
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.82;
}

.hero .hero-actions {
  gap: 9px;
  margin-top: 27px;
}

.hero .button {
  min-height: 52px;
  padding-inline: 17px;
  font-size: 12px;
}

.hero .microcopy {
  margin-top: 17px;
  font-size: 9px;
}

.hero-visual {
  z-index: 2;
  align-self: start;
  min-height: 500px;
  margin-top: 18px;
}

.hero-visual .orange-orbit.one {
  top: 4%;
  right: -12%;
  width: 390px;
  height: 390px;
  background: linear-gradient(145deg, rgba(119,216,251,.45), rgba(255,255,255,.1));
}

.hero-visual .orange-orbit.two {
  right: auto;
  bottom: 0;
  left: 2%;
  background: rgba(79,209,197,.14);
}

.hero .screen-card {
  top: 45%;
  width: min(100%, 500px);
  transform: translate(-50%, -50%) rotate(1.5deg);
}

.hero .price-stamp {
  right: -2px;
  bottom: 25px;
}

.sim-ai-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 4px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(119,216,251,.32), transparent 32%),
    linear-gradient(135deg, #f5fcff, #e8f7fd);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.sim-ai-check > div {
  max-width: 690px;
}

.sim-ai-check > div > span {
  color: var(--sky-600);
  font: 900 9px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .13em;
}

.sim-ai-check h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -.035em;
}

.sim-ai-check p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.sim-ai-check .button {
  flex: 0 0 auto;
  min-width: 260px;
}

.section-ai-check {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  max-width: 430px;
  min-height: 58px;
  margin-top: 26px;
  padding: 9px 13px 9px 10px;
  color: var(--navy);
  background: rgba(241, 250, 255, .92);
  border: 1px solid rgba(86, 181, 226, .34);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(7, 52, 90, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.section-heading > p:not(.kicker):not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.light-heading > p:not(.kicker):not(.eyebrow) {
  color: #bdd4e2;
}

.section-ai-check:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 107, 159, .55);
  box-shadow: 0 12px 28px rgba(7, 52, 90, .1);
}

.section-ai-check:focus-visible {
  outline: 3px solid rgba(119, 216, 251, .65);
  outline-offset: 3px;
}

.section-ai-check-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--sky-500), var(--navy-2));
  border-radius: 10px;
  font-weight: 900;
}

.section-ai-check b,
.section-ai-check small {
  display: block;
}

.section-ai-check b {
  font-size: 13px;
  line-height: 1.45;
}

.section-ai-check small {
  margin-top: 3px;
  color: #69869a;
  font-size: 9px;
  line-height: 1.5;
}

.section-ai-check > span:last-child {
  color: var(--sky-600);
  font-size: 16px;
}

.section-ai-check.on-dark {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(180, 231, 252, .35);
  box-shadow: none;
}

.section-ai-check.on-dark small,
.section-ai-check.on-dark > span:last-child {
  color: #bfe2f2;
}

.section-ai-check.on-dark:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(180, 231, 252, .62);
}

.chatgpt-trigger {
  border-width: 2px;
  border-color: rgba(86, 181, 226, .46);
  box-shadow: 0 18px 46px rgba(7, 52, 90, .24), 0 0 0 4px rgba(119, 216, 251, .1);
}

.chatgpt-trigger > span:last-child {
  font-size: 12.5px;
}

/* The swallow crosses the section scenery, then disappears under foreground cards. */
.hero-copy,
.hero-visual,
.evidence-copy,
.evidence-visual,
.positioning-number,
.positioning-copy,
.workflow > *,
.comparison > *,
.simulator > *,
.decision-guide > *,
.team-story > *,
.ai-consult > *,
.responsible-use > *,
.faq > *,
.final-cta > *,
footer > * {
  position: relative;
  z-index: 6;
}

.team-copy {
  background: #fff;
}

.motion-ready .chatgpt-scroll-reveal {
  opacity: 0;
  transition: opacity .58s ease, translate 1.05s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, translate;
}

.motion-ready .chatgpt-scroll-reveal.reveal-from-left {
  translate: var(--chatgpt-reveal-x, -100vw) 0;
}

.motion-ready .chatgpt-scroll-reveal.reveal-from-right {
  translate: var(--chatgpt-reveal-x, 100vw) 0;
}

.motion-ready .chatgpt-scroll-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  will-change: auto;
}

.motion-ready .chatgpt-scroll-reveal:not(.is-visible) {
  pointer-events: none;
}

.chatgpt-prompt-preview {
  margin-top: 18px;
  padding: 16px 17px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chatgpt-trigger[hidden] {
  display: none;
}

.chatgpt-prompt-preview > b {
  display: block;
  color: var(--sky-600);
  font-size: 9px;
  letter-spacing: .08em;
}

.chatgpt-prompt-preview > p {
  max-height: 176px;
  margin: 10px 0 0;
  overflow: auto;
  color: #496b81;
  font-size: 10px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.chatgpt-prompt-preview + .chatgpt-questions {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 95px 26px 66px;
  }

  .hero-photo {
    height: 310px;
  }

  .hero-copy {
    width: min(100%, 650px);
    margin-top: 0;
  }

  .hero-visual {
    width: min(100%, 650px);
    margin: 10px auto 0;
  }
}

@media (max-width: 760px) {
  .sim-ai-check {
    align-items: stretch;
    padding: 24px 20px;
    flex-direction: column;
  }

  .sim-ai-check .button {
    width: 100%;
    min-width: 0;
  }

  .section-ai-check {
    width: 100%;
    max-width: 520px;
  }

  .hero {
    margin-top: 12px;
    padding: 94px 10px 54px;
    border-radius: 26px;
  }

  .hero-photo {
    height: 248px;
    background-position: 66% 50%;
  }

  .hero-photo::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 36%, rgba(255,255,255,.18) 58%, #fff 100%);
  }

  .hero-copy {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(48px, 13.6vw, 66px);
  }

  .hero .hero-lead {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 410px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 87px;
  }

  .hero-photo {
    height: 232px;
  }

  .hero .screen-card {
    top: 48%;
  }

  .hero .price-stamp {
    bottom: 0;
  }

  .chatgpt-trigger {
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 17px;
  }

  .chatgpt-trigger > span:last-child {
    display: none;
  }

  .chatgpt-trigger .ai-logo {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swallow-flight {
    display: none;
  }

  .motion-ready .chatgpt-scroll-reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}
