/* ============================================================
   04 · Hero — headline, visual, marquee, scroll cue
   ============================================================ */

.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* framed portrait (photograph of Naveen) */
.hero-photo-frame {
  position: absolute; z-index: 1; margin: 0;
  width: clamp(130px, 16vw, 180px); aspect-ratio: 4 / 5;
  top: 4%; left: 0;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .45);
  box-shadow: var(--shadow-1), 0 0 44px -18px rgba(139, 92, 246, .5);
  transform: rotate(-5deg);
  animation: photo-float 7s ease-in-out infinite;
}
.hero-photo-frame::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 45%);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes photo-float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float-orb 14s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; top: -140px; left: -120px; background: radial-gradient(circle, rgba(59,130,246,.45), transparent 65%); }
.orb-b { width: 460px; height: 460px; top: 10%; right: -140px; background: radial-gradient(circle, rgba(124,58,237,.42), transparent 65%); animation-delay: -4s; }
.orb-c { width: 360px; height: 360px; bottom: -120px; left: 35%; background: radial-gradient(circle, rgba(217,70,239,.28), transparent 65%); animation-delay: -8s; }
@keyframes float-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  flex: 1;
}
.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-400); background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(96, 165, 250, .35); padding: 9px 16px; border-radius: 999px;
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.eyebrow-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 0 rgba(96,165,250,.6); animation: ping 2s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .55); }
  70% { box-shadow: 0 0 0 12px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.hero-title {
  font-size: clamp(2.35rem, 5.6vw, 4.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-rotator {
  display: inline-block; position: relative;
  background: var(--grad-soft); border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 16px; padding: 0 14px; margin-top: 6px;
  font-size: .62em; color: var(--white); letter-spacing: -.01em;
  -webkit-text-fill-color: currentColor;
}
.hero-rotator .word { display: inline-block; white-space: nowrap; }
.hero-rotator .word.hide { animation: word-out .4s var(--ease) forwards; }
.hero-rotator .word.show { animation: word-in .45s var(--ease) forwards; }
@keyframes word-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes word-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

.hero-sub {
  font-size: clamp(.98rem, 1.35vw, 1.12rem); color: var(--slate-400);
  max-width: 560px; margin-bottom: 34px;
}
.hero-sub strong { color: var(--slate-100); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

.hero-wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--slate-400); margin-bottom: 26px;
  transition: color .25s;
}
.hero-wa-link svg { width: 15px; height: 15px; fill: #25d366; }
.hero-wa-link:hover { color: var(--white); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
  color: var(--slate-400); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35); background: rgba(255, 255, 255, .75);
  transition: border-color .25s, color .25s, transform .25s;
}
.hero-chips li:hover { border-color: var(--violet-400); color: var(--violet-600); transform: translateY(-2px); }

/* hero visual */
.hero-visual { position: relative; height: 520px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px dashed rgba(139, 92, 246, .28); border-radius: 50%; }
.orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(139,92,246,.8); }
.orbit-outer { width: 470px; height: 470px; animation: orbit-spin 28s linear infinite; }
.orbit-inner { width: 360px; height: 360px; animation: orbit-spin 20s linear infinite reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.command-card {
  position: relative; z-index: 2; width: min(400px, 88%);
  background: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(243, 246, 252, .95));
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1), 0 0 60px -20px rgba(96, 165, 250, .5);
  backdrop-filter: blur(14px); overflow: hidden;
}
.command-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-border);
}
.cmd-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}
.cmd-dots { display: flex; gap: 6px; }
.cmd-dots span { width: 10px; height: 10px; border-radius: 50%; }
.cmd-dots span:nth-child(1) { background: #f87171; }
.cmd-dots span:nth-child(2) { background: #fbbf24; }
.cmd-dots span:nth-child(3) { background: #34d399; }
.cmd-title { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-300); letter-spacing: .02em; }
.cmd-live { margin-left: auto; font-family: var(--font-mono); font-size: .62rem; color: #059669; background: rgba(16, 185, 129, .14); padding: 4px 10px; border-radius: 999px; }
.cmd-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10b981; margin-right: 6px; animation: ping 2s infinite; }

.cmd-label {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--slate-500); padding: 16px 20px 8px;
}
.cmd-feed { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 14px; }
.feed-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(248, 250, 255, .85); border: 1px solid rgba(148, 163, 184, .18);
  transition: border-color .25s, transform .25s;
}
.feed-item:hover { border-color: rgba(139, 92, 246, .5); transform: translateX(4px); }
.feed-tag { font-family: var(--font-mono); font-size: .6rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; letter-spacing: .05em; }
.tag-seo { color: #2563eb; background: rgba(59, 130, 246, .14); }
.tag-cro { color: #7c3aed; background: rgba(139, 92, 246, .14); }
.tag-ai { color: #a21caf; background: rgba(217, 70, 239, .12); }
.feed-item p { font-size: .78rem; line-height: 1.5; color: var(--slate-300); }
.feed-time { font-family: var(--font-mono); font-size: .6rem; color: var(--slate-500); }

.cmd-spark {
  display: flex; align-items: flex-end; gap: 6px; height: 64px;
  padding: 0 20px; border-top: 1px dashed rgba(148, 163, 184, .14);
}
.spark-bar {
  flex: 1; height: var(--h, 50%); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--violet-600));
  opacity: .9; transform-origin: bottom;
  animation: grow-bar 3.2s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * .18s);
}
.spark-bar:nth-child(2n) { background: linear-gradient(180deg, var(--violet-400), var(--fuchsia)); }
.spark-bar:nth-child(1) { --i: 0; } .spark-bar:nth-child(2) { --i: 1; }
.spark-bar:nth-child(3) { --i: 2; } .spark-bar:nth-child(4) { --i: 3; }
.spark-bar:nth-child(5) { --i: 4; } .spark-bar:nth-child(6) { --i: 5; }
.spark-bar:nth-child(7) { --i: 6; } .spark-bar:nth-child(8) { --i: 7; }
.spark-bar:nth-child(9) { --i: 8; } .spark-bar:nth-child(10) { --i: 9; }
@keyframes grow-bar {
  0%, 100% { transform: scaleY(.55); opacity: .6; }
  50% { transform: scaleY(1); opacity: 1; }
}
.cmd-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid rgba(148, 163, 184, .1); }
.cmd-pill { font-family: var(--font-mono); font-size: .6rem; color: var(--slate-400); letter-spacing: .1em; }
.cmd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-left: 4px; animation: pulse-soft 2s infinite; }

.float-chip {
  position: absolute; z-index: 3; font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  color: var(--slate-100); padding: 9px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(96, 165, 250, .45);
  backdrop-filter: blur(10px); box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .18);
  animation: float-chip 5s ease-in-out infinite;
}
.chip-a { top: 4%; left: 2%; animation-delay: 0s; }
.chip-b { top: 12%; right: 0; animation-delay: 1.2s; }
.chip-c { bottom: 8%; left: -2%; animation-delay: 2.4s; }
.chip-d { bottom: 2%; right: 8%; animation-delay: .6s; color: var(--violet-600); }
@keyframes float-chip {
  0%, 100% { transform: translate(var(--px, 0), var(--py, 0)) translateY(0) rotate(-2deg); }
  50% { transform: translate(var(--px, 0), var(--py, 0)) translateY(-16px) rotate(2deg); }
}

/* marquee */
.marquee {
  position: relative; z-index: 2; border-top: 1px solid rgba(148, 163, 184, .16);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  background: rgba(255, 255, 255, .65); backdrop-filter: blur(6px);
  overflow: hidden; padding: 18px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate-300);
}
.marquee-track i { font-style: normal; color: var(--violet-500); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: grid; place-items: center;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid rgba(148, 163, 184, .4); border-radius: 14px;
  display: block; position: relative;
}
.wheel { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--blue-400); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }
