/* 
 * Aegeon Research - Single Unified Stylesheet
 */

:root {
  --primary: #6D28D9;
  --primary-hover: #5B21B6;
  --accent: #8B5CF6;
  --bg-lavender: #F0E6FA;
  --bg-subtle: #F8F9FA;
  --text-main: #111111;
  --text-muted: #444444;
  --border-light: #E5E7EB;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* ── Accessibility (a11y) Focus Ring & Motion ── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Container & Layout Sections ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  padding: 80px 0;
}

.section-hero {
  background: var(--bg-lavender);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bloc-bg.webp') center/cover no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

/* ── UI Components ── */
.badge {
  display: inline-block;
  background: rgba(109, 40, 217, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.badge-danger {
  background: #FFF0F0;
  color: #DC2626;
}

.badge-success {
  background: #F0FFF4;
  color: #16A34A;
}

.btn {
  display: inline-block;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.btn-primary {
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  box-shadow: none;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.game-card {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.game-card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.game-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img-wrap img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 20px;
}

.disclaimer-banner {
  background: #FFF5F5;
  border-bottom: 1.5px solid #FECACA;
  padding: 12px 24px;
  text-align: center;
}

.disclaimer-text {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}

.demo-tab-btn {
  background: var(--bg-lavender);
  color: var(--primary);
  border: 1.5px solid rgba(109,40,217,0.2);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-tab-btn:hover, .demo-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Keyframe Animations ── */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes aegMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes aegFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Grid Layouts & Responsiveness ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
