/* air.build enterprise — dark, elegant, minimal */

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

html,
body {
  height: 100%;
}

.primary-links {
  position: fixed;
  top: max(22px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  gap: 22px;
}

.primary-links a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.primary-links a:hover,
.primary-links a:focus-visible {
  color: #fff;
}

@media (max-width: 520px) {
  .primary-links { gap: 14px; }
  .primary-links a { font-size: 10px; letter-spacing: .08em; }
}

body {
  background-color: #000;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fullscreen video background ---- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.bg-video.is-ready {
  opacity: 1;
}

/* Subtle dark overlay so white text stays readable */
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 45%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

/* ---- Centered foreground content ---- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 34px);
  padding: 24px;
}

/* Entrance: fade in + translate up */
.stage {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.stage.is-in {
  opacity: 1;
  transform: translateY(0);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}

.brand-mark {
  width: clamp(33px, 6.6vw, 83px);
  height: auto;
  display: block;
}

.logo {
  width: clamp(150px, 30vw, 380px);
  height: auto;
  display: block;
}

.enterprise-tag {
  color: rgba(255, 255, 255, 0.82);
  font: 500 clamp(13px, 1.6vw, 18px)/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.4s ease 1.8s;
}

.stage.is-in .enterprise-tag {
  opacity: 1;
}

/* ---- Bottom CTA: pricing line + checkout button ---- */

.cta {
  position: absolute;
  bottom: clamp(24px, 7vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 1.4s ease 2.3s;
}

.stage.is-in .cta {
  opacity: 1;
}

.cta-copy {
  color: rgba(255, 255, 255, 0.92);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.cta-price {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  color: #0b0f14;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.cta-button:hover {
  background: #fff;
  transform: translateY(-1px) scale(1.03);
}

.cta-button.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.cta-button.is-quiet {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-button.is-quiet:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cta-button .icon-arrow {
  display: block;
}

/* ---- SVG line-draw setup ----
   JS measures each path and sets dasharray/dashoffset inline.
   These base styles define stroke look + transitions. */

.draw-svg path {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill-opacity: 0;
  transition:
    stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1),
    fill-opacity 1.1s ease,
    stroke-opacity 1.1s ease;
}

.draw-svg path.is-drawn {
  stroke-dashoffset: 0 !important;
}

.draw-svg path.is-filled {
  stroke-opacity: 0;
}

.brand-mark path {
  stroke-width: 4.5;
}

.brand-mark path.is-filled,
.logo path.is-filled {
  fill-opacity: 0.7;
}

/* ---- Reduced motion: skip everything, show final state ---- */

@media (prefers-reduced-motion: reduce) {
  .stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stage .enterprise-tag,
  .stage .cta {
    opacity: 1;
    transition: none;
  }

  .bg-video {
    opacity: 1;
    transition: none;
  }

  .draw-svg path {
    transition: none;
    stroke: none;
  }

  .brand-mark path,
  .logo path {
    fill-opacity: 0.7;
  }
}
