/* ============================================================
   HERO.CSS — BachatAI  (chat-focused)
   ============================================================ */

/* ── SECTION SHELL ────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--color-bg);
}

/* ── BACKGROUND ───────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Single soft green glow behind phone — right side */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 200, 83, 0.12) 0%,
    rgba(26, 107, 255, 0.06) 50%,
    transparent 70%
  );
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  filter: blur(40px);
}

/* ── INNER LAYOUT ─────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ── LEFT: COPY ───────────────────────────────────────────── */
.hero-copy {
  display: flex;
  flex-direction: column;
}

/* Label pill */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green-dim);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  width: fit-content;

  opacity: 0;
  transform: translateY(-14px);
}

.hero-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  animation: heroPulse 2s ease infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0,200,83,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0,200,83,0);   }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(64px);
}

.hero-line--accent {
  color: var(--color-green);
  font-style: italic;
}

/* Sub */
.hero-sub {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
}

/* CTA */
.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-btn-cta {
  padding: 15px 36px;
  font-size: var(--text-sm);
  font-weight: 700;
  gap: 10px;
}

.hero-btn-cta svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero-btn-cta:hover svg {
  transform: translateX(4px);
}

.hero-cta-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── RIGHT: PHONE ─────────────────────────────────────────── */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.hero-phone {
  position: relative;
}

/* ── PHONE SHELL ──────────────────────────────────────────── */
.phone-shell {
  width: 290px;
  background: #060D1F;
  border-radius: 50px;
  padding: 14px 14px 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 0 10px #0B1F4B,
    0 0 0 11px rgba(255,255,255,0.04),
    0 50px 100px rgba(11,31,75,0.5),
    0 25px 50px rgba(11,31,75,0.3);
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 7px;
  background: #000;
  border-radius: 4px;
  margin: 0 auto 12px;
}

/* ── PHONE SCREEN ─────────────────────────────────────────── */
.phone-screen {
  background: #080C14;
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

/* ── CHAT HEADER ──────────────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-ai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1A6BFF, #00C853);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-ai-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.chat-ai-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

.chat-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00C853;
  animation: heroPulse 2s ease infinite;
}

/* ── CHAT MESSAGES AREA ───────────────────────────────────── */
.chat-messages {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Initial state for chat messages — GSAP animates these in */
.chat-msg {
  display: flex;
  opacity: 0;
  transform: translateY(12px);
}

.chat-msg--user {
  justify-content: flex-end;
}

.chat-msg--ai {
  justify-content: flex-start;
  flex-direction: column;
  gap: 6px;
}

/* Bubbles */
.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 450;
}

.chat-bubble--ai {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px 16px 16px 16px;
  color: rgba(255,255,255,0.85);
}

.chat-bubble--ai strong {
  color: #00C853;
  font-weight: 700;
}

.chat-bubble--user {
  background: linear-gradient(135deg, #1A6BFF, #0052CC);
  border-radius: 16px 16px 4px 16px;
  color: #fff;
}

/* Hidden state — used before JS reveals */
.chat-bubble--hidden {
  display: none;
}

/* ── TYPING INDICATOR ─────────────────────────────────────── */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px 16px 16px 16px;
  width: fit-content;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typingBounce 1.2s ease infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1;   }
}

/* ── CHAT INPUT BAR ───────────────────────────────────────── */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.chat-input-text {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.chat-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A6BFF, #00C853);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* ── PHONE BOTTOM NAV ─────────────────────────────────────── */
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.phone-nav-item {
  font-size: 18px;
  opacity: 0.3;
}

.phone-nav-item--active {
  opacity: 1;
}

/* ── BOTTOM FADE ──────────────────────────────────────────── */
.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 2;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 48px;
  }
  .phone-shell {
    width: 260px;
  }
  .phone-screen {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-label {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-wrap {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-phone-wrap {
    order: -1;
  }

  .phone-shell {
    width: 250px;
  }

  .phone-screen {
    height: 440px;
  }
}

@media (max-width: 480px) {
  .hero-btn-cta {
    width: 100%;
    justify-content: center;
  }
}