:root {
  --bg: #030406;
  --blue: #0a63fc;
  --blue-light: #4ea1ff;
  --blue-glow: #3ea0e2;
  --white: #f6f8fb;
  --muted: #93a1b8;
  --orange-glow: #f59e0b;
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(2, 3, 5, 0.5), rgba(2, 3, 5, 0.5)), url("../assets/img/background.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center right;
  background-size: cover, cover;
  animation: bg-zoom 3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 90% at 0% 50%, rgba(3, 4, 6, 0.92) 0%, rgba(3, 4, 6, 0.6) 45%, rgba(3, 4, 6, 0.1) 75%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  width: 100%;
  max-width: 1800px;
  padding: 4rem clamp(1.5rem, 6vw, 6rem);
}

/* No `filter` anywhere in this animated subtree. Safari/WebKit corrupts
   compositing (renders an opaque white box) when an element that gets
   promoted to its own layer by an animation contains ANY descendant using
   `filter` (drop-shadow included) - separating filter onto a sibling
   element isn't enough, since the whole subtree still shares the layer.
   The glow below is a plain radial-gradient background instead. */
.brand {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: rise-in-plain 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -1;
  background: radial-gradient(circle, rgba(20, 100, 255, 0.35) 0%, rgba(20, 100, 255, 0) 70%);
  pointer-events: none;
}

.brand__mark {
  display: block;
  height: 100%;
  max-height: clamp(260px, 30vw, 420px);
  width: auto;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.6vw, 1.9rem);
  min-width: 0;
  max-width: min(58vw, 740px);
}

.eyebrow {
  min-height: 1.5em;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #d7e0f0 0%, var(--blue-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* blinking caret shown while the typewriter runs */
.eyebrow.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: text-bottom;
  background: var(--blue-light);
  animation: caret-blink 0.8s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* see note above .brand - no `filter` in this animated subtree either.
   Also: no `animation-delay` + `fill-mode:both` here - confirmed by
   testing that a long delay held via `both` (opacity:0 "parked" for
   2.5s before the keyframes actually start) is what corrupts this
   element's PNG in Safari, regardless of filter/transform/timing
   overlap with siblings. A CSS transition toggled by JS after the same
   delay produces the identical reveal without ever touching
   animation-delay/fill-mode. */
.headline {
  position: relative;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

.headline::before {
  content: "";
  position: absolute;
  inset: -25% -8%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(10, 99, 252, 0.28) 0%, rgba(10, 99, 252, 0) 70%);
  pointer-events: none;
}

.headline img {
  display: block;
  width: clamp(320px, 34vw, 560px);
  max-width: 100%;
  height: auto;
}

.features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  list-style: none;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* delays start at 3.8s (not 3.3s) so no feature begins animating while
   .headline's own reveal (2.5s-3.7s) is still running - overlapping
   sibling animations inside the same flex parent is what triggers
   Safari's white-box compositing bug on the headline PNG, confirmed by
   testing */
.feature:nth-child(1) { animation-delay: 3.8s; }
.feature:nth-child(2) { animation-delay: 4.0s; }
.feature:nth-child(3) { animation-delay: 4.2s; }
.feature:nth-child(4) { animation-delay: 4.4s; }

/* no `filter` here either - .feature (parent) animates, see note above .brand */
.feature__icon {
  position: relative;
  display: inline-flex;
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  color: var(--blue-glow);
}

.feature__icon::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  background: radial-gradient(circle, rgba(62, 160, 226, 0.32) 0%, rgba(62, 160, 226, 0) 60%);
  pointer-events: none;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature__label {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.cta {
  position: relative;
  align-self: flex-start;
  margin-top: clamp(1.2rem, 3vw, 2.4rem);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 5.4s both;
}

/* no `filter` here either (both this element and its parent .cta animate)
   - the sweep gradient below still carries the effect without it */
.cta__label {
  display: block;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    var(--blue-light) 0%,
    var(--blue-light) 42%,
    #ffffff 50%,
    var(--blue-light) 58%,
    var(--blue-light) 100%
  );
  background-size: 280% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cta-sweep 3.2s linear 6.4s infinite;
}

@keyframes cta-sweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

/* ---------- roadmap ---------- */

.roadmap {
  width: 100%;
  max-width: 560px;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 6.6s both;
}

.roadmap__track {
  position: relative;
  display: flex;
  list-style: none;
}

.roadmap__track::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(147, 161, 184, 0.25) 15%,
    rgba(147, 161, 184, 0.25) 85%,
    transparent 100%
  );
}

.roadmap__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.roadmap__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.roadmap__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px rgba(78, 161, 255, 0.75);
}

.roadmap__date {
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.roadmap__label {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.roadmap__note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--muted);
}

.footer {
  position: absolute;
  bottom: clamp(0.9rem, 3vh, 1.8rem);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  pointer-events: none;
  animation: footer-in 1.2s ease-out 6.4s forwards;
}

.footer__label {
  font-size: clamp(0.62rem, 0.75vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer img {
  display: block;
  width: clamp(100px, 9vw, 150px);
  height: auto;
}

@keyframes footer-in {
  to {
    opacity: 0.88;
  }
}

/* entrance animations */
@keyframes bg-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* no filter/blur here on purpose - animating filter:blur() on a
   transparent PNG leaves a stuck opaque compositing layer in Safari
   (macOS + iOS), which shows up as a white box after the animation ends */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* variant without filter so it doesn't override drop-shadow glows */
@keyframes rise-in-plain {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 860px) {
  .hero__bg {
    background-position: center, 75% center;
  }

  .hero::before {
    background: radial-gradient(120% 70% at 50% 30%, rgba(3, 4, 6, 0.95) 0%, rgba(3, 4, 6, 0.8) 55%, rgba(3, 4, 6, 0.35) 100%);
  }

  .hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .brand__mark {
    height: auto;
    width: 84px;
  }

  .hero__text {
    align-items: center;
    max-width: 100%;
  }

  .features {
    justify-content: center;
  }

  .cta {
    align-self: center;
  }

  .roadmap {
    align-self: center;
    max-width: 320px;
  }

  .roadmap__track {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .roadmap__track::before {
    top: 0;
    bottom: 0;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(147, 161, 184, 0.25) 15%,
      rgba(147, 161, 184, 0.25) 85%,
      transparent 100%
    );
  }

  .roadmap__item {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-left: 22px;
  }

  .roadmap__meta {
    align-items: flex-start;
    text-align: left;
  }

  .roadmap__dot {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .feature {
    border-right: none;
    padding-right: 0;
  }

  .features {
    row-gap: 0.85rem;
  }
}
