/* ==========================================================================
   One7Tools — Hero Section Styles
   Aesthetic: Deep Black, Restrained Electric Glow, Abstract Geometric 7
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 0 100px;
  background-color: var(--bg-void);
  overflow: hidden;
  z-index: 2;
}

/* Background Atmosphere Container */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Faint Structural Grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-size: 64px 64px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 60% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 45%, black 20%, transparent 75%);
  opacity: 0.8;
}

/* Primary Radial Glow (reacts slightly to mouse) */
.hero-glow-primary {
  position: absolute;
  top: 30%;
  right: 15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Secondary Ambient Glow */
.hero-glow-secondary {
  position: absolute;
  bottom: 10%;
  left: 25%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
  filter: blur(100px);
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Background Canvas Layer for Tiny Particles & Gradient Mesh */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Hero Content Layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

/* Badge Indicator */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}

.hero-badge-beacon {
  position: relative;
  width: 8px;
  height: 8px;
}

.hero-badge-beacon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  position: absolute;
}

.hero-badge-beacon .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  position: absolute;
  animation: beaconPulse 2.8s infinite ease-out;
}

@keyframes beaconPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero-badge-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Headline */
.hero-headline {
  font-size: clamp(3rem, 6.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-headline .gradient-accent {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 60%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

/* Sub-headline description */
.hero-subheadline {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 38px;
  max-width: 560px;
}

/* CTA Button Group */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Trust Signals / Features Bar */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
  opacity: 0.8;
}

/* ==========================================================================
   Abstract "7" Geometric Visual Composition
   ========================================================================== */

.hero-visual-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 520px;
}

.abstract-7-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.abstract-7-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.16));
}

/* Subtle Path Animation */
.geo-stroke-main {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawSeven 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawSeven {
  to {
    stroke-dashoffset: 0;
  }
}

.geo-stroke-pulse {
  animation: pulsePath 6s ease-in-out infinite alternate;
}

@keyframes pulsePath {
  0% {
    opacity: 0.25;
    stroke-width: 1.5;
  }
  50% {
    opacity: 0.65;
    stroke-width: 2.2;
  }
  100% {
    opacity: 0.3;
    stroke-width: 1.5;
  }
}

/* Light traveling along shape */
.geo-travel-light {
  offset-path: path("M 40 80 H 340 L 140 420");
  animation: travelLight 8s ease-in-out infinite;
}

@keyframes travelLight {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* Subtle surrounding geometric orbits / rings */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-1 {
  width: 320px;
  height: 320px;
  border-top-color: rgba(99, 102, 241, 0.2);
  animation: rotateOrbit 30s linear infinite;
}

.orbit-2 {
  width: 440px;
  height: 440px;
  border-right-color: rgba(59, 130, 246, 0.15);
  animation: rotateOrbit 45s linear infinite reverse;
}

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

/* Responsive Scaling */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 20px;
  }

  .hero-visual-container {
    height: 360px;
  }

  .abstract-7-wrapper {
    width: 280px;
    height: 340px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 70px;
    min-height: auto;
  }

  .hero-headline {
    font-size: 2.35rem;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-visual-container {
    height: 260px;
  }

  .abstract-7-wrapper {
    width: 220px;
    height: 270px;
  }
}
