/* ═══════════════════════════════════════════════════════════════
   SECTIONS.CSS — Hero, Section-specific layouts, Responsive
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════ HERO ══════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Three.js Canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Particle Field */
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) translateX(var(--drift, 0px)) scale(1); opacity: 0; }
}

/* Grid Floor */
.grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.grid-perspective {
  position: absolute;
  bottom: 0;
  left: -50%;
  right: -50%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0,212,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  background: var(--mint-dim);
  border: 1px solid rgba(0,255,179,0.2);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 8px var(--mint); }
  50%       { box-shadow: 0 0 16px var(--mint), 0 0 24px var(--mint); }
}

/* Hero Heading */
.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.hero-line-1 { color: var(--text-primary); }
.hero-line-2 { color: var(--text-primary); }

/* Subtext */
.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  min-height: 3.4em;
}

.type-text {
  color: var(--cyan);
  font-weight: 500;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-arrow {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  max-width: 520px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 24px;
}

/* Floating Holographic Cards */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.holo-card {
  position: absolute;
  width: 200px;
  pointer-events: none;
}

.holo-card-1 {
  top: 20%;
  left: 4%;
  animation: holoFloat1 6s ease-in-out infinite;
}

.holo-card-2 {
  top: 30%;
  right: 4%;
  animation: holoFloat2 7s ease-in-out infinite;
  animation-delay: -2s;
}

.holo-card-3 {
  bottom: 20%;
  right: 8%;
  animation: holoFloat3 8s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes holoFloat1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-20px) rotate(1deg); }
}

@keyframes holoFloat2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes holoFloat3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-24px) rotate(2deg); }
}

.holo-card-inner {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.holo-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
}

.holo-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.holo-data {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.holo-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.holo-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
}

.holo-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.holo-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 2px;
  animation: fillPulse 3s ease-in-out infinite;
}

@keyframes fillPulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes scrollBounce {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-right { display: none; }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large { grid-column: span 2; }
  .bento-wide  { grid-column: span 2; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-6px); }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .holo-card-1, .holo-card-3 { display: none; }
  .holo-card-2 { right: 2%; top: 15%; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-container { padding: 12px 20px; }

  .nav-links, .nav-cta { display: none; }

  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }

  .hero-heading { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
    margin: 0;
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; }

  .floating-cards { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }

  .timeline-track { left: 20px; }
  .step-marker { width: 40px; }
  .step-num { width: 40px; height: 40px; font-size: 0.7rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .grid-floor { display: none; }

  .section-pad { padding: 4rem 0; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-heading { font-size: clamp(2rem, 12vw, 3rem); }
  .footer-links { grid-template-columns: 1fr; }
  .hero-stats { max-width: 100%; }
  .contact-form { padding: 24px; }
}