/* ═══════════════════════════════════════════
   HERO + KINETIC TEXT & 3D SHOWCASE STAGE
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
  background: transparent;
}

.hero__bg-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.16) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
  top: 30%;
  left: 55%;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-out-expo);
  filter: blur(22px);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(55px);
  opacity: 0.45;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero__orb--1 { width: 320px; height: 320px; background: rgba(79, 70, 229, 0.18); top: 10%; right: 6%; }
.hero__orb--2 { width: 240px; height: 240px; background: rgba(18, 19, 26, 0.08); bottom: 10%; left: 6%; animation-delay: -5s; }
.hero__orb--3 { width: 200px; height: 200px; background: rgba(14, 165, 233, 0.18); top: 55%; left: 42%; animation-delay: -2.5s; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(32px, -28px) scale(1.14); }
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid rgba(79, 70, 229, 0.42);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.14));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent-deep);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.14);
}
.hero__badge--animated {
  animation: badgeFloat 3.6s ease-in-out infinite, badgeGlow 3.6s ease-in-out infinite;
}
.hero__badge--animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 8px 26px rgba(79, 70, 229, 0.14); }
  50%      { box-shadow: 0 12px 34px rgba(79, 70, 229, 0.28); }
}
@keyframes badgeShimmer { 0% { left: -120%; } 55%, 100% { left: 160%; } }

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.75; } }

/* Kinetic Per-Character Title */
.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  perspective: 900px;
}
.hero__line { display: block; overflow: visible; padding: 0.04em 0.12em 0.12em 0; }
.hero__name-accent { font-weight: 700; }
.hero__name-accent .kinetic-char {
  color: var(--clr-accent-pop);
  animation: accentColorShift 6s ease-in-out infinite;
}
@keyframes accentColorShift {
  0%, 100% { color: #4f46e5; }
  50%      { color: #3730a3; }
}

.kinetic-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%) rotateX(-65deg);
  filter: blur(6px);
  transition: transform 0.75s var(--ease-out-expo), opacity 0.6s ease, filter 0.6s ease, color 0.25s ease;
  transition-delay: var(--char-delay, 0ms);
}
body.is-loaded .kinetic-char { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
.kinetic-char:hover { transform: translateY(-8px) scale(1.08) !important; color: var(--clr-accent-pop); }

/* Kinetic Rotating Role */
.hero__role-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hero__role-prefix { color: var(--clr-text-muted); font-weight: 500; }
.hero__role-rotator {
  position: relative;
  display: inline-block;
  min-width: 270px;
  height: 1.7em;
  line-height: 1.65;
  overflow: hidden;
  color: var(--clr-text);
  font-weight: 700;
}
.hero__role-rotator span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(100%) rotateX(-35deg);
  transition: transform 0.65s var(--ease-out-expo), opacity 0.5s ease;
  white-space: nowrap;
}
.hero__role-rotator span.is-active { opacity: 1; transform: translateY(0) rotateX(0deg); }
.hero__role-rotator span.is-exit { opacity: 0; transform: translateY(-100%) rotateX(35deg); }

.hero__description { font-size: 1.05rem; color: var(--clr-text-muted); max-width: 550px; margin-bottom: 2rem; }
.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out-expo);
  transition-delay: var(--word-delay, 0ms);
}
body.is-loaded .kinetic-word { opacity: 1; transform: translateY(0); }

.reveal-line { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo); }
body.is-loaded .reveal-line { opacity: 1; transform: translateY(0); }
body.is-loaded .hero__cta { transition-delay: 0.45s; }
body.is-loaded .hero__mini-stats { transition-delay: 0.58s; }

.hero__cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.25rem; }

.hero__mini-stats {
  display: flex;
  gap: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}
.hero__mini-stats strong { display: block; font-family: var(--ff-heading); font-size: 1.35rem; font-weight: 700; color: var(--clr-text); }
.hero__mini-stats span { font-size: 0.74rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Right Column: 3D Floating Showcase Stage */
.hero__right { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }

.hero__stamp {
  position: absolute;
  top: -12px;
  right: 8px;
  width: 120px;
  height: 120px;
  color: var(--clr-text);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__stamp svg { animation: stampSpin 16s linear infinite; }
.hero__stamp-dot { position: absolute; font-size: 1.15rem; color: var(--clr-accent-pop); }
@keyframes stampSpin { to { transform: rotate(360deg); } }

.hero__float-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s var(--ease-out-expo);
}
.hero__float-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__float-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(15,16,22,0.86), transparent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}
.hero__float-caption span { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.78; }

.hero__float-card--main { width: 290px; height: 230px; z-index: 2; animation: floatCardA 6s ease-in-out infinite; }
.hero__float-card--top { width: 185px; height: 145px; top: 24px; left: 0; z-index: 3; animation: floatCardB 5.5s ease-in-out infinite; }
.hero__float-card--bottom { width: 180px; height: 138px; bottom: 8px; right: -6px; z-index: 3; animation: floatCardC 6.5s ease-in-out infinite; }

@keyframes floatCardA { 0%, 100% { transform: translateY(0px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes floatCardB { 0%, 100% { transform: translateY(0px) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes floatCardC { 0%, 100% { transform: translateY(0px) rotate(3deg); } 50% { transform: translateY(10px) rotate(0deg); } }

.hero__chip {
  position: absolute;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: var(--clr-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 5;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  animation: badgeFloat 4.5s ease-in-out infinite;
}
.hero__chip--1 { top: 45%; left: -10px; animation-delay: 0s; }
.hero__chip--2 { bottom: 38px; left: 22px; background: var(--clr-accent-pop); animation-delay: -1.5s; }
.hero__chip--3 { top: 155px; right: 12px; animation-delay: -2.8s; }
.hero__chip--4 { top: 28px; left: 165px; background: #001e36; border: 1px solid #31a8ff; color: #31a8ff; animation-delay: -0.9s; }

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll-indicator span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-text-muted); }
.hero__scroll-line { width: 1px; height: 40px; background: var(--clr-border); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-accent-pop);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* Marquee */
.marquee {
  background: var(--clr-dark);
  color: #fff;
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee__track { display: flex; width: max-content; animation: marqueeScroll 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee__sep { color: var(--clr-accent-soft); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero__layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero__right { height: 380px; }
  .hero__float-card--main { width: 220px; height: 175px; }
  .hero__float-card--top { width: 145px; height: 115px; }
  .hero__float-card--bottom { width: 150px; height: 120px; }
  .hero__scroll-indicator { display: none; }
}
