/* ==========================================================================
   Enigmix Landing Page Stylesheet
   Modern, Premium & Responsive Design
   ========================================================================== */

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, var(--brand-glow) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, hsla(210, 100%, 56%, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(38, 166, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 166, 154, 0); }
}

.hero-main-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), hsl(210, 100%, 56%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: hsl(222, 47%, 11%);
  color: #ffffff !important;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-store {
  background: hsl(224, 25%, 16%);
  border: 1px solid var(--border-color);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.35);
  background: hsl(222, 55%, 15%);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  line-height: 1.1;
}

.store-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Phone Mockup Frame */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-container {
  position: relative;
  width: 290px;
  max-width: 100%;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #2b303c, #161820);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  z-index: 2;
  transition: transform 0.4s ease;
}

.phone-container:hover {
  transform: translateY(-5px) scale(1.01);
}

.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #111;
  border-radius: 10px;
  z-index: 10;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: float-slow 4s ease-in-out infinite;
}

.badge-top-left {
  top: 12%;
  left: -25px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 14%;
  right: -25px;
  animation-delay: 2s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(100, 108, 255, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Games Showcase Section */
.games-section {
  padding: 5.5rem 0;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.filter-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.game-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.game-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-words { background: hsla(245, 75%, 60%, 0.12); color: var(--brand-primary); }
.cat-logic { background: hsla(150, 70%, 40%, 0.12); color: var(--accent-green); }
.cat-numbers { background: hsla(38, 92%, 50%, 0.15); color: hsl(38, 85%, 42%); }

.game-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.game-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface-elevated);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* Screenshots Gallery */
.gallery-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.gallery-scroller-container {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.5rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.gallery-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.gallery-caption {
  padding: 0.85rem 1rem;
}

.gallery-caption h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.gallery-caption p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Cognitive Section */
.cognitive-section {
  padding: 5.5rem 0;
}

.cognitive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cog-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.cog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cog-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.25s ease;
  font-size: 1rem;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.4rem;
}

/* Bottom CTA Banner */
.cta-banner-section {
  padding: 5.5rem 0;
  position: relative;
}

.cta-banner-card {
  background: linear-gradient(135deg, hsl(245, 60%, 25%), hsl(224, 50%, 15%));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(100, 108, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-card h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner-card p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Nav Menu */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 1.5rem;
}

.nav-anchor {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.nav-anchor:hover {
  color: var(--brand-primary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-actions {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .floating-badge {
    display: none;
  }

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

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

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .hero-main-title {
    font-size: 2.4rem;
  }

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

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

  .section-title {
    font-size: 1.85rem;
  }

  .cta-banner-card {
    padding: 2.5rem 1.5rem;
  }

  .cta-banner-card h2 {
    font-size: 1.85rem;
  }
}
