/* =====================================================
   SHAWN'S HUB — HOMEPAGE STYLES
   ===================================================== */

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-3);
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.8s var(--ease-out) both;
}

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

.hero-title {
  font-size: var(--text-7xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.8s var(--ease-out) 0.1s both;
}

.hero-typed-wrapper {
  display: block;
}

.hero-typed {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-typed::after {
  content: '|';
  position: relative;
  -webkit-text-fill-color: var(--accent-1);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-relaxed);
  animation: fade-in-up 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fade-in-up 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: fade-in-up 0.8s var(--ease-out) 0.4s both;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2xs);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fade-in-up 1s var(--ease-out) 0.4s both;
}

.hero-visual-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-visual-dots {
  display: flex;
  gap: 6px;
}

.hero-visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-visual-dots span:nth-child(1) { background: #ef4444; }
.hero-visual-dots span:nth-child(2) { background: #f59e0b; }
.hero-visual-dots span:nth-child(3) { background: #10b981; }

.hero-visual-title {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: auto;
}

.hero-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-metric-row:last-child {
  border-bottom: none;
}

.hero-metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-metric-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--success);
  font-size: var(--text-lg);
}

.hero-metric-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin: 0 var(--space-md);
  overflow: hidden;
}

.hero-metric-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gradient);
  animation: grow-width 2s var(--ease-out) 0.8s both;
}

@keyframes grow-width {
  from { width: 0; }
}

/* Floating elements */
.hero-float-1,
.hero-float-2 {
  position: absolute;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-float-1 {
  top: -15px;
  right: -15px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 30px;
  left: -25px;
  animation: float 4s ease-in-out 1s infinite;
}

.hero-float-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-float-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.hero-float-icon.blue {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-1);
}

/* Hero background decoration */
.hero-glow-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}

/* ---- Marquee / Logo Ticker ---- */
.marquee-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 1;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-4xl);
  animation: ticker 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.4;
  white-space: nowrap;
  transition: opacity var(--duration-fast);
}

.marquee-item:hover {
  opacity: 0.7;
}

/* ---- Services Grid Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-icon {
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

.service-card .btn-outline {
  margin-top: var(--space-lg);
}

/* ---- Testimonials Section ---- */
.testimonial-featured {
  position: relative;
  background: linear-gradient(135deg, rgba(19, 24, 48, 0.8) 0%, rgba(12, 16, 35, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.testimonial-featured:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7), 0 0 60px -5px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.testimonial-featured::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-featured::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.testimonial-video-col {
  display: flex;
  flex-direction: column;
}

.testimonial-video-wrapper {
  position: relative;
  background: rgba(6, 9, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.testimonial-video-wrapper:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
}

.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-xs) var(--space-2xs);
  font-size: var(--text-xs);
}

.video-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--success);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 3px var(--success);
  }
}

.video-duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.testimonial-featured-content {
  display: flex;
  flex-direction: column;
}

.testimonial-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.badge-sparkle {
  color: #f59e0b;
}

.testimonial-featured .testimonial-stars {
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  color: #f59e0b;
  letter-spacing: 3px;
}

.testimonial-featured-quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-featured-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.testimonial-metrics-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.metric-pill {
  flex: 1;
  min-width: 95px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  transition: all var(--duration-fast);
}

.metric-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.metric-pill .metric-val {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-pill .metric-lbl {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.testimonial-author-featured {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.testimonial-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--accent-1);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.testimonials-grid-header {
  text-align: center;
  margin: var(--space-3xl) auto var(--space-2xl);
  position: relative;
}

.testimonials-grid-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
  z-index: 0;
}

.testimonials-grid-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 var(--space-lg);
  background: var(--bg-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---- Team Section ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
  z-index: 1;
}

.cta-banner .hero-actions {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ---- FAQ Section ---- */
.faq-grid {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* ---- Responsive: Homepage ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

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

  .testimonial-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .testimonial-featured {
    padding: var(--space-xl);
  }

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

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

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-float-1,
  .hero-float-2 {
    display: none;
  }

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

  .testimonial-featured {
    padding: var(--space-lg);
  }

  .testimonial-featured-quote {
    font-size: var(--text-lg);
  }

  .testimonial-metrics-row {
    gap: var(--space-xs);
  }

  .metric-pill {
    padding: var(--space-xs) var(--space-sm);
  }

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

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

  .cta-banner {
    padding: var(--space-3xl) var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .testimonial-metrics-row {
    flex-direction: column;
  }

  .metric-pill {
    width: 100%;
  }

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