:root {
  --bg: #000000;
  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.7);
  --gradient-end: #b4c0ff;
  --button-text: #0a0400;
  --accent: #3054ff;
  --accent-hover: #2040e0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-base: "Instrument Sans", sans-serif;
  --font-display: "Instrument Sans", sans-serif;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/hero3-InstrumentSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/hero3-InstrumentSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/hero3-InstrumentSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/hero3-InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(37, 63, 255, 0.08), transparent 30%),
    var(--bg);
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 88, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(91, 78, 255, 0.08), transparent 20rem);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  isolation: isolate;
}

.hero-media,
.hero-video,
.video-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  background: #000000;
}

.video-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.gradient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.orb-left {
  top: -20%;
  left: 20%;
  width: 37.5rem;
  height: 37.5rem;
  background: rgba(30, 64, 175, 0.2);
}

.orb-right {
  right: 20%;
  bottom: -10%;
  width: 31.25rem;
  height: 31.25rem;
  background: rgba(49, 46, 129, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-base);
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.headline {
  margin: 0;
  width: min(100%, 82rem);
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 55%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subheadline {
  margin: 0;
  width: min(100%, 64rem);
  max-width: none;
  font-family: var(--font-base);
  color: var(--text-70);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  font-family: var(--font-base);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--button-text);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 500;
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}

.primary-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.arrow-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  transition: background-color 220ms ease;
}

.arrow-badge svg {
  width: 20px;
  height: 20px;
}

.primary-cta:hover .arrow-badge {
  background: var(--accent-hover);
}

.reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(20px);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-fade {
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal-fade.is-visible {
  opacity: 0.7;
}

.availability-badge.is-visible {
  transition-duration: 0.6s;
  transition-delay: 0s;
}

.headline.is-visible {
  transition-duration: 0.6s;
  transition-delay: 0.2s;
}

.subheadline.is-visible {
  transition-duration: 0.6s;
  transition-delay: 0.4s;
}

.primary-cta.is-visible {
  transition-duration: 0.5s;
  transition-delay: 0.6s;
}

@media (max-width: 767px) {
  .hero-content {
    gap: 1.25rem;
  }

  .headline {
    width: 100%;
    font-size: clamp(2rem, 6.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.022em;
  }

  .subheadline {
    width: 100%;
    font-size: clamp(1rem, 3.9vw, 1.14rem);
    line-height: 1.62;
  }

  .primary-cta {
    width: auto;
  }
}

@media (max-width: 639px) {
  .hero {
    padding: 2rem 1rem;
  }

  .availability-badge {
    margin-bottom: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }

  .headline {
    width: 100%;
    font-size: clamp(1.8rem, 6.8vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .subheadline {
    width: 100%;
    font-size: clamp(0.98rem, 4.2vw, 1.08rem);
    line-height: 1.58;
  }

  .primary-cta {
    width: 100%;
    max-width: 24rem;
    padding-left: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video,
  .reveal,
  .reveal.is-visible {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal,
  .reveal-fade {
    opacity: 1 !important;
  }

  .reveal-fade {
    opacity: 0.7 !important;
  }

  .primary-cta,
  .arrow-badge {
    transition: none !important;
  }
}
