/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(240, 121, 28, 0.14) 0%, rgba(240, 121, 28, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.4rem; }

.hero-copy h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-stack {
  line-height: 1.05;
}

.hero-copy h1 .line-emphasis {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lede {
  font-size: var(--fs-lead);
  color: var(--charcoal-500);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.9rem;
}

.hero-trust {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--charcoal-300);
}

.hero-ctas .ask-vengi-inline-trigger span {
  display: inline-block;
}

/* ---- Supporting mention: UV Business Solutions ----
   Deliberately the quietest link on the page — third in the CTA
   hierarchy, behind "Book a Discovery Call" and "Ask Vengi AI". */
.hero-uv-link {
  font-size: 0.8125rem;
  color: var(--charcoal-300);
  margin-top: 0.9rem;
}

.hero-uv-link a {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--charcoal-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}

.hero-uv-link a:hover {
  color: var(--accent-600);
}

/* ---- Hero visual: photo frame + floating chips ---- */

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-photo-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--gradient-navy);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  padding: 10px;
}

/* Grid + glow backdrop lives in ::before (painted first, i.e. behind the
   real <img> child) so it reads as a frame border, never an overlay on
   top of Vengi's photo. */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 15%, rgba(240, 121, 28, 0.4), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  opacity: 0.9;
}

.hero-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-xl) - 10px);
  box-shadow: 0 10px 30px rgba(10, 8, 6, 0.35);
}


/* Floating UI chips around the photo */

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.55rem 0.95rem 0.55rem 0.5rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-900);
  animation: chip-float 6s var(--ease-out) infinite;
  z-index: 3;
}

.hero-chip .icon-tile {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.hero-chip .icon-tile svg { width: 16px; height: 16px; }

.chip-social   { top: 4%;   left: -8%;  animation-delay: 0s; }
.chip-calendar { top: 20%;  right: -12%; animation-delay: 0.4s; }
.chip-crm      { bottom: 26%; left: -14%; animation-delay: 0.8s; }
.chip-automation { bottom: 4%; right: -8%; animation-delay: 1.2s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Mini live-flow demo: what actually moves through the system ---- */

.hero-live-flow {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: min(380px, 100%);
  margin-top: 1.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--charcoal-500);
}

.hlf-node {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  white-space: nowrap;
}

.hlf-node.hlf-active {
  background: var(--gradient-accent);
  color: #fff;
}

.hlf-wire {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.hlf-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 6px 1px var(--accent-glow);
  transform: translateY(-50%);
  animation: hlf-travel 3s linear infinite;
}

@keyframes hlf-travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .hero-photo-frame { width: min(320px, 78vw); }
  .hero-chip { display: none; }
  .hero-copy p.lede { max-width: none; }
  .hero-live-flow { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
