/* ── HERO ───────────────────────────────────────────── */
@keyframes aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg,
    #143f4e 0%,
    #1c6478 35%,
    #1a6b7a 60%,
    #165a6e 80%,
    #143f4e 100%
  );
  background-size: 250% 250%;
  animation: aurora 18s ease infinite;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(224, 55, 138, .15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255, 255, 255, .05) 0%, transparent 50%);
  z-index: 1;
}

/* ── NOISE TEXTURE ──────────────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 256px 256px, 60px 60px, 60px 60px;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s infinite;
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title .line2 {
  color: var(--pink);
}

.hero-subtitle {
  color: rgba(255, 255, 255, .8);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  transition: none;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-num[data-count] {
  display: flex;
  min-width: 5ch;
  justify-content: center;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
  min-width: 100%;
}

/* Cube illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-scene {
  width: 340px;
  height: 340px;
  position: relative;
  animation: float 6s ease-in-out infinite;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cube-scene.scroll-animate {
  position: fixed;
  top: 30px !important;
  right: 80px !important;
  left: auto !important;
  width: 40px !important;
  height: 40px !important;
  z-index: 500;
}

.cube-scene svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* ── HERO TITLE ANIMATIONS ──────────────────────────── */
@keyframes dropIn {
  0%   { opacity: 0; transform: translateY(-40px); }
  60%  { transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes splitFromLeft {
  0%   { opacity: 0; transform: translateX(-30px) skewX(8deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes splitFromRight {
  0%   { opacity: 0; transform: translateX(30px) skewX(-8deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes splitFromBottom {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title-line1 {
  display: inline-block;
  opacity: 0;
  animation: dropIn 0.6s cubic-bezier(.22,1,.36,1) 0.2s forwards;
}

.split-word {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.split-word.animate-left {
  animation: splitFromLeft 0.6s cubic-bezier(.22,1,.36,1) forwards;
}

.split-word.animate-right {
  animation: splitFromRight 0.6s cubic-bezier(.22,1,.36,1) forwards;
}

.split-word.animate-bottom {
  animation: splitFromBottom 0.5s cubic-bezier(.22,1,.36,1) forwards;
}

#heroTypingLine {
  border-right: 3px solid var(--pink);
  animation: blinkCursor 0.7s step-end infinite;
  min-height: 1em;
  display: inline-block;
}

#heroTypingLine.done {
  animation: none;
  border-right: none;
}

@keyframes blinkCursor {
  0%, 100% { border-color: var(--pink); }
  50%       { border-color: transparent; }
}

/* ── TYPING CURSOR ──────────────────────────────────── */
@keyframes blink {
  0%, 100% { border-color: rgba(255,255,255,0.7); }
  50%       { border-color: transparent; }
}

.hero-subtitle {
  animation: none;
}

.hero-subtitle[style*="border-right"] {
  animation: blink 0.7s step-end infinite;
}

/* ── MARQUEE STRIP ──────────────────────────────────── */
.marquee-strip {
  background: var(--teal-dark);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding: 0 24px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span.dot {
  color: var(--pink);
  padding: 0 8px;
}

@media (min-width: 601px) and (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
  }

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

  .cube-scene {
    width: 200px;
    height: 200px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 70px 0 40px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 74px 0 40px;
  }
}


@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .hero-stat-num {
    font-size: 1.5rem;
    height: auto;
  }

  .hero-stat-label {
    font-size: .70rem;
  }



  .hero-actions .btn {
    font-size: .82rem;
    padding: 11px 16px;
  }
}
