.infinity-home {
  --wmctf-void: #020617;
  --wmctf-primary: #06b6d4;
  --wmctf-secondary: #a855f7;
  --wmctf-accent: #ec4899;
  --wmctf-success: #10b981;
  --cyber-surface: #0f172a;
  --cyber-surface-soft: rgba(15, 23, 42, 0.7);
  --cyber-border: rgba(6, 182, 212, 0.25);
  --cyber-text: #e2e8f0;
  --cyber-muted: #94a3b8;

  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  margin-top: -80px;
  padding: calc(80px + 2.5rem) 0 4rem;
  background: var(--wmctf-void);
  scroll-behavior: smooth;
}

.home-bg-grid,
.home-bg-glow {
  position: absolute;
  pointer-events: none;
}

.home-bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.8;
  z-index: 0;
}

.home-bg-glow {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(95px);
  z-index: 0;
  transition: transform 0.12s linear;
}

.home-bg-glow-left {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
}

.home-bg-glow-right {
  bottom: -210px;
  right: -120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
}

.home-section {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.scroll-reveal {
  will-change: transform, opacity, filter;
}

.js-motion .scroll-reveal {
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-motion .scroll-reveal.reveal-up {
  transform: translate3d(0, 30px, 0) scale(0.985);
}

.js-motion .scroll-reveal.reveal-pop {
  transform: translate3d(0, 22px, 0) scale(0.94);
}

.js-motion .scroll-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.js-motion .scroll-reveal.reveal-glow.is-visible {
  animation: revealGlowPulse 1.35s ease-out;
}

@keyframes revealGlowPulse {
  0% {
    box-shadow: 0 0 0 rgba(6, 182, 212, 0);
  }
  55% {
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.28);
  }
  100% {
    box-shadow: 0 0 0 rgba(6, 182, 212, 0);
  }
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0 3.5rem;
}



.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  line-height: 1.03;
  text-transform: uppercase;
  font-size: clamp(2.05rem, 6vw, 5rem);
  color: var(--cyber-text);
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--wmctf-success), var(--wmctf-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 1.9rem 0 0;
  max-width: 820px;
  font-size: clamp(1rem, 2vw, 1.62rem);
  line-height: 1.6;
  color: var(--cyber-muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary-glow,
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 212px;
  padding: 0.95rem 1.5rem;
  border-radius: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
  cursor: pointer;
}

.btn-primary-glow {
  color: #0a0f1f;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--wmctf-success), var(--wmctf-primary));
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

.btn-primary-glow:hover {
  color: #0a0f1f;
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.5);
}

.btn-secondary-outline {
  color: var(--cyber-text);
  border: 1px solid var(--cyber-border);
  background: rgba(2, 6, 23, 0.45);
}

.btn-secondary-outline:hover {
  color: var(--cyber-text);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.28);
}

.hero-link {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 0.65rem;
  color: var(--cyber-text);
  text-decoration: none;
  background: rgba(2, 6, 23, 0.45);
}

.hero-link i {
  color: var(--wmctf-success);
}

.stats-section {
  padding: 1.8rem 0 1.2rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: var(--cyber-surface-soft);
  border: 1px solid var(--cyber-border);
  border-radius: 0.8rem;
  padding: 1.4rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-icon {
  font-size: 1.35rem;
  color: var(--wmctf-success);
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--wmctf-primary);
}

.stat-card:nth-child(3) .stat-icon {
  color: var(--wmctf-accent);
}

.stat-card:nth-child(4) .stat-icon {
  color: var(--wmctf-secondary);
}

.stat-number {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--cyber-text);
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.stat-label {
  color: var(--cyber-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.section-block {
  margin-top: 4rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.6));
  padding: 3rem clamp(1rem, 3.2vw, 2.6rem);
}

.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  color: var(--cyber-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.5rem, 3.7vw, 3rem);
}

.section-head p {
  margin: 0.95rem auto 0;
  color: var(--cyber-muted);
  font-size: clamp(0.98rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.section-chip {
  margin: 0 auto 0.95rem;
  width: fit-content;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wmctf-success);
  background: rgba(16, 185, 129, 0.08);
}

.feature-grid,
.ctfaas-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ctfaas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card {
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.7);
  padding: 1.3rem 1.2rem;
}

.feature-card h3,
.service-card h3 {
  margin: 0.9rem 0 0.45rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  color: var(--cyber-text);
  font-size: 1.08rem;
}

.feature-card p,
.service-card p {
  margin: 0;
  color: var(--cyber-muted);
  line-height: 1.62;
}

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.09);
  color: var(--wmctf-success);
  font-size: 1.2rem;
}

.audience-strip {
  margin-top: 1.4rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 0.9rem;
  padding: 1.4rem 1rem;
  background: rgba(2, 6, 23, 0.64);
}

.audience-strip h3 {
  margin: 0;
  text-align: center;
  color: var(--cyber-text);
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.audience-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.audience-item {
  text-align: center;
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
  color: var(--cyber-text);
  background: rgba(15, 23, 42, 0.5);
}

.audience-item i {
  color: var(--wmctf-primary);
}

.audience-item span {
  display: block;
  margin-top: 0.35rem;
}

.cta-center {
  margin-top: 1.8rem;
  text-align: center;
}

.cta-note {
  margin: 0.8rem 0 0;
  color: var(--cyber-muted);
}

.final-cta {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.06), rgba(168, 85, 247, 0.06));
  text-align: center;
  padding: 3rem 1rem;
}

.final-cta h2 {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 3rem);
  color: var(--cyber-text);
  text-transform: uppercase;
}

.final-cta p {
  margin: 0.85rem auto 1.2rem;
  max-width: 760px;
  color: var(--cyber-muted);
  font-size: clamp(1rem, 1.75vw, 1.35rem);
}

.home-footer {
  padding: 2.2rem 0 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding-top: 2rem;
}

.home-footer h3,
.home-footer h4 {
  margin: 0 0 0.8rem;
  color: var(--cyber-text);
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.home-footer p,
.home-footer li,
.home-footer a {
  color: var(--cyber-muted);
}

.home-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.home-footer a {
  text-decoration: none;
}

.home-footer a:hover {
  color: var(--wmctf-primary);
}

.ctfaas-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  background: rgba(2, 6, 23, 0.6);
  z-index: 1100;
  padding: 1rem;
}

.ctfaas-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ctfaas-modal-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 1rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(2, 6, 23, 0.95);
  color: var(--cyber-text);
  padding: 1.5rem 1.2rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ctfaas-modal-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.ctfaas-modal-card p {
  margin: 0 0 0.8rem;
  color: var(--cyber-muted);
}

.ctfaas-email {
  margin: 0 0 1rem;
}

.ctfaas-email span {
  display: inline-block;
  border-radius: 0.6rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: var(--cyber-text);
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}

.ctfaas-modal-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ctfaas-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--cyber-muted);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ctfaas-modal-close:hover {
  color: var(--cyber-text);
  border-color: rgba(6, 182, 212, 0.45);
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .home-bg-grid {
    animation: none;
  }

  .home-bg-glow {
    transition: none;
  }

  .scroll-reveal,
  .js-motion .scroll-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
  }
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .stats-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .infinity-home {
    width: 100%;
    padding-top: calc(80px + 2rem);
  }

  .home-section {
    width: calc(100% - 1.2rem);
  }

  .hero-actions {
    width: 100%;
  }

  .btn-primary-glow,
  .btn-secondary-outline {
    width: 100%;
    min-width: 0;
  }

  .stats-grid,
  .feature-grid,
  .ctfaas-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-top: 2.5rem;
    padding: 2rem 0.95rem;
  }
}

[data-bs-theme="light"] .infinity-home {
  --wmctf-void: #f1f5f9;
  --cyber-surface-soft: rgba(255, 255, 255, 0.9);
  --cyber-border: rgba(8, 145, 178, 0.2);
  --cyber-text: #1e293b;
  --cyber-muted: #64748b;
}

[data-bs-theme="light"] .home-bg-grid {
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.045) 1px, transparent 1px);
}

[data-bs-theme="light"] .btn-primary-glow {
  color: white;
}

[data-bs-theme="light"] .audience-strip {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
}

[data-bs-theme="light"] .audience-strip h3 {
  color: #334155;
}

[data-bs-theme="light"] .audience-item {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
}

[data-bs-theme="light"] .audience-item i {
  color: #0891b2;
}

[data-bs-theme="light"] .cta-note {
  color: #64748b;
}

[data-bs-theme="light"] .ctfaas-modal {
  background: rgba(15, 23, 42, 0.35);
}

[data-bs-theme="light"] .ctfaas-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.45);
  color: #334155;
}

[data-bs-theme="light"] .ctfaas-modal-card p {
  color: #64748b;
}

[data-bs-theme="light"] .ctfaas-email span {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.3);
  color: #0f172a;
}

[data-bs-theme="light"] .ctfaas-modal-close {
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.45);
}

[data-bs-theme="light"] .hero-link,
[data-bs-theme="light"] .btn-secondary-outline,
[data-bs-theme="light"] .feature-card,
[data-bs-theme="light"] .service-card,
[data-bs-theme="light"] .audience-item,
[data-bs-theme="light"] .section-block {
  background: rgba(255, 255, 255, 0.92);
}
