/* ═══════════════════════════════════════════
   HERO SECTION STYLES
═══════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

/* ── Animated gradient mesh ── */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 65% 35%, rgba(30,106,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 10% 75%, rgba(0,212,170,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 90% 10%, rgba(0,194,255,0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(124,58,237,0.08) 0%, transparent 50%),
    linear-gradient(165deg, #020817 0%, #071428 50%, #020d1c 100%);
  animation: mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 5% 5%;
  }
}

/* ── Glow orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(30,106,255,0.22), transparent 65%);
  animation-duration: 10s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(0,212,170,0.18), transparent 65%);
  animation-duration: 13s;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 65%);
  animation-duration: 8s;
  animation-delay: -6s;
}

.orb-4 {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 20%;
  background: radial-gradient(circle, rgba(0,194,255,0.1), transparent 65%);
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, -40px) scale(1.1);
  }
}

/* ── Floating tech particles ── */
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.h-particle {
  position: absolute;
  border-radius: 50%;
  animation: p-rise linear infinite;
}

@keyframes p-rise {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) rotate(360deg);
    opacity: 0;
  }
}

/* ── Scan lines ── */
.scan-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,194,255,0.008) 3px, rgba(0,194,255,0.008) 4px);
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 200px;
  }
}

/* ── Hexagon grid overlay ── */
.hex-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cg fill='none' stroke='rgba(0,194,255,0.04)' stroke-width='1'%3E%3Cpolygon points='40,2 76,22 76,62 40,82 4,62 4,22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 92px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black, transparent 70%);
}

/* ── Hero content ── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,194,255,0.06);
  border: 1px solid rgba(0,194,255,0.25);
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0,194,255,0.1);
  animation: badge-in 0.8s 0.1s var(--spring) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-h1 {
  animation: hero-in 0.9s 0.2s var(--spring) both;
  margin-bottom: 20px;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-h1 .line2 {
  display: block;
  background: linear-gradient(135deg, #00c2ff 0%, #00d4aa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0,194,255,0.4));
}

.hero-sub {
  max-width: 500px;
  margin-bottom: 36px;
  font-size: 1.05rem;
  animation: hero-in 0.9s 0.3s var(--spring) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  animation: hero-in 0.9s 0.4s var(--spring) both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: hero-in 0.9s 0.5s var(--spring) both;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  display: block;
}

.stat-val.c {
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(0,194,255,0.5));
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Hero wave ── */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* ── AI Chat Widget ── */
.ai-widget {
  animation: hero-in 0.9s 0.35s var(--spring) both;
  position: relative;
}

.ai-widget::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-xl) + 2px);
  background: linear-gradient(135deg, rgba(0,194,255,0.4), rgba(0,212,170,0.2), rgba(30,106,255,0.3));
  z-index: -1;
  animation: border-glow 4s ease-in-out infinite alternate;
}

@keyframes border-glow {
  0% {
    opacity: 0.5;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(4px);
  }
}

.ai-widget-inner {
  background: rgba(5,15,30,0.9);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: var(--r-xl);
  backdrop-filter: blur(30px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-widget-header {
  padding: 18px 22px 16px;
  background: linear-gradient(180deg, rgba(30,106,255,0.12), transparent);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e6aff, #00c2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ai-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.ai-header-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.ai-header-text p {
  font-size: 0.73rem;
  color: var(--text-dim);
}

.ai-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 700;
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: blink 2s ease-in-out infinite;
}

.ai-chat-area {
  padding: 16px 20px;
  min-height: 200px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

.ai-chat-area::-webkit-scrollbar {
  width: 3px;
}

.ai-chat-area::-webkit-scrollbar-thumb {
  background: rgba(0,194,255,0.3);
  border-radius: 2px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-msg.bot {
  flex-direction: row;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.msg-av {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.msg-av.bot {
  background: linear-gradient(135deg, #1e6aff, #00c2ff);
  box-shadow: 0 0 10px rgba(0,194,255,0.4);
}

.msg-av.user {
  background: rgba(255,255,255,0.1);
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.bot .msg-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  border-radius: 4px 16px 16px 16px;
}

.user .msg-bubble {
  background: linear-gradient(135deg, rgba(30,106,255,0.7), rgba(0,194,255,0.5));
  color: white;
  border-radius: 16px 4px 16px 16px;
  backdrop-filter: blur(10px);
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-dimmer);
  margin-top: 3px;
}

.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 20px 0;
}

.qr {
  background: rgba(0,194,255,0.06);
  border: 1px solid rgba(0,194,255,0.25);
  color: var(--cyan);
  border-radius: var(--r-full);
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  backdrop-filter: blur(8px);
}

.qr:hover {
  background: rgba(0,194,255,0.15);
  box-shadow: 0 0 16px rgba(0,194,255,0.3);
}

.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--glass-border);
}

.ai-inp {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.84rem;
  color: white;
  outline: none;
  transition: all 0.25s;
}

.ai-inp::placeholder {
  color: var(--text-dimmer);
}

.ai-inp:focus {
  border-color: rgba(0,194,255,0.5);
  background: rgba(0,194,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.1), var(--glow-cyan);
}

.ai-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1e6aff, #00c2ff);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--glow-blue);
}

.ai-send:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(0,194,255,0.6);
}

/* ── Typing indicator ── */
.typing {
  display: flex;
  gap: 4px;
  padding: 8px 2px;
  align-items: center;
}

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: t-bounce 1.2s ease-in-out infinite;
  opacity: 0.5;
}

.t-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.t-dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes t-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
