/* ═════════════════════════════════════════════════════════════════════
   YEAYYY.MY — CHILDREN EDUCATIONAL GAMES STUDIO THEME
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(51, 65, 85, 0.95);
  --primary-purple: #8b5cf6;
  --primary-yellow: #fbbf24;
  --primary-cyan: #06b6d4;
  --primary-pink: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-yellow: rgba(251, 191, 36, 0.4);
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Fredoka', cursive, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-heading);
}

/* Background Grid & Bubbles */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    radial-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 1;
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.8rem;
}

.brand .highlight {
  color: var(--primary-yellow);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-yellow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-yellow), #f59e0b);
  color: #0f172a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-cyan);
}

/* Main Content Layout */
.main-content {
  position: relative;
  z-index: 10;
  padding-bottom: 5rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 2px solid var(--primary-purple);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-yellow);
  box-shadow: 0 0 10px var(--primary-yellow);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-cyan), var(--primary-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Image Boxed Centered Frame */
.hero-image-wrapper {
  margin-top: 3.5rem;
  padding: 0 1rem;
}

.hero-image-frame {
  position: relative;
  width: min(1024px, calc(100% - 1rem));
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--primary-purple);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.3);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.image-overlay-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 50%, rgba(15, 23, 42, 0.3) 100%);
  pointer-events: none;
}

/* Section Common Container */
.section-container {
  max-width: 1024px;
  margin: 5rem auto 0;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--primary-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

/* Features & Values Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-yellow);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.15);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--primary-yellow);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid var(--primary-cyan);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
}

.value-badge {
  display: inline-block;
  background: var(--primary-cyan);
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stage Card Pipeline (Hard-won Standard: .slide-icon 128x128px, icon 86px) */
.stage-card {
  background: var(--bg-card);
  border: 2px solid var(--primary-purple);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.slide-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.slide-icon {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 24px;
  background: rgba(139, 92, 246, 0.2);
  border: 2px solid var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 86px;
}

.slide-details h3 {
  font-size: 1.5rem;
  color: var(--primary-yellow);
  margin-bottom: 0.4rem;
}

.slide-details p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.pipeline-step {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pipeline-step.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: var(--primary-yellow);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--primary-yellow);
  margin-bottom: 0.25rem;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(139, 92, 246, 0.2));
  border: 3px solid var(--primary-yellow);
  border-radius: 32px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 45px rgba(251, 191, 36, 0.2);
}

.contact-card h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .slide-preview { flex-direction: column; text-align: center; }
}
