/* ==========================================================================
   iTradeAIMS Theme - Modern Single-Section Zero-Scroll Hero
   Signature Palette: #007aff, #0056cc, #0062d2 (Matching Top Announcement Bar)
   ========================================================================== */

/* 1. Viewport Lock (Zero-Scroll on Desktop, Tablet & Mobile) */
html:has(body.home),
body.home {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  background-color: #06090e;
}

body.home .site-main.front-page-main {
  position: fixed;
  top: var(--header-offset);
  bottom: 56px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--header-offset) - 56px);
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  z-index: 10;
  background-color: #06090e;
  transition: top var(--transition-smooth);
}

html.banner-dismissed body.home .site-main.front-page-main {
  top: var(--header-height);
  height: calc(100dvh - var(--header-height) - 56px);
}

/* Minimal Seamless Glass Footer on Homepage */
body.home .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 100;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  margin-top: 0;
  display: flex;
  align-items: center;
}

/* 2. Signature Blue Moving Ambient Lighting */
.hero-ambient-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Top Light Influx (Simulating light flowing down from the blue header bar) */
.ambient-glow-beam {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80vw);
  height: 340px;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(0, 122, 255, 0.35) 0%, rgba(0, 86, 204, 0.12) 50%, transparent 80%);
  filter: blur(50px);
  animation: beamBreathe 8s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

/* Central Luminous Aura behind Punchline */
.ambient-glow-primary {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 75vw);
  height: min(440px, 50vh);
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(0, 122, 255, 0.26) 0%, rgba(0, 98, 210, 0.1) 50%, transparent 75%);
  filter: blur(80px);
  animation: auraPulse 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Secondary Moving Blue Accent */
.ambient-glow-secondary {
  position: absolute;
  top: 30%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: min(900px, 85vw);
  height: min(500px, 55vh);
  background: radial-gradient(circle, rgba(0, 86, 204, 0.16) 0%, rgba(0, 122, 255, 0.05) 55%, transparent 70%);
  filter: blur(100px);
  animation: auraDrift 14s ease-in-out infinite alternate;
  will-change: transform;
}

/* 3. Hero Content Typography & Controls */
.hero-content-wrapper {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vh, 28px);
}

/* Modern Minimal Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(0, 122, 255, 0.07);
  border: 1px solid rgba(0, 122, 255, 0.26);
  border-radius: 999px;
  box-shadow: 0 0 24px -2px rgba(0, 122, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast);
}

.hero-badge .badge-text {
  font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

/* Punchline Heading (Single Line Strictly Enforced) */
.hero-punchline {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-punchline .punchline-white {
  display: inline;
  color: #ffffff;
}

/* Blue Gradient Text (Consistent with Topbar Palette) */
.hero-punchline .punchline-blue {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #93c5fd 25%,
    #007aff 60%,
    #0056cc 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textBlueShift 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px rgba(0, 122, 255, 0.4));
}

/* Subtitle (Strictly 1 Line) */
.hero-tagline {
  max-width: 100%;
  margin: 0;
  font-size: clamp(0.875rem, 1.8vw, 1.1875rem);
  line-height: 1.55;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Sleek Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Primary Button: Linear/Apple Style with Highlight Edge */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(180deg, #007aff 0%, #0056cc 100%);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -4px rgba(0, 122, 255, 0.55);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: linear-gradient(180deg, #0a84ff 0%, #0062d2 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 32px -4px rgba(0, 122, 255, 0.75);
  color: #ffffff;
}

.btn-hero-primary .hero-cta-icon {
  transition: transform var(--transition-fast);
}

.btn-hero-primary:hover .hero-cta-icon {
  transform: translateX(3px);
}

/* Secondary Button: Clean Hairline Glass */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-hero-secondary .hero-sec-icon {
  opacity: 0.75;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-hero-secondary:hover .hero-sec-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* 4. Moving Gradient Keyframes (Pure Blue Tones) */
@keyframes beamBreathe {
  0% {
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.18);
  }
}

@keyframes auraPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -48%) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.85;
  }
}

@keyframes auraDrift {
  0% {
    transform: translate(-52%, -50%);
  }
  50% {
    transform: translate(-46%, -53%);
  }
  100% {
    transform: translate(-52%, -50%);
  }
}

@keyframes textBlueShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 5. Responsive Adaptations (Strict Zero-Scroll) */
@media (max-width: 768px) {
  .hero-content-wrapper {
    gap: clamp(14px, 2.2vh, 22px);
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 22px;
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  body.home .site-footer {
    height: auto;
    padding: 10px 0;
  }

  body.home .footer-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  body.home .footer-links {
    gap: 14px;
  }

  body.home .copyright-text,
  body.home .footer-links a {
    font-size: 0.75rem;
  }

  body.home .site-main.front-page-main {
    bottom: 48px;
    height: calc(100dvh - var(--header-offset) - 48px);
  }

  html.banner-dismissed body.home .site-main.front-page-main {
    bottom: 48px;
    height: calc(100dvh - var(--header-height) - 48px);
  }

  .hero-punchline {
    font-size: clamp(1.35rem, 6vw, 2.25rem);
    white-space: nowrap;
  }

  .hero-tagline {
    font-size: clamp(0.72rem, 3.6vw, 0.9375rem);
    line-height: 1.45;
    white-space: nowrap;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 11px 18px;
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .hero-punchline {
    font-size: clamp(1.15rem, 5.6vw, 1.45rem);
    white-space: nowrap;
  }

  .hero-tagline {
    font-size: clamp(0.66rem, 3.3vw, 0.78rem);
    white-space: nowrap;
  }
}

/* Short Mobile Viewports */
@media (max-height: 680px) {
  .hero-content-wrapper {
    gap: 12px;
  }

  .hero-badge {
    padding: 4px 12px;
  }

  .hero-punchline {
    font-size: clamp(1.6rem, 4.2vw, 2.8rem);
    white-space: nowrap;
  }

  .hero-tagline {
    font-size: 0.8125rem;
    max-width: 500px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 9px 16px;
    font-size: 0.8125rem;
  }
}
