:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F8FA;
  --bg-dark: #0F0F0F;
  --accent-orange: #F48A3A;
  --accent-green: #4DAE89;
  --text-primary: #111111;
  --text-secondary: #777777;
  --text-light: #FFFFFF;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Utilities */
.text-center { text-align: center; }
.subline { font-size: 1.25rem; color: var(--text-secondary); margin-top: 1rem; font-weight: 400; }
.text-light { color: var(--text-light); }
.text-light .subline { color: #A0A0A0; }
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-dark); }

.container {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}

section {
  padding: 8rem 0;
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.align-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger inside containers */
.animate:nth-child(1) { transition-delay: 0.0s; }
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }
.animate:nth-child(5) { transition-delay: 0.4s; }


/* SECTION 1: HERO */
.section-hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  padding: 0;
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-height: 100vh;
  width: auto;
  aspect-ratio: 9/16;
  object-fit: contain;
  opacity: 0.6; /* Dim to make text legible */
  z-index: 1;
}

/* Custom Video Player */
.video-player-wrap {
  position: relative;
  width: 100%;
  max-width: 350px;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.video-player-wrap .hero-video-inline {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player-wrap:hover .video-controls {
  opacity: 1;
}

.vid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.vid-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.1);
}

.vid-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 5%;
  max-width: 1200px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-content .hero-subline {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text-light);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.hero-fade-in {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-content h1.hero-fade-in {
  animation-delay: 0s;
}

.hero-content .hero-subline.hero-fade-in {
  animation-delay: 0.2s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator.hero-fade-in-bounce {
  opacity: 0;
  animation: scrollFadeIn 1s forwards 0.4s, bounce 2s infinite ease-in-out 1.4s;
}

@keyframes scrollFadeIn {
  from { opacity: 0; transform: translateY(40px) translateX(-50%); }
  to { opacity: 0.8; transform: translateY(0) translateX(-50%); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(10px) translateX(-50%); }
}


/* SECTION 2: DIAGNOSIS */
.section-diagnosis h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.section-diagnosis p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pull-quote {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent-orange);
  line-height: 1.1;
  border-left: 4px solid var(--accent-orange);
  padding-left: 2rem;
  max-width: 600px;
}


/* SECTION 3: CONCEPT */
.section-header {
  margin-bottom: 4rem;
}

.section-concept h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.concept-video-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}


/* SECTION 4: OFFER */
.section-offer h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  padding: 3rem 2rem;
  background-color: var(--bg-primary);
  border-top: 2px solid #EAEAEA;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-top-color: var(--text-primary);
}

.card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.offer-footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.countdown {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: 1rem;
}


/* SECTION 5: ABOUT FLUXIO LIVE */
.section-about h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.about-grid {
  align-items: start;
}

.about-left h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-left .subline {
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--accent-orange);
}

.about-body p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-right {
  display: flex;
  flex-direction: column;
}

.stat-item {
  border-top: 2px solid #EAEAEA;
  padding: 2rem 0;
}

.stat-item:first-child {
  border-top: none;
  padding-top: 0;
}

.stat-num {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-footer {
  text-align: center;
  margin-top: 5rem;
  font-size: 0.85rem;
  color: #777777;
}


/* SECTION 6: CTA */
.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 8rem 0;
}

.section-cta h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

.btn-email {
  display: inline-block;
  margin-top: 3.5rem;
  padding: 1.5rem 3.5rem;
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(244, 138, 58, 0.4);
}

.btn-email:hover {
  background-color: #E27928;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 138, 58, 0.6);
}

.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  section { padding: 5rem 0; }
  
  .grid-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-hero {
    height: auto;
    min-height: 100vh;
    padding: 6rem 0 4rem;
  }
  
  .hero-content {
    text-align: center;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    align-self: center;
    transform: none;
  }

  .hero-video, .hero-video-inline {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
  }

  .pull-quote {
    font-size: 2rem;
    padding-left: 1.5rem;
    border-left-width: 3px;
  }

  .btn-email {
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    width: 100%;
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .stat-item:first-child {
    border-top: 2px solid #EAEAEA;
    padding-top: 2rem;
  }
}
