/* Premium hero — AI Translator Platform */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 60% at 82% 48%, rgba(65, 75, 255, .20), transparent 80%),
    radial-gradient(ellipse 45% 65% at 57% 58%, rgba(140, 45, 225, .18), transparent 80%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-call-art {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(160, 105, 255, .45);
  border-radius: 28px;
  background:
    radial-gradient(circle at 65% 30%, rgba(75, 95, 255, .18), transparent 65%),
    linear-gradient(145deg, #121533, #090e25);
  box-shadow:
    0 0 55px rgba(122, 58, 255, .16),
    0 30px 90px rgba(0, 0, 0, .35);
}

.hero-call-art::before {
  content: "";
  position: absolute;
  inset: -35px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100, 65, 255, .24), transparent 70%);
  pointer-events: none;
}

.hero-call-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  color: #c5baff;
  font-size: 13px;
}

.hero-call-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 180px;
}

.hero-call-language {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(165, 135, 255, .5);
  border-radius: 22px;
  background: linear-gradient(145deg, #31246d, #172450);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(111, 70, 255, .2);
}

.hero-call-wave {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 100px;
}

.hero-call-wave span {
  width: 5px;
  height: var(--h, 40%);
  border-radius: 10px;
  background: linear-gradient(#c36bff, #3bbcff);
  box-shadow: 0 0 12px rgba(117, 100, 255, .5);
  animation: hero-wave 1.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.hero-call-caption {
  padding-top: 22px;
  border-top: 1px solid rgba(165, 135, 255, .15);
  color: #aebbd6;
  text-align: center;
  font-size: 14px;
}

@keyframes hero-wave {
  to { transform: scaleY(.35); opacity: .65; }
}

@media (max-width: 600px) {
  .hero-call-art { padding: 18px; }
  .hero-call-language { width: 54px; height: 54px; font-size: 18px; }
  .hero-call-stage { gap: 8px; }
  .hero-call-wave { gap: 3px; }
  .hero-call-wave span { width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-call-wave span { animation: none; }
}

/* Cinematic background for the hero */
.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse 48% 62% at 88% 43%, rgba(31, 91, 255, .28), transparent 75%),
    radial-gradient(ellipse 54% 65% at 60% 64%, rgba(130, 35, 230, .27), transparent 75%),
    linear-gradient(115deg, #050b1c 5%, #101039 58%, #07132d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  right: -12%;
  top: 8%;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(80, 146, 255, .35);
  background:
    repeating-radial-gradient(circle, transparent 0 17px, rgba(65, 116, 255, .12) 18px 19px),
    radial-gradient(circle at 30% 30%, rgba(35, 118, 255, .24), transparent 68%);
  box-shadow: 0 0 110px rgba(40, 90, 255, .18), inset 0 0 75px rgba(50, 100, 255, .14);
  opacity: .75;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 42% 20% at 75% 76%, rgba(139, 42, 255, .22), transparent 80%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero::before {
    width: 75vw;
    right: -35%;
    top: 35%;
    opacity: .35;
  }
}

/* Cinematic call interface */
.hero-call-premium {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(147, 111, 255, .5);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 68, 220, .2), transparent 65%),
    linear-gradient(145deg, rgba(23, 27, 67, .96), rgba(8, 14, 38, .98));
  box-shadow:
    0 0 65px rgba(108, 59, 255, .23),
    0 35px 100px rgba(0, 0, 0, .45);
}

.hero-call-status {
  margin: 32px 0 10px;
  color: #e5dcff;
  font-size: 19px;
  font-weight: 750;
  text-align: center;
}

.hero-call-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-call-person small {
  color: #aebbd5;
  font-size: 12px;
  white-space: nowrap;
}

.call-live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 15px rgba(110, 231, 183, .6);
}

.hero-call-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 26px;
}

.hero-call-controls span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(90, 85, 165, .24);
  border: 1px solid rgba(168, 140, 255, .3);
  color: #dcd4ff;
  font-size: 21px;
}

.hero-call-controls .hero-call-hangup {
  background: linear-gradient(135deg, #ff526f, #ce235c);
  border-color: transparent;
  color: #fff;
}

.hero-floating-features {
  position: absolute;
  right: -36px;
  bottom: -94px;
  display: grid;
  gap: 8px;
  width: 245px;
  padding: 22px;
  border: 1px solid rgba(166, 130, 255, .38);
  border-radius: 20px;
  background: rgba(18, 23, 55, .94);
  box-shadow: 0 25px 65px rgba(0, 0, 0, .4);
  backdrop-filter: blur(18px);
  color: #c7c1e6;
  font-size: 13px;
}

.hero-floating-features strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 16px;
}

.hero-floating-features span::first-letter {
  color: #8fe5c5;
}

@media (max-width: 1050px) {
  .hero-floating-features {
    position: static;
    width: 100%;
    margin-top: 22px;
  }
}

@media (max-width: 600px) {
  .hero-call-premium { padding: 20px; }
  .hero-call-top { font-size: 11px; }
  .hero-call-person small { font-size: 10px; }
  .hero-call-status { font-size: 16px; }
}

/* Keep the floating features panel inside the call visual */
@media (min-width: 1051px) {
  .hero-call-premium {
    overflow: visible;
  }

  .hero-floating-features {
    right: 16px;
    bottom: 76px;
    width: 205px;
    padding: 17px;
    gap: 7px;
    font-size: 12px;
    z-index: 5;
    box-sizing: border-box;
  }

  .hero-call-caption {
    position: relative;
    z-index: 1;
    padding-right: 0;
    text-align: left;
    max-width: 55%;
  }
}

/* Fix: feature panel below the call window, no overlaps */
.hero-call-premium {
  margin-bottom: 0;
}

.hero-call-premium .hero-floating-features {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 26px 0 0 !important;
  padding: 18px 22px;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  text-align: left;
}

.hero-call-premium .hero-floating-features strong {
  grid-column: 1 / -1;
}

.hero-call-premium .hero-call-caption {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  margin: 18px 0 0;
  text-align: center !important;
  white-space: nowrap;
  font-size: clamp(10px, 1vw, 14px);
}

@media (max-width: 600px) {
  .hero-call-premium .hero-floating-features {
    grid-template-columns: 1fr;
  }

  .hero-call-premium .hero-call-caption {
    font-size: 9px;
    letter-spacing: -.2px;
  }
}

/* Premium neon treatment */
.hero-call-premium {
  border: 1px solid rgba(155, 94, 255, .85);
  background:
    radial-gradient(ellipse at 50% -25%, rgba(99, 65, 235, .26), transparent 65%),
    linear-gradient(145deg, #17183f 0%, #101638 52%, #080f28 100%);
  box-shadow:
    0 0 0 5px rgba(117, 56, 255, .035),
    0 0 35px rgba(122, 55, 255, .28),
    0 0 85px rgba(41, 101, 255, .13),
    0 35px 90px rgba(0, 0, 0, .38);
}

.hero-call-premium .hero-call-language {
  border: 1px solid rgba(139, 104, 255, .9);
  background:
    radial-gradient(circle at 50% 20%, rgba(116, 71, 255, .25), transparent 75%),
    linear-gradient(145deg, #252057, #151c48);
  box-shadow:
    inset 0 0 24px rgba(97, 62, 245, .12),
    0 0 25px rgba(95, 61, 255, .14);
  text-shadow: 0 0 18px rgba(174, 148, 255, .35);
}

.hero-call-premium .hero-call-wave {
  filter: drop-shadow(0 0 12px rgba(105, 97, 255, .6));
}

.hero-call-premium .hero-call-hangup {
  box-shadow: 0 0 24px rgba(255, 49, 109, .35);
}

.hero-call-premium .hero-floating-features {
  border-color: rgba(119, 101, 255, .55);
  background:
    linear-gradient(135deg, rgba(29, 26, 79, .98), rgba(13, 22, 57, .98));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .06),
    0 0 28px rgba(76, 65, 225, .12);
}

/* Glowing digital globe behind the call window */
.hero::before {
  width: min(45vw, 620px);
  aspect-ratio: 1;
  right: -9%;
  top: 4%;
  border: 2px solid rgba(38, 132, 255, .75);
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 27px,
      rgba(40, 142, 255, .19) 28px 29px
    ),
    repeating-radial-gradient(
      ellipse 35% 100% at 50% 50%,
      transparent 0 34px,
      rgba(43, 135, 255, .28) 35px 36px
    ),
    radial-gradient(
      circle at 38% 30%,
      rgba(36, 145, 255, .38),
      rgba(13, 58, 180, .16) 55%,
      transparent 75%
    );
  box-shadow:
    0 0 30px rgba(24, 123, 255, .55),
    0 0 100px rgba(28, 94, 255, .35),
    inset 0 0 70px rgba(33, 117, 255, .3);
  opacity: .9;
  transform: rotate(-17deg);
  animation: heroGlobeFloat 9s ease-in-out infinite;
}

@keyframes heroGlobeFloat {
  0%, 100% { transform: rotate(-17deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-12px); }
}

@media (max-width: 820px) {
  .hero::before {
    width: 75vw;
    right: -35%;
    top: 25%;
    opacity: .4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Reposition the digital globe behind the call interface */
@media (min-width: 821px) {
  .hero::before {
    width: min(48vw, 680px);
    right: 2%;
    top: 12%;
    opacity: .85;
    background:
      repeating-linear-gradient(
        0deg,
        transparent 0 27px,
        rgba(40, 142, 255, .17) 28px 29px
      ),
      repeating-radial-gradient(
        ellipse 35% 100% at 50% 50%,
        transparent 0 34px,
        rgba(43, 135, 255, .25) 35px 36px
      ),
      radial-gradient(
        circle at 45% 40%,
        rgba(36, 145, 255, .32),
        rgba(13, 58, 180, .14) 58%,
        transparent 76%
      );
    box-shadow:
      0 0 45px rgba(24, 123, 255, .48),
      0 0 130px rgba(28, 94, 255, .3),
      inset 0 0 80px rgba(33, 117, 255, .25);
  }
}

/* Two-color live translation waveform */
.hero-call-premium .hero-call-wave {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 110px;
  padding: 0 10px;
  filter: none;
}

.hero-call-premium .hero-call-wave span {
  flex: 1 1 0;
  min-width: 2px;
  max-width: 7px;
  height: var(--h);
  border-radius: 8px;
  background: linear-gradient(180deg, #ff69f8, #963cff);
  box-shadow: 0 0 10px rgba(221, 61, 255, .65);
  animation: heroVoicePulse 1.15s ease-in-out infinite alternate;
  animation-delay: var(--d);
  transform-origin: center;
}

.hero-call-premium .hero-call-wave span:nth-child(n+12) {
  background: linear-gradient(180deg, #4defff, #008dff);
  box-shadow: 0 0 12px rgba(0, 184, 255, .7);
}

.hero-call-premium .hero-call-wave::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: linear-gradient(transparent, #62dfff, transparent);
  box-shadow: 0 0 14px #27baff;
  transform: translateX(-50%);
}

@keyframes heroVoicePulse {
  from { transform: scaleY(.42); opacity: .65; }
  to { transform: scaleY(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-call-premium .hero-call-wave span {
    animation: none;
  }
}

/* Animated light streams and particles around the globe */
@media (min-width: 821px) {
  .hero::after {
    inset: 0;
    background:
      radial-gradient(circle at 54% 30%, #70dfff 0 2px, transparent 4px),
      radial-gradient(circle at 63% 22%, #c56aff 0 2px, transparent 4px),
      radial-gradient(circle at 79% 17%, #59baff 0 1px, transparent 3px),
      radial-gradient(circle at 91% 38%, #9a70ff 0 2px, transparent 4px),
      radial-gradient(circle at 57% 66%, #b96aff 0 2px, transparent 4px),
      radial-gradient(circle at 83% 77%, #4ddcff 0 2px, transparent 4px),
      radial-gradient(circle at 95% 71%, #bc70ff 0 1px, transparent 3px),
      radial-gradient(ellipse 45% 3% at 72% 28%, rgba(168, 60, 255, .45), transparent 85%),
      radial-gradient(ellipse 42% 2% at 77% 69%, rgba(36, 140, 255, .55), transparent 85%),
      radial-gradient(ellipse 35% 3% at 66% 82%, rgba(171, 48, 255, .35), transparent 85%);
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 9px rgba(80, 135, 255, .8));
    animation: heroLightFlow 7s ease-in-out infinite alternate;
    pointer-events: none;
  }
}

@keyframes heroLightFlow {
  0% {
    opacity: .45;
    transform: translateY(8px) scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: .7;
    transform: translateY(-12px) scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
}

/* Curved neon light trails around the digital globe */
@media (min-width: 821px) {
  .hero-call-premium::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 145%;
    height: 72%;
    left: -27%;
    top: 10%;
    border-radius: 50%;
    border-top: 2px solid rgba(180, 66, 255, .75);
    border-bottom: 2px solid rgba(28, 151, 255, .7);
    transform: rotate(-19deg);
    box-shadow:
      0 -12px 28px -16px rgba(195, 58, 255, .9),
      0 12px 28px -16px rgba(35, 154, 255, .9);
    animation: heroOrbitGlow 6s ease-in-out infinite alternate;
  }

  .hero-call-premium::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 155%;
    height: 55%;
    left: -33%;
    top: 21%;
    border-radius: 50%;
    border-top: 1px solid rgba(63, 159, 255, .65);
    border-bottom: 1px solid rgba(170, 61, 255, .6);
    transform: rotate(-12deg);
    filter: drop-shadow(0 0 10px rgba(115, 82, 255, .8));
    animation: heroOrbitGlow 8s ease-in-out infinite alternate-reverse;
  }
}

@keyframes heroOrbitGlow {
  from { opacity: .35; }
  to { opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-call-premium::before,
  .hero-call-premium::after {
    animation: none;
  }
}

/* Brighter atmospheric glow for the digital globe */
@media (min-width: 821px) {
  .hero::before {
    border: 2px solid rgba(65, 172, 255, .95);
    background:
      repeating-linear-gradient(
        0deg,
        transparent 0 27px,
        rgba(55, 159, 255, .22) 28px 29px
      ),
      repeating-radial-gradient(
        ellipse 35% 100% at 50% 50%,
        transparent 0 34px,
        rgba(64, 161, 255, .3) 35px 36px
      ),
      radial-gradient(
        circle at 48% 42%,
        rgba(28, 125, 255, .35) 0%,
        rgba(15, 73, 204, .28) 42%,
        rgba(7, 32, 110, .15) 68%,
        transparent 78%
      );
    box-shadow:
      0 0 18px rgba(61, 175, 255, .8),
      0 0 65px rgba(35, 119, 255, .55),
      0 0 150px rgba(28, 91, 255, .38),
      inset 0 0 55px rgba(40, 150, 255, .42),
      inset 0 0 120px rgba(24, 94, 255, .22);
  }
}

/* Digital constellation points on the globe */
@media (min-width: 821px) {
  .hero::before {
    background:
      radial-gradient(circle at 22% 35%, #83eaff 0 2px, transparent 3px),
      radial-gradient(circle at 34% 24%, #47bfff 0 1.5px, transparent 3px),
      radial-gradient(circle at 47% 18%, #91eaff 0 2px, transparent 4px),
      radial-gradient(circle at 62% 28%, #4ac7ff 0 2px, transparent 4px),
      radial-gradient(circle at 77% 38%, #89e5ff 0 1.5px, transparent 3px),
      radial-gradient(circle at 29% 53%, #66d5ff 0 2px, transparent 4px),
      radial-gradient(circle at 44% 45%, #9deaff 0 1.5px, transparent 3px),
      radial-gradient(circle at 58% 56%, #54bdff 0 2px, transparent 4px),
      radial-gradient(circle at 73% 64%, #89dfff 0 2px, transparent 4px),
      radial-gradient(circle at 38% 72%, #60cfff 0 1.5px, transparent 3px),
      radial-gradient(circle at 55% 81%, #a1eaff 0 2px, transparent 4px),
      repeating-linear-gradient(
        0deg,
        transparent 0 27px,
        rgba(55, 159, 255, .22) 28px 29px
      ),
      repeating-radial-gradient(
        ellipse 35% 100% at 50% 50%,
        transparent 0 34px,
        rgba(64, 161, 255, .3) 35px 36px
      ),
      radial-gradient(
        circle at 48% 42%,
        rgba(28, 125, 255, .35),
        rgba(15, 73, 204, .28) 42%,
        transparent 78%
      );
  }
}

/* Living digital globe: slow rotation and breathing light */
@media (min-width: 821px) {
  .hero::before {
    transform-origin: center center;
    animation: livingDigitalGlobe 24s ease-in-out infinite;
    will-change: transform, opacity;
  }
}

@keyframes livingDigitalGlobe {
  0% {
    transform: rotate(-17deg) scale(1);
    opacity: .82;
  }
  25% {
    transform: rotate(-12deg) scale(1.025);
    opacity: .95;
  }
  50% {
    transform: rotate(-6deg) scale(1.045);
    opacity: 1;
  }
  75% {
    transform: rotate(-12deg) scale(1.025);
    opacity: .95;
  }
  100% {
    transform: rotate(-17deg) scale(1);
    opacity: .82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
    will-change: auto;
  }
}

/* Animated data signals across the digital globe */
@media (min-width: 821px) {
  .hero::before {
    background-size:
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%;
    animation: livingDigitalGlobe 24s ease-in-out infinite,
               globeSignalGlow 5s ease-in-out infinite alternate;
  }
}

@keyframes globeSignalGlow {
  0% {
    filter: brightness(.9) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.3) hue-rotate(8deg);
  }
  100% {
    filter: brightness(1.05) hue-rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
  }
}
