/* ── HubSecure Hero v2 + Nav + Why Strip ── */

/* ══════════════════════════════════════════
   NAV UPGRADE
══════════════════════════════════════════ */
.site-nav .nav-logo img {
  display: block;
  height: 22px; width: auto;
  filter: brightness(1);
  transition: filter 0.2s;
}
.site-nav .nav-logo:hover img { filter: brightness(0.9); }

/* ══════════════════════════════════════════
   HERO V2
══════════════════════════════════════════ */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* ── Animated background ── */
.hv2-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--surface-page);
}
.hv2-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(67,41,129,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,41,129,0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hv2-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); will-change: transform;
}
.hv2-orb--1 {
  width: 800px; height: 800px;
  top: -300px; left: 50%; transform: translateX(-55%);
  background: radial-gradient(circle, rgba(63,30,141,0.55) 0%, transparent 60%);
  animation: orb-drift-1 12s ease-in-out infinite;
}
.hv2-orb--2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, transparent 65%);
  animation: orb-drift-2 16s ease-in-out infinite;
}
.hv2-orb--3 {
  width: 350px; height: 350px;
  top: 40%; left: -80px;
  background: radial-gradient(circle, rgba(235,143,255,0.15) 0%, transparent 65%);
  animation: orb-drift-3 10s ease-in-out infinite;
}
@keyframes orb-drift-1 {
  0%,100% { transform: translateX(-55%) translateY(0) scale(1); }
  33%     { transform: translateX(-52%) translateY(30px) scale(1.04); }
  66%     { transform: translateX(-58%) translateY(-20px) scale(0.97); }
}
@keyframes orb-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-30px,-40px) scale(1.08); }
}
@keyframes orb-drift-3 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(20px,30px); }
}

/* ── Live activity feed (left side) ── */
.hv2-feed {
  position: absolute;
  left: max(2vw, 16px);
  top: 50%;
  transform: translateY(-45%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  z-index: 2;
}
.feed-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(26, 22, 39, 0.72);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateX(-16px);
  animation: feed-slide-in 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes feed-slide-in {
  to { opacity: 1; transform: translateX(0); }
}
.feed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fc, var(--accent)); flex-shrink: 0;
  box-shadow: 0 0 8px var(--fc, var(--accent));
}
.feed-body { flex: 1; min-width: 0; }
.feed-title { display: block; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sub   { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.feed-status { font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.feed-ok   { color: var(--success-fg); }
.feed-warn { color: var(--warning-fg); }

/* ── Centre content ── */
.hv2-center {
  position: relative; z-index: 3;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Eyebrow */
.hv2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: var(--r-pill);
  background: rgba(235,143,255,0.07);
  border: 1px solid rgba(235,143,255,0.22);
  font-size: 0.78rem; font-weight: 500; color: var(--text-soft);
  margin-bottom: 28px;
  animation: fade-up 0.7s ease both;
}
.hv2-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Title */
.hv2-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fade-up 0.7s 0.1s ease both;
}
.hv2-rotate-wrap {
  display: inline;
  white-space: nowrap;
}
.hv2-rotate {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 60%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: opacity 0.3s, transform 0.3s;
}
.hv2-rotate--exit   { opacity: 0; transform: translateY(-8px); }
.hv2-rotate--enter  { animation: word-enter 0.35s ease; }
@keyframes word-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Sub */
.hv2-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 28px;
  animation: fade-up 0.7s 0.2s ease both;
}
.hv2-sub strong { color: var(--text-primary); font-weight: 600; }

/* Differentiators */
.hv2-diff {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
  animation: fade-up 0.7s 0.25s ease both;
}
.hv2-diff-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-soft);
}
.hv2-diff-sep {
  width: 1px; height: 16px; background: var(--border-soft);
}

/* Email capture */
.hv2-capture { width: 100%; max-width: 540px; animation: fade-up 0.7s 0.3s ease both; }
.hv2-form {
  display: flex; gap: 0;
  background: rgba(26,22,39,0.8);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 5px 5px 5px 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(235,143,255,0.1), 0 20px 60px rgba(0,0,0,0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hv2-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(235,143,255,0.12), 0 20px 60px rgba(0,0,0,0.4);
}
.hv2-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
}
.hv2-input-icon { color: var(--text-muted); flex-shrink: 0; }
.hv2-form input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: 0.95rem; color: var(--text-primary);
  padding: 10px 0; min-width: 0;
}
.hv2-form input::placeholder { color: var(--text-muted); }
.hv2-submit {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 30px;
  background: var(--brand-primary);
  border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 700; color: #fff;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, filter 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.hv2-submit:hover { background: var(--brand-primary-hover); filter: brightness(1.12); }
.hv2-form-note {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 10px; text-align: center;
}

/* KPIs */
.hv2-kpis {
  display: flex; align-items: center; gap: 0;
  margin-top: 40px; flex-wrap: wrap; justify-content: center;
  animation: fade-up 0.7s 0.4s ease both;
}
.hv2-kpi { padding: 16px 28px; text-align: center; }
.hv2-kpi-val {
  display: block; font-size: 1.9rem; font-weight: 800;
  color: var(--text-primary); line-height: 1; margin-bottom: 5px;
}
.hv2-kpi-val small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.hv2-kpi span { font-size: 0.75rem; color: var(--text-muted); }
.hv2-kpi-sep { width: 1px; height: 40px; background: var(--border-soft); }

/* Scroll indicator */
.hv2-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); z-index: 4;
  animation: fade-up 1s 0.8s ease both;
}
.hv2-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* Fade up utility */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════
   WHY STRIP
══════════════════════════════════════════ */
.why-strip {
  background: var(--surface-inset);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 24px;
  overflow-x: auto;
}
.why-strip-inner {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: center;
}
.why-strip-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.why-strip-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.wsi {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
}
.wsi-tool {
  font-weight: 700; color: var(--text-muted);
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--surface-card); border: 1px solid var(--border-soft);
  font-size: 0.75rem;
}
.wsi-tool--hs { color: var(--accent); border-color: rgba(235,143,255,0.3); background: rgba(235,143,255,0.07); }
.wsi-arrow { color: var(--text-muted); font-size: 0.8rem; }
.wsi-reason { color: var(--text-soft); font-size: 0.78rem; }
.wsi--us .wsi-reason { color: var(--text-primary); font-weight: 500; }
.wsi-divider { width: 1px; height: 20px; background: var(--border-soft); flex-shrink: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hv2-feed { display: none; }
  .hv2-title { font-size: clamp(2.2rem, 6vw, 3.8rem); }
}
@media (max-width: 768px) {
  .hero-v2 { padding: 100px 20px 60px; }
  .hv2-title { font-size: 2.4rem; letter-spacing: -0.02em; }
  .hv2-sub { font-size: 1rem; }
  .hv2-form { flex-direction: column; padding: 12px; border-radius: 16px; gap: 10px; }
  .hv2-input-wrap { padding-left: 4px; }
  .hv2-submit { width: 100%; justify-content: center; border-radius: 12px; }
  .hv2-kpi { padding: 12px 16px; }
  .hv2-kpi-val { font-size: 1.5rem; }
  .hv2-diff { gap: 8px; }
  .hv2-diff-sep { display: none; }
  .why-strip-items { gap: 8px; }
  .wsi-divider { display: none; }
}
@media (max-width: 480px) {
  .hv2-kpis { gap: 0; }
  .hv2-kpi-sep { display: none; }
  .hv2-kpis { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hv2-kpi { border: 1px solid var(--border-soft); border-radius: var(--r-card); margin: 4px; }
}
