@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400;1,6..72,500&display=swap');

:root {
  /* Exact Reference Image Colors & Gradients */
  --color-bg: #0A0A0A;
  --color-surface: #111111;
  --color-card: #141414;
  --color-card-hover: #191919;
  
  /* Luminous Sunset Coral Palette */
  --coral-light: #FF9B70;
  --coral-mid: #F06E38;
  --coral-deep: #D04818;
  
  --color-text: #F5F5F5;
  --color-text-secondary: #D4D4D4;
  --color-muted: #7E7E7E;
  --color-muted-dark: #4A4A4A;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-card: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-serif: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-weight: 300;
}

/* Typography Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin-top: 0;
  color: #FFFFFF;
}

/* ===================================================
   LUMINOUS SUNSET GRADIENTS (MATCHING REFERENCE IMAGE)
   =================================================== */

/* Text Gradient for Headline Accents & Metric Numbers */
.gradient-text {
  background: linear-gradient(135deg, #FFA57D 0%, #F06D37 50%, #D44818 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-soft {
  background: linear-gradient(135deg, #FFB894 0%, #F47C46 55%, #DE5222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Primary CTA Button Gradient (Exact Match to Magnum Radius Pill) */
.btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(90deg, #FF9166 0%, #F06D37 50%, #D44818 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(240, 109, 55, 0.28);
}

.btn-coral:hover {
  background: linear-gradient(90deg, #FFA076 0%, #F77640 50%, #DC5020 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(240, 109, 55, 0.38);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Ghost Outline Button */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.7rem;
  background: transparent;
  color: #D4D4D4;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-dark:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.03);
}

/* Ambient Volumetric Glow Behind Headline (Matching Reference Image) */
.ambient-glow {
  position: absolute;
  top: 5%;
  left: 0%;
  width: 700px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(235, 95, 38, 0.12) 0%, rgba(195, 75, 25, 0.04) 50%, transparent 72%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Minimalist Glass Navigation */
.glass-nav {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background-color: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--color-border);
}

/* ===================================================
   LUXURY EDITORIAL MOTION & FRAMER-GRADE TRANSITIONS
   Inspired by Imageworks & Awwwards Studio Physics
   =================================================== */

/* Lenis Smooth Scroll Integration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Framer Cursor Spotlight Glow */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: -500px;
  --mouse-y: -500px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(240, 110, 55, 0.12), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75), 0 0 24px -4px rgba(240, 110, 55, 0.15);
}

/* 3D Curved Ribbon / Arc Carousel (Matching Reference Video) */
.perspective-ribbon-stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  position: relative;
  padding: 3rem 0 4.5rem 0;
}

.ribbon-track-wrapper {
  transform: rotateX(5deg) rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.ribbon-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ribbonMarquee 38s linear infinite;
  will-change: transform;
}

.ribbon-track:hover {
  animation-play-state: paused;
}

@keyframes ribbonMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ribbon-card {
  width: 290px;
  height: 390px;
  flex-shrink: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.5s ease;
  transform: translateZ(0);
}

.ribbon-card:hover {
  transform: translateY(-10px) scale(1.03) translateZ(35px);
  border-color: rgba(240, 110, 55, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(240, 110, 55, 0.22);
  z-index: 20;
}

/* Scroll-Driven Cinematic Zoom Reveal Card (Matching Reference Video) */
.scroll-zoom-container {
  overflow: hidden;
  position: relative;
}

.scroll-zoom-card {
  transform: scale(var(--zoom-scale, 0.85));
  border-radius: var(--zoom-radius, 2.5rem);
  opacity: var(--zoom-opacity, 0.7);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.15s ease, opacity 0.15s ease;
  will-change: transform, border-radius, opacity;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(240, 110, 55, 0.1);
}

/* Enhanced Understated Scroll Reveal */
.reveal-init {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 80ms; }
.delay-200 { transition-delay: 160ms; }
.delay-300 { transition-delay: 240ms; }
.delay-400 { transition-delay: 320ms; }
.delay-500 { transition-delay: 400ms; }

/* Masked Text Reveal */
.masked-line {
  overflow: hidden;
  display: block;
}
.masked-line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.reveal-visible .masked-line-inner,
.reveal-visible.masked-line-inner {
  transform: translateY(0%);
}

/* Single Card Loop Showcase Animation */
.sector-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(80px) scale(0.94);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.sector-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  position: relative;
  z-index: 10;
}

.sector-slide.exit-left {
  opacity: 0;
  transform: translateX(-80px) scale(0.94);
  pointer-events: none;
  visibility: hidden;
}

/* No scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Clean Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E87348;
}

/* ===================================================
   BENDING MARQUEE (REACT BITS PRO SPECIFICATION)
   3D Dynamic Perspective Arc, Velocity Tilt & Responsive Curve
   =================================================== */
.bending-marquee-section {
  position: relative;
  overflow: hidden;
  perspective: 1100px;
  background-color: #0A0A0A;
}

.bending-marquee-stage {
  perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  width: 100%;
  overflow: visible;
}

.bending-marquee-arch .bending-marquee-track-wrap {
  transform: rotateX(var(--bm-arch-x, 9deg)) rotateY(var(--bm-arch-y, -2.5deg)) scale(var(--bm-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bending-marquee-valley .bending-marquee-track-wrap {
  transform: rotateX(var(--bm-valley-x, -8deg)) rotateY(var(--bm-valley-y, 2.5deg)) scale(var(--bm-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bending-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.bending-marquee-scroll-left {
  animation: bendingMarqueeLeft 30s linear infinite;
}

.bending-marquee-scroll-right {
  animation: bendingMarqueeRight 34s linear infinite;
}

.bending-marquee-stage:hover .bending-marquee-track {
  animation-play-state: paused;
}

@keyframes bendingMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes bendingMarqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.bending-marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F5F5F5;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, color 0.35s ease, box-shadow 0.4s ease;
  transform: translateZ(0);
  cursor: default;
}

.bending-marquee-pill:hover {
  border-color: rgba(232, 115, 72, 0.55);
  color: #FFA57D;
  transform: translateY(-6px) scale(1.05) translateZ(30px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 28px rgba(232, 115, 72, 0.25);
  z-index: 10;
}

/* ===================================================
   ELASTIC LETTERING (REACT BITS PRO SPECIFICATION)
   Grab, Stretch, and Fling Physics with Rubber Band Wobble
   =================================================== */
.elastic-lettering-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  padding: 0.5rem 0.5rem;
}

.elastic-lettering-wrap:active,
.elastic-lettering-wrap.is-dragging {
  cursor: grabbing;
}

.elastic-char {
  display: inline-block;
  position: relative;
  transform-origin: 50% 50%;
  will-change: transform, color;
  transition: color 0.15s ease;
}

.elastic-char.is-space {
  width: 0.28em;
}

.elastic-word {
  display: inline-block;
  white-space: nowrap;
}

.elastic-char.elastic-stretched {
  color: #E87348 !important;
  text-shadow: 0 0 20px rgba(232, 115, 72, 0.45);
}

/* ===================================================
   MOMENTUM RING / VERTICAL REEL (REACT BITS PRO)
   3D Cylinder Ring with Velocity Motion Blur & Snap Physics
   =================================================== */
.momentum-ring-section {
  position: relative;
  overflow: hidden;
  background: #080808;
}

.momentum-ring-stage {
  position: relative;
  width: 100%;
  height: 560px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.momentum-ring-stage.is-dragging {
  cursor: grabbing;
}

.momentum-ring-cylinder {
  position: relative;
  width: 320px;
  height: 400px;
  transform-style: preserve-3d;
  will-change: transform, filter;
  transition: filter 0.15s ease;
}

.momentum-ring-card {
  position: absolute;
  inset: 0;
  width: 320px;
  height: 400px;
  border-radius: 1.5rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.momentum-ring-card:hover {
  border-color: rgba(232, 115, 72, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(232, 115, 72, 0.2);
}

.momentum-ring-card.is-active {
  border-color: rgba(232, 115, 72, 0.7);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(232, 115, 72, 0.25);
}

/* ===================================================
   SCROLL PORTAL (REACT BITS PRO SPECIFICATION)
   Scroll Through Frames Nested One Inside The Next
   =================================================== */
.scroll-portal-section {
  position: relative;
  background: #0A0A0A;
}

.scroll-portal-stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.portal-frame {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: border-radius 0.2s ease;
}

.portal-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1C1613 0%, #111111 50%, #0A0A0A 100%);
  z-index: 1;
}

.portal-step-pill {
  width: 38px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-step-pill.active {
  background: linear-gradient(90deg, #E87348 0%, #FFA57D 100%);
  box-shadow: 0 0 12px rgba(232, 115, 72, 0.6);
  width: 52px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1;
    transform: none;
  }
}
