/* =============================================
   NIXBIT — HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px clamp(20px, 6vw, 80px) 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  transition: opacity 0.35s ease;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7061f2, #4acdf5);
  top: -100px; left: -100px;
  opacity: 0.12;
  animation: floatOrb 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #e34aa6, #7061f2);
  bottom: -80px; right: -80px;
  opacity: 0.1;
  animation: floatOrb 9s ease-in-out infinite reverse;
}
html.light .hero-orb-1 { opacity: 0.18; }
html.light .hero-orb-2 { opacity: 0.14; }

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.05); }
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(112,97,242,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(112,97,242,0); }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 820px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  max-width: 600px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-trust {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 1rem;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 3rem;
  animation: fadeUp 0.6s 0.5s ease both;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px 44px;
  transition: background var(--transition);
  flex: 1;
}
.metric-card:hover { background: var(--bg-3); }
.metric-card:first-child { border-radius: 16px 0 0 16px; }
.metric-card:last-child { border-radius: 0 16px 16px 0; }
.metric-icon {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}
.metric-divider {
  width: 1px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  align-self: stretch;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO BAR ── */
.logo-bar {
  padding: 36px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-bar-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.logo-bar-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-bar-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.logo-bar-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-bar-item {
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(2);
}
.logo-bar-track:hover .logo-bar-item:hover { opacity: 0.9; }
.logo-bar-item img {
  height: 26px;
  width: auto;
  object-fit: contain;
  max-width: 160px;
  pointer-events: none;
}

.logo-bar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── LIGHT MODE ── */
html.light .logo-bar { background: #fff; border-color: rgba(0,0,0,0.07); }
html.light .logo-bar-item { filter: grayscale(100%) brightness(0); }

html.light .hero-metrics { background: #fff; border-color: rgba(0,0,0,0.08); }
html.light .metric-divider { background: rgba(0,0,0,0.07); }
html.light .metric-card:hover { background: #f5f5f7; }
