﻿/*
   Talkiva - css\components\hero.css
   Hero, phone mockup, ambient glow, mouse spotlight
   Extracted verbatim from the original style.css. No rules altered.
*/

/* ---------- 6. Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(239, 27, 67, 0.2), transparent 60%),
    radial-gradient(900px 620px at -12% 112%, rgba(239, 164, 27, 0.12), transparent 55%),
    var(--bg-dark);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 26%), rgba(239, 27, 67, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 540px; height: 540px;
  top: -140px; right: -90px;
  background: radial-gradient(circle, rgba(239, 27, 67, 0.5), transparent 65%);
  animation: floatA 15s ease-in-out infinite;
}
.blob-2 {
  width: 430px; height: 430px;
  bottom: -120px; left: -130px;
  background: radial-gradient(circle, rgba(239, 164, 27, 0.32), transparent 65%);
  animation: floatB 18s ease-in-out infinite;
}
.blob-3 {
  width: 300px; height: 300px;
  top: 42%; left: 42%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 65%);
  animation: floatC 21s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.display {
  font-family: var(--font-head);
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.display .accent { display: inline-block; }

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}
.stars { display: flex; gap: 4px; color: var(--gold); }
.trust strong { color: #fff; font-weight: 600; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.phone-wrap { position: relative; }

/* Animated ambient glow behind the phone (pure CSS, Talkiva accents) */
.phone-aura {
  position: absolute;
  inset: -90px;
  z-index: 0;
  pointer-events: none;
}
.aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform;
}
.aura-1 {
  width: 260px; height: 260px;
  top: 4%; left: -4%;
  background: radial-gradient(circle, rgba(239, 27, 67, 0.9), rgba(239, 27, 67, 0) 70%);
  animation: auraFloatA 14s ease-in-out infinite;
}
.aura-2 {
  width: 230px; height: 230px;
  top: 34%; right: -6%;
  background: radial-gradient(circle, rgba(239, 164, 27, 0.85), rgba(239, 164, 27, 0) 70%);
  animation: auraFloatB 18s ease-in-out infinite;
}
.aura-3 {
  width: 300px; height: 300px;
  bottom: -6%; left: 16%;
  background: radial-gradient(circle, rgba(42, 1, 5, 0.95), rgba(239, 27, 67, 0.28) 55%, rgba(42, 1, 5, 0) 75%);
  opacity: 0.7;
  animation: auraFloatC 22s ease-in-out infinite;
}
.aura-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 430px; height: 430px;
  margin: -215px 0 0 -215px;
  border-radius: 50%;
  border: 1.5px dashed rgba(239, 164, 27, 0.35);
  animation: auraSpin 26s linear infinite;
}
@keyframes auraFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 36px) scale(1.15); }
}
@keyframes auraFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28px, -32px) scale(0.9); }
}
@keyframes auraFloatC {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(20px, -26px) scale(1.1) rotate(8deg); }
}
@keyframes auraSpin {
  to { transform: rotate(360deg); }
}

.phone {
  width: 300px;
  max-width: 100%;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b0710, #150309);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 10px rgba(255, 255, 255, 0.04),
    0 0 70px rgba(239, 27, 67, 0.28);
  padding: 16px;
  position: relative;
  z-index: 2;
  animation: phoneFloat 6.5s ease-in-out infinite;
}
.call-screen {
  border-radius: 32px;
  background:
    radial-gradient(400px 300px at 50% 0%, rgba(239, 27, 67, 0.28), transparent 60%),
    linear-gradient(180deg, #22050c, #100207);
  padding: 40px 24px 32px;
  text-align: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.call-avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF1B43, #EFA41B);
  flex-shrink: 0;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 14px 40px rgba(239, 27, 67, 0.4);
}
.call-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.call-avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 27, 67, 0.4);
  animation: ringPulse 2.4s var(--ease-out) infinite;
}
.call-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.call-role { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }
.call-timer {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
  margin-bottom: 24px;
}
.wave-bar {
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-soft), var(--gold));
  height: 30%;
  animation: wave 1.1s ease-in-out infinite alternate;
}
.wave-bar:nth-child(even) {
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.call-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.ctrl {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
.ctrl:hover { transform: translateY(-4px) scale(1.08); background: rgba(255, 255, 255, 0.14); }
.ctrl-video {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
  color: #03201a;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.35);
}
.ctrl-video:hover { box-shadow: 0 14px 34px rgba(34, 211, 238, 0.5); background: linear-gradient(135deg, var(--cyan), var(--green)); }
.ctrl-end {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #EF1B43, #b30e30);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(239, 27, 67, 0.5);
}
.ctrl-end i { transform: rotate(135deg); }
.ctrl-end:hover { box-shadow: 0 16px 40px rgba(239, 27, 67, 0.65); background: linear-gradient(135deg, #ff2d55, #c31036); }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 3;
  animation: chipFloat 5.5s ease-in-out infinite;
}
.chip i { font-size: 0.95rem; }
.chip-1 { top: 6%; left: -96px; }
.chip-1 i { color: var(--green); }
.chip-2 { top: 24%; left: -96px; animation-delay: 1.1s; }
.chip-2 i { color: var(--primary-soft); }
.chip-3 { top: 44%; right: -158px; animation-delay: 2s; }
.chip-3 i { color: var(--cyan); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--primary-soft);
  animation: scrollDot 1.8s ease-in-out infinite;
}

