/* ============================================================
   MAENLA DESIGN SYSTEM - CORE CSS & DESIGN TOKENS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --teal: #18849C;
  --teal-deep: #0F6B80;
  --teal-light: #EEF7F9;
  --teal-glow: rgba(24, 132, 156, 0.15);

  --magenta: #E4186C;
  --magenta-light: #FCE4EF;
  --coral: #F0606C;
  --amber: #E8901A;
  --amber-light: #FCF0DD;
  --leaf: #3FA34D;
  --leaf-light: #E6F4EA;

  --ink: #24333A;
  --ink-soft: #5C7079;
  --ink-muted: #8CA0A8;
  --paper: #F4FAFB;
  --card-bg: #FFFFFF;
  --line: #E3ECEF;

  --shadow-sm: 0 2px 8px rgba(24, 132, 156, 0.08);
  --shadow-md: 0 6px 20px rgba(24, 132, 156, 0.12);
  --shadow-lg: 0 12px 35px rgba(24, 132, 156, 0.18);
  --shadow-press: 0 2px 0 rgba(24, 132, 156, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-display: 'Baloo 2', cursive, system-ui, sans-serif;
  --font-body: 'Nunito', -apple-system, sans-serif;
  --font-text: 'Roboto', sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY & UTILITIES
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--teal-deep);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.badge-free {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 2px 8px rgba(63, 163, 77, 0.3);
}

.badge-pro {
  background: var(--magenta);
  color: #fff;
}

.badge-teal {
  background: var(--teal-light);
  color: var(--teal-deep);
  border: 1px solid rgba(24, 132, 156, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background: var(--teal);
  color: #ffffff;
  border: 3px solid var(--teal);
  box-shadow: 0 4px 14px rgba(24, 132, 156, 0.3);
}
.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 107, 128, 0.4);
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
  border: 3px solid var(--magenta);
  box-shadow: 0 4px 14px rgba(228, 24, 108, 0.35);
}
.btn-magenta:hover {
  background: #c8125c;
  border-color: #c8125c;
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: var(--teal-deep);
  border: 2.5px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--teal);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-title span {
  color: var(--magenta);
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--teal-light);
  color: var(--teal-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--teal-deep);
  cursor: pointer;
  padding: 6px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  padding: 60px 0 70px;
  background: linear-gradient(175deg, #ffffff 0%, #f4fafb 65%, #e9f5f7 100%);
  overflow: hidden;
}

.hero-shape-bg {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 132, 156, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

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

.hero-content {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--teal-light);
  border: 1.5px solid rgba(24, 132, 156, 0.3);
  border-radius: var(--radius-full);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--teal-deep);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--magenta);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Hero Showcase Card */
.hero-card-preview {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--teal);
}

.preview-badge-floating {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--magenta);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(228, 24, 108, 0.4);
}

.preview-game-demo {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 2px dashed var(--teal);
}

.preview-game-demo h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--teal-deep);
}

.preview-game-demo p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.preview-pulse-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  margin-bottom: 16px;
}

.preview-pulse-wave span {
  width: 5px;
  background: var(--teal);
  border-radius: 3px;
  animation: pulseHeight 1s ease-in-out infinite;
}

.preview-pulse-wave span:nth-child(2) { animation-delay: 0.2s; }
.preview-pulse-wave span:nth-child(3) { animation-delay: 0.4s; }
.preview-pulse-wave span:nth-child(4) { animation-delay: 0.6s; }
.preview-pulse-wave span:nth-child(5) { animation-delay: 0.8s; }

@keyframes pulseHeight {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--teal-deep);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.underline-deco {
  height: 6px;
  width: 80px;
  background: var(--amber);
  border-radius: 4px;
  margin: 12px auto 0;
}

/* ============================================================
   PILLARS & METHOD MEEL
   ============================================================ */
.pillars-section {
  padding: 80px 0;
  background: #ffffff;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pillar-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   FEATURED GAMES PREVIEW
   ============================================================ */
.featured-games-section {
  padding: 80px 0;
  background: var(--paper);
}

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

/* Game Card */
.game-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.game-card-thumb {
  position: relative;
  aspect-ratio: 16/11;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-thumb .thumb-overlay-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-normal);
}

.game-card:hover .thumb-overlay-icon {
  transform: scale(1.15) rotate(4deg);
}

.badge-tag-pos {
  position: absolute;
  top: 10px;
  right: 10px;
}

.game-card-body {
  padding: 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.game-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--teal-deep);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============================================================
   TESTIMONIALS / QUOTES
   ============================================================ */
.quotes-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #18849c 0%, #0f6b80 100%);
  color: #ffffff;
}

.quotes-section .section-title {
  color: #ffffff;
}

.quotes-section .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.quote-icon {
  font-size: 2.4rem;
  color: #ffd34e;
  line-height: 1;
  margin-bottom: 12px;
}

.quote-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.quote-author {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffd34e;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a272c;
  color: #abbcc3;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #abbcc3;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: #7b8e96;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-primary {
    display: none;
  }
  .btn-mobile-toggle {
    display: block;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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