:root {
  --ink: #131112;
  --ink-soft: rgba(19, 17, 18, .75);
  --paper: #fffdf8;
  --sun: #ffdb16;
  --tangerine: #ff6d19;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell, .hero { min-height: 100svh; }

.hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-carousel { position: absolute; inset: 0; z-index: -2; }
.hero-image {
  height: 100svh;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  transition: filter .9s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.carousel-item.active .hero-image { animation: cinematic-pan 10s ease-out both; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 168, 22, .12), transparent 37%),
    linear-gradient(90deg, rgba(10, 8, 9, .82) 0%, rgba(10, 8, 9, .34) 50%, rgba(10, 8, 9, .74) 100%),
    linear-gradient(0deg, rgba(10, 8, 9, .88) 0%, transparent 52%, rgba(10, 8, 9, .42) 100%);
}

.hero-content {
  max-width: 58rem;
  padding: 3.5rem 1.5rem 5.5rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}

.hero-content > :not(.brand-logo) { opacity: 0; transform: translateY(1.1rem); }
.is-ready .hero-content > :not(.brand-logo) { animation: hero-reveal .85s cubic-bezier(.22, 1, .36, 1) forwards; }
.is-ready .brand-logo { opacity: 1; transform: translateY(0); }
.is-ready .hero-content > :nth-child(2) { animation-delay: .22s; }
.is-ready .hero-content > :nth-child(3) { animation-delay: .34s; }
.is-ready .hero-content > :nth-child(4) { animation-delay: .46s; }
.is-ready .hero-content > :nth-child(5) { animation-delay: .58s; }

.brand-logo {
  width: min(31rem, 82vw);
  height: auto;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  filter: drop-shadow(0 .75rem 1.6rem rgba(0, 0, 0, .5));
  opacity: 0;
  transform: translateY(1.1rem);
  transition: filter .65s ease, opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--sun);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .98;
}

.hero-copy { margin: 1rem 0 2rem; color: rgba(255, 253, 248, .88); font-size: clamp(.98rem, 2vw, 1.15rem); }

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin: 0 auto;
  max-width: 52rem;
}

.platform-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .6rem .9rem;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(20, 17, 18, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 .75rem 2rem rgba(0, 0, 0, .18);
  color: var(--paper);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  backdrop-filter: blur(10px);
}

.platform-link i { color: var(--sun); font-size: 1.2rem; line-height: 1; }

.platform-link::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .42) 50%, transparent 80%);
  content: "";
  transform: translateX(-130%);
  transition: transform .65s ease;
}

.platform-link:hover { transform: translateY(-4px) scale(1.025); border-color: var(--sun); background: var(--sun); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .32); color: var(--ink); text-shadow: none; }
.platform-link:hover::before { transform: translateX(130%); }
.platform-link:hover i { color: var(--tangerine); }
.platform-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

.site-footer {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;
  color: rgba(255, 253, 248, .68);
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.carousel-control-prev, .carousel-control-next { width: 10%; opacity: .45; transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.carousel-control-prev:hover, .carousel-control-prev:focus-visible { opacity: 1; transform: translateX(-.3rem); }
.carousel-control-next:hover, .carousel-control-next:focus-visible { opacity: 1; transform: translateX(.3rem); }
.carousel-control-prev:focus, .carousel-control-next:focus { box-shadow: none; }
.carousel-indicators { bottom: 2.7rem; margin-bottom: 0; }
.carousel-indicators [data-bs-target] { width: 1.5rem; height: .18rem; margin: 0 .18rem; border: 0; border-radius: 999px; background-color: var(--sun); transition: opacity .3s ease, transform .3s ease, width .3s ease; }
.carousel-indicators [data-bs-target]:hover, .carousel-indicators .active { opacity: 1; transform: scaleY(1.5); width: 2.2rem; }

@media (hover: hover) and (pointer: fine) {
  .brand-logo:hover { opacity: .1; transform: scale(.975); }
  .hero:hover .hero-image { filter: saturate(1.08) contrast(1.03); }
}

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cinematic-pan {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-.8%, -.6%, 0); }
}

@media (max-width: 575.98px) {
  .hero-content { padding-right: 1rem; padding-left: 1rem; }
  .platforms { gap: .55rem; }
  .platform-link { width: calc(50% - .3rem); justify-content: center; }
  .carousel-control-prev, .carousel-control-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-content > *, .brand-logo { opacity: 1; transform: none; }
}
