/* ============================================================
   HERO-V2.CSS
   Concept 2: full-width transparent header + fully dark,
   centered hero with a live "AI agent chat" mockup as the
   visual centerpiece instead of photography.

   Depends on tokens already defined in style.css (:root
   variables, .container, .btn*, .cta-*, .nav-logo*, .nav-links,
   .nav-actions, .nav-toggle, .mobile-nav, .reveal-child) - this
   file only adds what's genuinely new for this page.
   ============================================================ */

/* ============================================================
   HERO V2 - fully dark, centered, single column
   (Navbar V2's own CSS now lives in style.css so it's shared
   with every page that uses navbar-v2.php, not just this one.)
   ============================================================ */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--clr-dark);
  overflow: hidden;
  padding: 160px 0 90px;
}

/* Subtle light grid on the dark hero (inverse of the light page's dark grid) */
.hero-v2-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Restrained radial glow behind the headline, primary-tinted */
.hero-v2-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.hero-v2-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Eyebrow (centered, dark-context tint) --- */
.hero-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--clr-primary-rgb), 0.14);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
  border-radius: var(--r-full);
  padding: 6px 14px 6px 10px;
  margin-bottom: var(--sp-6);
}

.hero-v2-eyebrow .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
}

.hero-v2-eyebrow .eyebrow-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #fda4a4;
  line-height: 1;
}

/* --- Headline --- */
.hero-v2-h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: #fff;
  margin-bottom: var(--sp-6);
  max-width: 760px;
}

.hero-v2-h1 span {
  color: var(--clr-primary);
  font-weight: 400;
}

/* --- Body --- */
.hero-v2-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 540px;
  margin: 0 auto var(--sp-8);
  font-weight: 400;
}

/* --- CTAs (reuses .cta-primary / .cta-secondary as-is;
   .cta-secondary's white pill already reads as a clean
   "outlined light" button against this dark background) --- */
.hero-v2-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

/* .cta-secondary:hover's default darkens its own white fill with a
   dark-tinted overlay (built for light sections) - on this dark hero
   that tint reads as fully transparent, so the pill's fill disappears
   into the dark background instead of staying visible on hover. */
.hero-v2-ctas .cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--clr-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   AGENT TABS - choose which agent "speaks" in the chat below
   ============================================================ */
.agent-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.agent-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: all var(--t-base);
}

.agent-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(var(--cat-rgb), 0.16);
  color: var(--cat-color);
  transition: background var(--t-base), color var(--t-base);
}

.agent-tab-icon svg {
  width: 14px;
  height: 14px;
}

.agent-tab:hover,
.agent-tab.is-active {
  color: #fff;
  border-color: rgba(var(--cat-rgb), 0.4);
  background: rgba(var(--cat-rgb), 0.14);
}

.agent-tab:hover .agent-tab-icon,
.agent-tab.is-active .agent-tab-icon {
  background: var(--cat-color);
  color: #fff;
}

/* Category color scoping - same pattern as index.php, self
   contained here so this file doesn't need to touch style.css */
.tab-career     { --cat-color: var(--clr-primary);         --cat-rgb: var(--clr-primary-rgb); }
.tab-marketplace { --cat-color: var(--clr-cat-marketplace); --cat-rgb: var(--clr-cat-marketplace-rgb); }
.tab-personal   { --cat-color: var(--clr-cat-personal);    --cat-rgb: var(--clr-cat-personal-rgb); }
.tab-business   { --cat-color: var(--clr-cat-business);    --cat-rgb: var(--clr-cat-business-rgb); }

/* ============================================================
   AGENT CHAT CARD - the hero's visual centerpiece
   ============================================================ */
.agent-chat-card {
  --cat-color: var(--clr-primary);
  --cat-rgb: var(--clr-primary-rgb);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  text-align: left;
}

.agent-chat-card.card-career      { --cat-color: var(--clr-primary);         --cat-rgb: var(--clr-primary-rgb); }
.agent-chat-card.card-marketplace { --cat-color: var(--clr-cat-marketplace); --cat-rgb: var(--clr-cat-marketplace-rgb); }
.agent-chat-card.card-personal    { --cat-color: var(--clr-cat-personal);    --cat-rgb: var(--clr-cat-personal-rgb); }
.agent-chat-card.card-business    { --cat-color: var(--clr-cat-business);    --cat-rgb: var(--clr-cat-business-rgb); }

.agent-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-chat-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cat-color);
  box-shadow: 0 0 0 4px rgba(var(--cat-rgb), 0.16);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.avatar-icon {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  color: #fff;
}

.card-career .avatar-icon-career,
.card-marketplace .avatar-icon-marketplace,
.card-personal .avatar-icon-personal,
.card-business .avatar-icon-business {
  display: block;
}

.agent-chat-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.agent-chat-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.agent-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: statusPulse 2.2s ease-in-out infinite;
}

.agent-chat-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--cat-color);
  background: rgba(var(--cat-rgb), 0.16);
  padding: 5px 11px;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: color var(--t-base), background var(--t-base);
}

.agent-chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 6px;
  min-height: 168px;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.5;
}

.chat-msg p {
  margin: 0;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--cat-color);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  transition: background var(--t-base);
}

.chat-msg-agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 14px 14px 14px 4px;
}

.agent-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px 18px 21px;
}

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

.agent-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.agent-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

.agent-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 11px 8px 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
}

.agent-chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cat-color);
  color: #fff;
  transition: background var(--t-base);
}

.agent-chat-send svg {
  width: 13px;
  height: 13px;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

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

/* ============================================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .agent-chat-typing span {
    animation: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-v2-h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    letter-spacing: -2px;
  }

  .hero-v2-glow {
    width: 700px;
    height: 700px;
  }
}

/* ============================================================
   RESPONSIVE - HIDE NAV LINKS at 900px (matches index.php)
   ============================================================ */
@media (max-width: 900px) {
  .navbar-v2 .nav-links {
    display: none;
  }

  .navbar-v2 .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .navbar-v2 {
    padding: 16px var(--sp-5);
  }

  .navv2-mobile {
    left: var(--sp-5);
    right: var(--sp-5);
  }

  .hero-v2 {
    padding: 118px 0 64px;
    min-height: auto;
  }

  .hero-v2-body {
    font-size: 16px;
  }

  .hero-v2-ctas .cta-primary,
  .hero-v2-ctas .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-v2-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }

  .agent-tab {
    font-size: 12.5px;
    padding: 7px 14px 7px 7px;
  }

  .agent-tab-icon {
    width: 22px;
    height: 22px;
  }

  .agent-tab-icon svg {
    width: 12px;
    height: 12px;
  }

  .agent-chat-body {
    min-height: 140px;
  }

  .chat-msg {
    max-width: 90%;
  }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max 440px)
   ============================================================ */
@media (max-width: 440px) {
  .hero-v2-h1 {
    font-size: 2.1rem;
    letter-spacing: -1.5px;
  }

  .hero-v2-eyebrow {
    margin-bottom: var(--sp-5);
  }

  .agent-tabs {
    gap: 8px;
  }

  .agent-chat-header {
    padding: 14px 16px;
  }

  .agent-chat-count {
    font-size: 10px;
    padding: 4px 8px;
  }
}
