@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0f7ae0;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ───────────── sky ───────────── */
.sky {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(110, 200, 255, .3), transparent 60%),
    radial-gradient(90% 60% at 0% 0%, rgba(4, 52, 175, .55), transparent 70%),
    radial-gradient(90% 60% at 100% 0%, rgba(5, 60, 185, .5), transparent 70%),
    linear-gradient(180deg, #0a5fd6 0%, #0b6ddd 28%, #0f82e4 58%, #1393e8 82%, #1699ea 100%);
}

/* ───────────── clouds ───────────── */
.sky-clouds {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  /* keep the copy readable: clouds are softer behind the text half, full strength on the open sky */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 42%, #000 72%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 42%, #000 72%);
}
.drift {
  position: absolute; left: 0; top: var(--top); width: var(--w);
  opacity: 0; transition: opacity 2.4s ease;
  will-change: transform; backface-visibility: hidden;
  animation: sail var(--dur) linear infinite; animation-delay: var(--delay);
}
.sky-clouds.ready .drift { opacity: var(--o); }
.drift img {
  display: block; width: 100%; height: auto; user-select: none;
  animation: bob var(--bob) ease-in-out infinite alternate; animation-delay: var(--bob-d);
}
/* clouds travel right → left, the same way the wind carries the petals */
@keyframes sail { from { transform: translate3d(104vw, 0, 0); } to { transform: translate3d(calc(-1 * var(--w) - 4vw), 0, 0); } }
@keyframes bob { from { transform: translate3d(0, -.7vh, 0); } to { transform: translate3d(0, .9vh, 0); } }

/* ───────────── flowers ───────────── */
#flora { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; animation: fade 1s ease .1s forwards; }

/* ───────────── stage (1920px design grid) ───────────── */
.stage {
  position: fixed; left: 0; top: 0;
  transform-origin: 0 0;
  /* width/height/scale are set from layout.js */
}

.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1.1s cubic-bezier(.2, .75, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* nav */
.nav {
  z-index: 6;
  position: absolute; left: 52px; right: 50px; top: 47px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 13px; font-size: 37px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.logo-mark { width: 37px; height: 37px; flex: none; }
.logo-tile { fill: #fff; }
.logo-arrow { stroke: #0a5fd6; transition: transform .45s cubic-bezier(.2, .75, .2, 1); }
.logo:hover .logo-arrow { transform: translate(1.6px, -1.6px); }
.logo-word { transform: translateY(-2px); }
.links {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  display: flex; gap: 39px;
  font-size: 25.5px; font-weight: 500; letter-spacing: -.03em;
}
.links a { position: relative; padding: 6px 0; transition: opacity .25s; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .75, .2, 1);
}
.links a:hover::after { transform: scaleX(1); }
.links:hover a:not(:hover) { opacity: .62; }
.menu-btn { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 68px; padding: 0 52px; border-radius: 999px;
  font-size: 25.5px; font-weight: 500; letter-spacing: -.035em;
  transition: transform .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 30, 120, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-white { background: #fff; color: #05070d; }
.btn-black { background: #000; color: #fff; }
.nav-cta { height: 69px; padding: 0 52px; }

/* hero copy */
.hero { position: absolute; left: 52px; top: 264px; }

.badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 39px; padding: 0 17px 0 9px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  font-size: 20px; font-weight: 500; letter-spacing: -.035em;
  transition: background .3s;
}
.badge:hover { background: rgba(255, 255, 255, .16); }
.badge-new {
  animation: pulse 2.8s ease-in-out infinite;
  display: inline-flex; align-items: center; height: 27px; padding: 0 12px;
  border-radius: 999px; background: #fff; color: #0b63d8; font-size: 19px; letter-spacing: -.02em;
}

h1 {
  margin-top: 76px;
  font-size: 102px; line-height: 117px; font-weight: 400; letter-spacing: -.053em;
  text-shadow: 0 4px 40px rgba(0, 55, 160, .22);
}
h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 6px; margin-bottom: -6px; }
h1 .line > span { display: inline-block; }
h1 .line > .rise { opacity: 1; transform: translateY(112%); animation-name: lineUp; animation-duration: 1.25s; }

.lede {
  margin-top: 7px; max-width: 770px;
  text-shadow: 0 1px 16px rgba(0, 60, 170, .45);
  font-size: 24.6px; line-height: 29px; font-weight: 500; letter-spacing: -.04em;
}
.cta { margin-top: 39px; display: flex; gap: 27px; }

/* partners */
.partners { position: absolute; left: 52px; bottom: 205px; }
.partners-label { font-size: 20px; font-weight: 400; letter-spacing: -.02em; opacity: .92; margin-bottom: 56px; }
.partners-row { display: flex; align-items: center; gap: 52px; }
.partners-row li { transition: opacity .3s, transform .4s cubic-bezier(.2, .75, .2, 1); display: flex; align-items: center; gap: 4px; font-size: 35px; color: #fff; opacity: .96; }
.partners-row svg { height: 1em; width: auto; flex: none; }
.partners-row li { filter: drop-shadow(0 1px 10px rgba(0, 70, 170, .4)); }
.p-openai span { font-weight: 500; letter-spacing: -.04em; }
.p-openai svg { width: 46px; height: 46px; margin-right: 2px; }
.p-gemini span { font-weight: 500; letter-spacing: -.04em; }
.p-gemini svg { width: 36px; height: 36px; margin-right: 4px; }
.p-claude { gap: 10px !important; }
.p-claude svg { width: 38px; height: 38px; }
.p-claude span { font-family: "Source Serif 4", "Tiempos Text", "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 39px; letter-spacing: -.02em; }
.p-perplexity { font-size: 30px !important; gap: 10px !important; }
.p-perplexity svg { width: 34px; height: 34px; }
.p-perplexity span { font-weight: 300; letter-spacing: -.02em; }

.partners-row:hover li:not(:hover) { opacity: .5; }
.partners-row li:hover { transform: translateY(-2px); }

/* focus */
:focus-visible { outline: 3px solid #fff; outline-offset: 5px; border-radius: 14px; }
.btn:focus-visible, .menu-btn:focus-visible { border-radius: 999px; }
.badge:focus-visible { border-radius: 999px; }

@keyframes fade { to { opacity: 1; } }
@keyframes lineUp { to { transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 55% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }

/* ───────────── mobile (430px design grid) ───────────── */
/* ponytail: short viewports scroll instead of clipping; desktop keeps fixed/hidden exactly.
   x is hidden on both (body would otherwise become the sideways scroller: the stage is a scrollbar wider). */
html.is-mobile, html.is-mobile body { overflow-y: auto; overflow-x: hidden; }
html.is-mobile body { min-height: 100%; }
.is-mobile .stage { position: absolute; }
.mobile-menu { display: none; }
.is-mobile .sky-clouds { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.4) 55%, #000 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.4) 55%, #000 85%); }
.is-mobile .nav { left: 22px; right: 22px; top: 22px; height: 44px; }
.is-mobile .logo { font-size: 24px; gap: 9px; }
.is-mobile .logo-mark { width: 25px; height: 25px; }
.is-mobile .logo-word { transform: translateY(-1px); }
.is-mobile .links, .is-mobile .nav-cta { display: none; }
.is-mobile .menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 46px; height: 46px; padding: 0 13px; border-radius: 50%; background: #fff;
}
.is-mobile .menu-btn i { display: block; height: 2px; background: #05070d; border-radius: 2px; }

.is-mobile .hero { left: 22px; right: 22px; top: 118px; }
.is-mobile .badge { height: 30px; font-size: 13.5px; gap: 8px; padding: 0 12px 0 6px; border-width: 1.5px; }
.is-mobile .badge-new { height: 20px; font-size: 12px; padding: 0 9px; }
.is-mobile h1 { margin-top: 30px; font-size: 54px; line-height: 56px; }
.is-mobile h1 .line { white-space: normal; display: inline; overflow: visible; padding: 0; margin: 0; }
.is-mobile h1 .line > span { display: inline; }
.is-mobile h1 .line::after { content: " "; }
.is-mobile h1 .line > .rise { opacity: 0; transform: none; animation-name: fade; animation-duration: 1s; }

.is-mobile .mobile-menu {
  display: flex; flex-direction: column; justify-content: safe center; gap: 30px;
  position: absolute; inset: 0; z-index: 5; padding: 80px 28px 40px; overflow-y: auto;
  background: rgba(6, 62, 188, .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu nav a {
  font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1;
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2, .75, .2, 1);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .2s; }
.mobile-menu .btn { align-self: flex-start; height: 54px; font-size: 18px; }
.is-mobile .menu-btn i { transition: transform .35s cubic-bezier(.2, .75, .2, 1); }
.menu-open .menu-btn i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.is-mobile .lede { margin-top: 18px; font-size: 17px; line-height: 20px; max-width: 360px; }
.is-mobile .cta { margin-top: 24px; gap: 12px; }
.is-mobile .btn { height: 50px; padding: 0 30px; font-size: 17px; }

.is-mobile .partners { left: 22px; right: 22px; bottom: 28px; }
.is-mobile .partners-label { font-size: 13px; margin-bottom: 12px; }
.is-mobile .partners-row { flex-wrap: wrap; gap: 12px 24px; }
.is-mobile .partners-row li { font-size: 22px; }
.is-mobile .p-openai svg { width: 28px; height: 28px; }
.is-mobile .p-gemini svg { width: 22px; height: 22px; }
.is-mobile .p-claude svg { width: 23px; height: 23px; }
.is-mobile .p-claude span { font-size: 23px; }
.is-mobile .p-perplexity { font-size: 20px !important; }
.is-mobile .p-perplexity svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  .rise, h1 .line > .rise, #flora { animation: none; opacity: 1; transform: none; }
  .is-mobile h1 .line > .rise { opacity: 1; }
  .drift, .drift img { animation-play-state: paused; }
  .badge-new { animation: none; }
}

.still .rise, .still h1 .line > .rise, .still #flora { animation: none; opacity: 1; transform: none; }
.still .drift, .still .drift img { animation-play-state: paused; transition: none; }
.still .badge-new { animation: none; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 12px 20px; border-radius: 999px; background: #fff; color: #05070d; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

html:not([data-ai="on"]) [data-ai-only] { display: none !important; }
