/* ============================================================
   Hive Solutions — Home page styles
   Hero grid · watermark · floating cards · dashboard mock ·
   marquee band · responsive behaviour
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  /* minmax(0, …) so the code window's long lines can't inflate the tracks */
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { max-width: 620px; }
.hero-copy .lead { margin-top: 1.4rem; max-width: 34rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-actions { margin-top: 2.4rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* Watermark logo behind content */
.hero-watermark {
  position: absolute;
  top: 10%;
  right: -150px;
  width: 640px;
  max-width: none;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation-duration: 11s;
}

/* Code window + floating overlay cards */
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-visual .code-window { position: relative; z-index: 1; }

.hero-card {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 14, 21, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}
.hero-card-live {
  top: -18px;
  left: -24px;
  animation-duration: 6s;
}
.hero-card-speed {
  bottom: -18px;
  right: -18px;
  animation-duration: 7.5s;
  animation-delay: 1.4s;
}
.hero-card-num {
  font-family: var(--font-mono);
  color: var(--amber-300);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee06a;
  box-shadow: 0 0 0 0 rgba(46, 224, 106, 0.55);
  animation: livePulse 2.2s ease-out infinite;
  flex: none;
}
@keyframes livePulse {
  70% { box-shadow: 0 0 0 9px rgba(46, 224, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 224, 106, 0); }
}

/* ---------- Tech marquee band ---------- */

.marquee-section {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.mq-glyph {
  color: var(--amber-400);
  font-size: 0.85em;
  line-height: 1;
}

/* ---------- Featured product (SellerMagnet) ---------- */

.product-section { overflow: hidden; }

.check-list {
  margin-top: 1.75rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0;
  color: var(--text-2);
  font-size: 0.98rem;
}
.check-ico {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.32);
  color: var(--amber-300);
  margin-top: 0.15rem;
}

/* App window — dashboard mock */
.app-window {
  background: #0e0e15;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-m);
  box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.85), 0 0 60px -30px rgba(255, 176, 32, 0.25);
  overflow: hidden;
}

.aw-body { padding: 1.15rem 1.2rem 1.35rem; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.kpi-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
}
.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-top: 0.2rem;
}
.kpi-delta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  margin-top: 0.15rem;
}

.dash-chart { margin-top: 1.15rem; }
.dash-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}
.dash-chart-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 150px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.dash-bars .bar {
  flex: 1;
  height: var(--h, 60%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 201, 77, 0.55), rgba(232, 131, 12, 0.35));
  transform-origin: bottom;
}
.dash-bars .bar-hot {
  background: linear-gradient(180deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 0 22px -6px var(--glow);
}

/* Bars grow when global JS adds .revealed; static full-height otherwise */
.hero-dash.revealed .bar { animation: barGrow 0.85s var(--ease-out) backwards; }
.hero-dash.revealed .bar:nth-child(1) { animation-delay: 0.1s; }
.hero-dash.revealed .bar:nth-child(2) { animation-delay: 0.18s; }
.hero-dash.revealed .bar:nth-child(3) { animation-delay: 0.26s; }
.hero-dash.revealed .bar:nth-child(4) { animation-delay: 0.34s; }
.hero-dash.revealed .bar:nth-child(5) { animation-delay: 0.42s; }
.hero-dash.revealed .bar:nth-child(6) { animation-delay: 0.5s; }
.hero-dash.revealed .bar:nth-child(7) { animation-delay: 0.58s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
}

.dash-days {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.dash-days span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-3);
}

/* ---------- Stats band ---------- */

.stats-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .hero-watermark { width: 500px; right: -160px; }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 4.5rem));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.25rem;
  }
  .hero-visual {
    max-width: 580px;
  }
  .hero-watermark { width: 400px; right: -140px; top: 4%; opacity: 0.04; }
}

@media (max-width: 640px) {
  .hero-watermark { display: none; }
  .hero-visual .code-window { font-size: 0.74rem; }
  .hero-card-live { left: 8px; }
  .hero-card-speed { right: 8px; }
  .kpi-row { gap: 0.5rem; }
  .kpi { padding: 0.65rem 0.7rem; }
  .kpi-value { font-size: 1rem; }
  .dash-bars { height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dash.revealed .bar { animation: none; }
  .live-dot { animation: none; }
}
