/* ── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: hsl(220, 60%, 25%);
  padding-top: 80px;
}

/* Dot grid background */
.hero__dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, hsl(200 85% 70% / 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

/* Vignette overlay */
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 25%, hsl(220 65% 18% / 0.55) 100%);
  pointer-events: none;
}

/* Floating orbs */
.hero__orb-1, .hero__orb-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero__orb-1 {
  top: -18%; right: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, hsl(200 85% 60% / 0.08), transparent 65%);
  animation: orbDrift1 22s ease-in-out infinite;
}
.hero__orb-2 {
  bottom: 5%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, hsl(215 80% 50% / 0.09), transparent 65%);
  animation: orbDrift2 28s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-50px, 30px) scale(1.08); }
}

/* Inner grid */
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 1.5rem 160px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 128px;
    padding-bottom: 200px;
    gap: 32px;
  }
}

/* Left: text content */
.hero__tag {
  color: hsl(200 85% 70%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: hFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.05s both;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bg);
  animation: hFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.18s both;
}

.hero__rotating-word {
  color: hsl(200 85% 70%);
  display: inline-block;
  transition: opacity 0.4s ease, filter 0.4s ease;
  will-change: opacity, filter;
}
.hero__rotating-word.fade-out {
  opacity: 0;
  filter: blur(4px);
}

.hero__desc {
  color: hsl(43 20% 90% / 0.6);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  max-width: 28rem;
  animation: hFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.32s both;
}

.hero__cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  animation: hFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.46s both;
}

.btn-prime {
  position: relative;
  overflow: hidden;
  background: hsl(200 85% 60%);
  color: hsl(220 60% 20%);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 hsl(200 85% 60% / 0.3);
}
.btn-prime:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px 6px hsl(200 85% 60% / 0.28);
}
.btn-prime::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.35), transparent);
  animation: shimmerSlide 2.8s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

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

/* Right: card widget */
.hero__card-wrap {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .hero__card-wrap { justify-content: flex-end; } }

.hero__3d {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 420px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Glow ring around card */
.hero__glow-ring {
  position: absolute; inset: -2px;
  border-radius: calc(1.5rem + 2px);
  background: linear-gradient(135deg,
    hsl(200 85% 60% / 0.5) 0%,
    transparent 30%,
    hsl(220 60% 35% / 0.3) 50%,
    transparent 70%,
    hsl(200 85% 60% / 0.35) 100%
  );
  background-size: 250% 250%;
  animation: gradBorderSpin 5s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes gradBorderSpin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Floating badges */
.hero__badge {
  position: absolute;
  z-index: 20;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(0 0% 100% / 0.9);
  background: hsl(215 65% 14% / 0.9);
  border: 1px solid hsl(200 85% 60% / 0.35);
  backdrop-filter: blur(12px);
  animation: badgeFloat 3.2s ease-in-out infinite, badgePulse 4.5s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 20px hsl(220 60% 10% / 0.3); }
  50%       { box-shadow: 0 4px 20px hsl(220 60% 10% / 0.3), 0 0 14px 4px hsl(200 85% 60% / 0.2); }
}

/* The main white card inside 3D wrapper */
.hero__card {
  position: relative;
  z-index: 10;
  margin: 32px 24px 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: hsl(215 30% 97%);
  box-shadow: 0 32px 80px hsl(220 60% 10% / 0.42), 0 8px 24px hsl(220 60% 10% / 0.2), inset 0 1px 0 hsl(0 0% 100% / 0.6);
  border: 1px solid hsl(220 60% 80% / 0.12);
}

.hero__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: background 0.4s;
}
.hero__card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__card-icon-box {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.2);
  display: flex; align-items: center; justify-content: center;
}
.hero__card-tag {
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__card-body {
  padding: 20px 24px;
}
.hero__card-body.card-enter { animation: cardIn 0.35s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero__card-body.card-exit  { animation: cardOut 0.3s ease forwards; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

.hero__card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero__card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: hsl(0 0% 10%);
}
.hero__card-sub { font-size: 13px; color: hsl(0 0% 50%); }
.hero__card-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 24px;
  text-align: right;
  line-height: 1;
}
.hero__card-metric-label { font-size: 11px; color: hsl(0 0% 60%); text-align: right; }

.hero__bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero__bar-row { display: flex; align-items: center; gap: 8px; }
.hero__bar-track {
  flex: 1; height: 6px; border-radius: 999px;
  background: hsl(0 0% 0% / 0.08);
  overflow: hidden;
}
.hero__bar-fill {
  height: 100%;
  border-radius: 999px;
  animation: barGrow 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes barGrow {
  from { width: 0%; }
  to   { width: var(--bar-w); }
}
.hero__bar-pct { font-size: 10px; color: hsl(0 0% 70%); width: 28px; text-align: right; }

.hero__stars { display: flex; align-items: center; gap: 4px; }
.hero__stars span { font-size: 12px; color: hsl(0 0% 60%); margin-left: 4px; }

/* Dots */
.hero__card-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
}
.hero__dot {
  border-radius: 999px;
  height: 6px;
  transition: width 0.3s, background 0.3s;
}

/* Thumb tabs below card */
.hero__tabs {
  display: flex;
  gap: 12px;
  margin: 16px 24px 0;
}
.hero__tab {
  flex: 1;
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}
.hero__tab-name {
  color: hsl(0 0% 90%);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__tab-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 14px;
}

/* Wave bottom */
.hero__wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  pointer-events: none;
}
.hero__wave svg { width: 100%; height: auto; display: block; }
