/* Modern Hero Section Styles */

.modern-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    rgba(0, 255, 255, 0.05) 25%, 
    rgba(255, 0, 128, 0.05) 75%, 
    var(--bg-primary) 100%
  );
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ai-primary) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--ai-secondary) 0%, transparent 70%);
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--ai-accent) 0%, transparent 70%);
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.1); }
  50% { transform: translate(-10px, 20px) scale(0.9); }
  75% { transform: translate(30px, 10px) scale(1.05); }
}

.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

/* Hero Grid Layout - Centered */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Content */
.hero-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ai-primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: badgeGlow 3s ease-in-out infinite alternate;
}

.badge-icon {
  font-size: 1.2rem;
  animation: iconSpin 4s ease-in-out infinite;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
  100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.6); }
}

@keyframes iconSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

/* Modern Typography */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ai-gradient-neural);
  color: white;
  border: none;
  box-shadow: 
    0 4px 15px rgba(0, 255, 255, 0.4),
    0 0 30px rgba(0, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--ai-primary);
  color: var(--ai-primary);
  transform: translateY(-2px);
}

/* Trust Indicators */
.hero-trust {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.trust-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ai-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Modern Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 3rem;
  z-index: 20;
}

.visual-container {
  position: relative;
  width: 350px;
  height: 350px;
  z-index: 25;
}

/* Central AI Node */
.central-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
}

.node-core {
  position: relative;
  width: 120px;
  height: 120px;
}

.core-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--ai-gradient-neural);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 
    0 0 50px var(--ai-primary),
    0 0 100px var(--ai-secondary),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  animation: coreGlow 3s ease-in-out infinite alternate;
}

.core-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  border: 3px solid var(--ai-primary);
  border-radius: 50%;
  opacity: 1;
}

.ring-1 {
  width: 100px;
  height: 100px;
  top: -50px;
  left: -50px;
  animation: ringPulse 2s ease-in-out infinite;
}

.ring-2 {
  width: 120px;
  height: 120px;
  top: -60px;
  left: -60px;
  animation: ringPulse 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

.ring-3 {
  width: 140px;
  height: 140px;
  top: -70px;
  left: -70px;
  animation: ringPulse 2s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes coreGlow {
  0% { 
    box-shadow: 
      0 0 50px var(--ai-primary),
      0 0 100px var(--ai-secondary),
      inset 0 0 20px rgba(255, 255, 255, 0.5);
  }
  100% { 
    box-shadow: 
      0 0 80px var(--ai-primary),
      0 0 120px var(--ai-accent),
      inset 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* Satellite Nodes */
.satellite-nodes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: satelliteOrbit 20s linear infinite;
  z-index: 20;
}

.satellite {
  position: absolute;
  width: 140px;
  height: 140px;
  top: calc(var(--distance) * -1);
  left: -70px;
  transform: rotate(var(--angle));
  transform-origin: 70px var(--distance);
}

.node-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--bg-primary);
  font-weight: 600;
  animation: nodeBob 3s ease-in-out infinite;
  transform: rotate(calc(var(--angle) * -1));
}

.satellite-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.satellite-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes satelliteOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes nodeBob {
  0%, 100% { transform: rotate(calc(var(--angle) * -1)) translateY(0); }
  50% { transform: rotate(calc(var(--angle) * -1)) translateY(-5px); }
}

/* Connection Lines */
.connection-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
}

.connection-line {
  stroke: var(--ai-primary);
  stroke-width: 3;
  opacity: 1;
  stroke-dasharray: 5, 5;
  animation: connectionFlow 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes connectionFlow {
  0%, 100% {
    opacity: 0.8;
    stroke-dasharray: 5, 5;
  }
  50% {
    opacity: 1;
    stroke-dasharray: 10, 2;
  }
}

/* Large Screen - 2 Column Layout */
@media (min-width: 1400px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 2rem;
  }
  
  .hero-content {
    text-align: left;
    align-items: flex-start;
    margin-bottom: 0;
  }
  
  .hero-badge {
    margin-left: 0;
  }
  
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .hero-trust {
    margin-left: 0;
    margin-right: 0;
  }
  
  .trust-stats {
    justify-content: flex-start;
  }
  
  .hero-visual {
    justify-self: center;
    margin-bottom: 0;
  }
  
  .visual-container {
    width: 500px;
    height: 500px;
  }
  
  .satellite {
    --distance: 300px;
    width: 160px;
    height: 160px;
  }
  
  .satellite-icon {
    font-size: 2.2rem;
  }
  
  .satellite-label {
    font-size: 1rem;
  }
}

/* Responsive Design - Order from largest to smallest for proper cascade */

/* Medium-Large screens (1025px - 1399px) - Keep centered */
@media (min-width: 1025px) and (max-width: 1399px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  
  .visual-container {
    width: 400px;
    height: 400px;
  }
  
  .satellite {
    --distance: 240px;
  }
}

/* Max 1200px */
@media (max-width: 1200px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  
  .visual-container {
    width: 350px;
    height: 350px;
  }
  
  .satellite {
    --distance: 200px;
  }
}

/* Max 1024px */
@media (max-width: 1024px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .visual-container {
    width: 300px;
    height: 300px;
  }
  
  .satellite {
    --distance: 180px;
  }
  
  .trust-stats {
    justify-content: center;
  }
}

/* Medium screens override for larger satellite distance */
@media (min-width: 768px) and (max-width: 1024px) {
  .satellite {
    --distance: 220px;
  }
}

@media (max-width: 768px) {
  .modern-hero {
    min-height: 85vh;
  }
  
  .hero-grid {
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    max-width: 100%;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .trust-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .visual-container {
    width: 250px;
    height: 250px;
  }
  
  .satellite {
    --distance: 150px;
    width: 120px;
    height: 120px;
  }
  
  .node-content {
    width: 120px;
    height: 120px;
  }
  
  .satellite-icon {
    font-size: 1.8rem;
  }
  
  .satellite-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .trust-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .trust-stat {
    min-width: 80px;
  }
  
  .visual-container {
    width: 200px;
    height: 200px;
  }
  
  .core-inner {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .hero-badge {
  background: rgba(0, 255, 255, 0.15);
  border-color: rgba(0, 255, 255, 0.4);
}

[data-theme="dark"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: var(--ai-primary);
}

[data-theme="dark"] .node-content {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}