/* ═══════════════════════════════════════════════════════════════════
   NOVAQYS — Premium Hero
   Holographic Globe · Digital Connections · Parallax
   ═══════════════════════════════════════════════════════════════════ */

.nova-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #102A43;
}

/* ─── Canvas ────────────────────────────────────────────────────── */
.nova-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ─── Grid Overlay ──────────────────────────────────────────────── */
.nova-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,111,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,111,235,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ─── Gradient Overlay ──────────────────────────────────────────── */
.nova-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, #102A43 100%),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(31,111,235,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(46,196,182,0.06), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ─── Light Rays ────────────────────────────────────────────────── */
.nova-hero-rays {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.nova-hero-ray {
  position: absolute;
  width: 1px;
  height: 200%;
  top: -50%;
  background: linear-gradient(180deg, transparent, rgba(31,111,235,0.06), transparent);
  transform-origin: center;
  animation: novaRay 8s ease-in-out infinite;
}

.nova-hero-ray:nth-child(1) { left: 20%; animation-delay: 0s; }
.nova-hero-ray:nth-child(2) { left: 40%; animation-delay: 2s; transform: rotate(15deg); }
.nova-hero-ray:nth-child(3) { left: 60%; animation-delay: 4s; transform: rotate(-10deg); }
.nova-hero-ray:nth-child(4) { left: 80%; animation-delay: 6s; }

@keyframes novaRay {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── Content ───────────────────────────────────────────────────── */
.nova-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 56rem;
  padding: 2rem;
}

.nova-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2EC4B6;
  background: rgba(46,196,182,0.08);
  border: 1px solid rgba(46,196,182,0.15);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.nova-hero-badge-below {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.nova-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2EC4B6;
  animation: novaPulse 2s ease-in-out infinite;
}

@keyframes novaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,196,182,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(46,196,182,0); }
}

.nova-hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.nova-hero-line {
  display: block;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  margin-top: 0.25em;
}

.nova-hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-20deg);
  animation: none;
  perspective: 800px;
  margin-right: 0.15em;
}

.nova-hero-word-brand {
  margin-right: 0;
  display: inline-block;
}

.nova-hero-word-highlight {
  background: linear-gradient(135deg, #2EC4B6, #9d8fd1, #1F6FEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: novaGradientShift 4s ease-in-out infinite;
}

.nova-hero-word.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  transition: none;
}

.nova-hero-title .nova-gradient {
  background: linear-gradient(135deg, #1F6FEB, #2EC4B6, #9d8fd1, #1F6FEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: novaGradientShift 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes novaGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.nova-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #9ba8bc;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.nova-hero-tagline {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: rgba(72,101,129,0.5);
  margin-bottom: 2.5rem;
  opacity: 0;
}

.nova-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.nova-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.nova-hero-btn-primary {
  background: linear-gradient(135deg, #1F6FEB, #2EC4B6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 30px rgba(31,111,235,0.3);
}

.nova-hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(31,111,235,0.4);
}

.nova-hero-btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #EEF2F7;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.nova-hero-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ─── Stats ─────────────────────────────────────────────────────── */
.nova-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  opacity: 0;
}

.nova-hero-stat {
  text-align: center;
}

.nova-hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1F6FEB, #2EC4B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nova-hero-stat-label {
  font-size: 0.65rem;
  color: #9ba8bc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ─── Scroll Indicator ──────────────────────────────────────────── */
.nova-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.nova-hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(72,101,129,0.2);
  border-radius: 12px;
  position: relative;
}

.nova-hero-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: #1F6FEB;
  border-radius: 2px;
  animation: novaScrollWheel 1.5s ease-in-out infinite;
}

@keyframes novaScrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

.nova-hero-scroll span {
  font-size: 0.6rem;
  color: rgba(72,101,129,0.3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

/* ═══════════════════════════════════════════════════════════════════
   NOVAQYS — Architecture Section
   Connected modules around central platform
   ═══════════════════════════════════════════════════════════════════ */
.nova-arch {
  position: relative;
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #102A43, #1a3a5c, #102A43);
  overflow: hidden;
}

.nova-arch-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.nova-arch-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.nova-arch-header h2 .nova-gradient {
  background: linear-gradient(135deg, #1F6FEB, #2EC4B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nova-arch-header p {
  color: #9ba8bc;
  font-size: 1.05rem;
  line-height: 1.7;
}

.nova-arch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nova-arch-card {
  background: rgba(16,42,67,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(31,111,235,0.1);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.nova-arch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--arch-color, #1F6FEB), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nova-arch-card:hover::before {
  opacity: 1;
}

.nova-arch-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31,111,235,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.nova-arch-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin: 0 auto 0.75rem;
  background: rgba(31,111,235,0.1);
  border: 1px solid rgba(31,111,235,0.08);
  transition: all 0.3s;
}

.nova-arch-card:hover .nova-arch-card-icon {
  background: rgba(31,111,235,0.15);
  border-color: rgba(31,111,235,0.2);
}

.nova-arch-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #EEF2F7;
  margin-bottom: 0.2rem;
}

.nova-arch-card p {
  font-size: 0.6rem;
  color: #9ba8bc;
  line-height: 1.3;
}

/* ─── Central Hub Visual ────────────────────────────────────────── */
.nova-arch-hub {
  position: relative;
  max-width: 64rem;
  margin: 3rem auto 0;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(31,111,235,0.04), transparent 70%);
  z-index: 2;
}

.nova-arch-hub-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31,111,235,0.15), rgba(46,196,182,0.1));
  border: 1px solid rgba(31,111,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1F6FEB;
  position: relative;
  animation: novaHubPulse 3s ease-in-out infinite;
}

.nova-arch-hub-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(31,111,235,0.1);
  animation: novaHubRing 3s ease-in-out infinite;
}

@keyframes novaHubPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(31,111,235,0.1); }
  50% { box-shadow: 0 0 40px rgba(31,111,235,0.2); }
}

@keyframes novaHubRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0; }
}

.nova-arch-hub h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #EEF2F7;
  margin-bottom: 0.5rem;
}

.nova-arch-hub p {
  font-size: 0.85rem;
  color: #9ba8bc;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .nova-arch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nova-hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .nova-hero-stat-value { font-size: 1.1rem; }
  .nova-arch-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .nova-arch-card { padding: 1rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nova-hero-ray, .nova-hero-title .nova-gradient,
  .nova-hero-badge-dot, .nova-hero-scroll-mouse::after,
  .nova-arch-hub-icon { animation: none; }
}