/* ========================================
   SUPERGAMES ACADEMY - DESIGN SYSTEM
   ======================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* === COLORS === */
  /* Primary - Brand Green (aligned with platform identity) */
  --color-primary: #00CC66;
  --color-primary-hover: #00A352;
  --color-primary-pressed: #007A3D;
  --color-primary-light: #E6F9F0;
  
  /* Secondary - Tech Blue (institutional/trust) */
  --color-secondary: #0066FF;
  --color-secondary-hover: #0052CC;
  --color-secondary-light: #E6F0FF;
  
  /* Accent - Action Orange */
  --color-accent: #FF6600;
  --color-accent-hover: #E65C00;
  --color-accent-light: #FFF4E6;
  
  /* Track Colors (aligned with platform) */
  --color-track-games: #8b5cf6;
  --color-track-ia: #06b6d4;
  
  /* Neutrals */
  --color-text-dark: #1A1A1A;
  --color-text-gray: #4A4A4A;
  --color-bg-light: #F5F5F5;
  --color-white: #FFFFFF;
  
  /* Feedback */
  --color-error: #DC3545;
  --color-warning: #FFC107;
  --color-success: #28A745;
  
  /* === TYPOGRAPHY === */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Font Sizes */
  --fs-h1-desktop: 64px;
  --fs-h1-mobile: 40px;
  --fs-h2-desktop: 48px;
  --fs-h2-mobile: 32px;
  --fs-h3-desktop: 32px;
  --fs-h3-mobile: 28px;
  --fs-body: 18px;
  --fs-small: 14px;
  
  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  
  /* === SPACING (8px system) === */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  
  /* === BORDERS === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* === SHADOWS === */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  
  /* === TRANSITIONS === */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.6s ease-out;
  
  /* === CONTAINER === */
  --container-max: 1400px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text-dark);
}

h1 {
  font-size: var(--fs-h1-mobile);
}

h2 {
  font-size: var(--fs-h2-mobile);
}

h3 {
  font-size: var(--fs-h3-mobile);
}

p {
  margin-bottom: var(--space-sm);
  line-height: var(--lh-relaxed);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === UTILITY CLASSES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xxl) 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white) !important;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 14px 30px;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 14px 30px;
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary-pressed);
}

.btn-large {
  padding: 20px 40px;
  font-size: 20px;
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-success {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}

.badge-warning {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-error {
  background: #FFEBEE;
  color: var(--color-error);
}

/* === CARDS === */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* === HEADER & NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 204, 102, 0.2);
  transition: all var(--transition-normal);
}

.header.transparent {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

.header.transparent .nav-link {
  color: var(--color-white);
}

.header:not(.transparent) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header:not(.transparent) .menu-toggle span {
  background: var(--color-white);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  height: 72px;
  transition: var(--transition-normal);
}

@media (max-width: 480px) {
  .logo {
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 84px;
  }
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--color-text-dark);
  font-weight: var(--fw-medium);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: var(--space-md);
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.6vw, 20px);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.trust-badges {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-white);
  font-size: var(--fs-small);
}

.trust-badge-logos {
  display: flex;
  gap: var(--space-md);
  opacity: 0.8;
}

.trust-badge-logos img {
  height: 30px;
  filter: brightness(0) invert(1);
}

/* === SOCIAL PROOF SECTION === */
.social-proof {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-body);
  color: var(--color-text-gray);
  font-weight: var(--fw-medium);
}

/* === PROBLEM-SOLUTION SECTION === */
.problem-solution {
  background: var(--color-white);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xxl);
  align-items: center;
}

.problem-box, .solution-box {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
}

.problem-box {
  background: #FFF5F5;
  border-left: 4px solid var(--color-error);
}

.solution-box {
  background: var(--color-secondary-light);
  border-left: 4px solid var(--color-secondary);
}

.problem-solution ul {
  list-style: none;
  margin: var(--space-md) 0;
}

.problem-solution li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.problem-solution li::before {
  position: absolute;
  left: 0;
  font-size: 20px;
}

.problem-box li::before {
  content: '❌';
}

.solution-box li::before {
  content: '✅';
}

.transition-arrow {
  text-align: center;
  font-size: 48px;
  margin: var(--space-lg) 0;
  color: var(--color-primary);
}

/* === COURSES GRID === */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.course-card {
  position: relative;
  padding-top: var(--space-xl);
  text-align: center;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.course-card.games::before { background: var(--color-primary); }
.course-card.robotics::before { background: var(--color-secondary); }
.course-card.ai::before { background: var(--color-track-ia); }
.course-card.programming::before { background: var(--color-accent); }

.course-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.course-card h3 {
  margin-bottom: var(--space-sm);
}

.course-description {
  color: var(--color-text-gray);
  margin-bottom: var(--space-md);
  font-size: 16px;
  line-height: var(--lh-relaxed);
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-text-gray);
}

.course-price {
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* === COMPETITIONS SECTION === */
.competitions-hero {
  position: relative;
  padding: var(--space-xxxl) 0;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('../images/placeholder-medals.jpg') center/cover;
  color: var(--color-white);
}

.competition-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  opacity: 0.9;
}

.competition-logos img {
  height: 60px;
  filter: brightness(0) invert(1);
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--color-bg-light);
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.testimonial-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.testimonial-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--color-text-gray);
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

.testimonial-quote::before {
  content: '"';
  font-size: 48px;
  color: var(--color-primary);
  font-family: Georgia, serif;
}

.testimonial-author {
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.testimonial-meta {
  font-size: var(--fs-small);
  color: var(--color-text-gray);
}

.testimonial-rating {
  color: #FFD700;
  margin-top: var(--space-sm);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #CCCCCC;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.carousel-btn::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-btn {
  background: transparent;
}

.carousel-btn::after {
  background: #CCCCCC;
}

.carousel-btn.active {
  width: 52px;
  border-radius: var(--radius-full);
}

.carousel-btn.active::after {
  background: var(--color-primary);
  width: 32px;
  border-radius: var(--radius-full);
}

/* === PROJECTS GRID === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: var(--space-md);
}

.project-title {
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.project-student {
  font-size: var(--fs-small);
  color: var(--color-text-gray);
  margin-bottom: var(--space-sm);
}

.project-description {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

.project-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* === METHODOLOGY SECTION === */
.methodology-steps {
  display: grid;
  gap: var(--space-xxl);
  margin-top: var(--space-xl);
}

.methodology-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.methodology-step:nth-child(even) .step-content {
  order: 2;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 28px;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}

.step-icon {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.step-image {
  width: 70%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* === SUPERGAMES INTEGRATION === */
.supergames-integration {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.integration-column {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.integration-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.integration-column h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.integration-column ul {
  list-style: none;
  text-align: left;
}

.integration-column li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.integration-column li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary-light);
  font-weight: var(--fw-bold);
}

.ecosystem-highlight {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.ecosystem-highlight h2 {
  color: var(--color-white);
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: var(--space-sm);
}

/* === FAQ SECTION === */
.faq-list {
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-md);
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-bg-light);
}

.faq-icon {
  font-size: 24px;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-gray);
  line-height: var(--lh-relaxed);
}

/* === CONTACT FORM SECTION === */
.contact-section {
  background: var(--color-bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: var(--space-xl) auto 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-info {
  background: linear-gradient(135deg, var(--color-primary-pressed) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--space-xxl);
}

.contact-info h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.contact-methods {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.contact-methods li {
  padding: var(--space-md) 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  word-break: break-word;
}

.contact-icon {
  font-size: 24px;
}

.schedule {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-md);
}

.schedule h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.schedule p {
  margin-bottom: var(--space-xs);
}

.contact-form {
  padding: var(--space-xxl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
}

.checkbox-group label {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
}

.form-note {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-gray);
  margin-top: var(--space-sm);
}

/* === FOOTER === */
.footer {
  background: var(--color-text-dark);
  color: var(--color-white);
  padding: var(--space-xxl) 0 var(--space-lg);
  padding-bottom: calc(var(--space-lg) + 80px);
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-column {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-column h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 18px;
}

.footer-logo {
  height: 72px;
  margin-bottom: var(--space-md);
}

.footer-logo[src$=".png"] {
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .footer-logo {
    height: 56px;
  }
}

.footer-tagline {
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-4px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition-fast);
  word-break: break-word;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  text-align: center;
  font-size: var(--fs-small);
  opacity: 0.7;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
  h1 {
    font-size: clamp(40px, 5vw, var(--fs-h1-desktop));
  }
  
  h2 {
    font-size: clamp(32px, 4vw, var(--fs-h2-desktop));
  }
  
  h3 {
    font-size: var(--fs-h3-desktop);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-xxxl) 0;
  }
  
  .hero {
    min-height: 100vh;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0a0a2e;
    flex-direction: column;
    padding: var(--space-xl);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px;
    padding: 12px 0;
  }

  .nav-menu .nav-link:hover {
    color: var(--color-primary) !important;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero {
    min-height: auto;
    padding-top: 80px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .methodology-step {
    grid-template-columns: 1fr;
  }
  
  .methodology-step:nth-child(even) .step-content {
    order: 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius-sm);
  }
  
  .contact-info,
  .contact-form {
    padding: var(--space-md);
  }

  .contact-methods li {
    font-size: 15px;
    gap: var(--space-sm);
  }

  .contact-icon {
    font-size: 20px;
    flex-shrink: 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }

  .footer {
    padding: var(--space-xl) 0;
    padding-bottom: calc(var(--space-md) + 90px);
  }

  .footer-column {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links {
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr !important;
  }

  .btn-large {
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
}

/* ========================================
   STORYTELLING & MENTOR SECTIONS
   ======================================== */

/* Blockquote styling for mentor quotes */
blockquote {
  margin: 0;
}

blockquote p {
  margin-bottom: 0;
}

/* Responsive grid for sobre.html chapters */
@media (max-width: 767px) {
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Badge improvements for pillar cards */
.card blockquote {
  margin-top: 16px;
}

/* Hero em emphasis styling */
.hero h1 em {
  font-style: normal;
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Mentor credential cards */
.mentor-credential:hover {
  background: var(--color-primary-light);
  transition: background var(--transition-fast);
}

/* Studio logo hover */
.studio-logo {
  transition: all var(--transition-normal);
}

.studio-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Chapter number animations */
@keyframes fadeInNumber {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 0.3;
    transform: translateX(0);
  }
}

/* Integration grid responsive */
@media (max-width: 767px) {
  .integration-grid {
    grid-template-columns: 1fr !important;
  }
  
  .courses-grid[style*="minmax(420px"] {
    grid-template-columns: 1fr !important;
  }
  
  .courses-grid[style*="minmax(340px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   UI/UX IMPROVEMENTS — Per Analysis Report
   ======================================== */

/* === ENHANCED COLOR CONTRAST === */
/* Softer green for better readability on dark backgrounds */
.badge-success {
  background: #E6F9F0;
  color: #00A352;
}

/* Better text contrast on light backgrounds */
.course-description,
.faq-answer-content {
  color: #333333;
}

/* === IMPROVED HOVER EFFECTS === */
.card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* Course card hover — highlight border color */
.card.course-card:hover {
  border-color: var(--color-primary);
}

/* CTA buttons subtle pulse animation */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* === IMPROVED SPACING === */
/* More breathing room between major sections */
.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Better card internal spacing */
.card h3 {
  margin-bottom: 12px;
}

.card h4 {
  margin-bottom: 8px;
}

/* === BLOCKQUOTE STYLING — Enhanced === */
blockquote {
  margin: 24px 0;
  position: relative;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 8px;
  font-size: 48px;
  color: rgba(0, 204, 102, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* === MENTOR CREDENTIAL HOVER === */
.mentor-credential {
  transition: all 0.2s ease;
  cursor: default;
}

.mentor-credential:hover {
  background: var(--color-primary-light);
  transform: translateX(4px);
}

/* === STUDIO LOGO INTERACTIVE === */
.studio-logo {
  transition: all 0.3s ease;
  cursor: default;
}

.studio-logo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === STATS COUNTER IMPROVEMENT === */
.stat-number {
  background: linear-gradient(135deg, var(--color-primary), #33DDAA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SCROLL INDICATOR FOR SECTIONS === */
.nav-link.active {
  color: var(--color-primary) !important;
}

/* === ONDE MAIS SECTION — MOBILE === */
@media (max-width: 767px) {
  .onde-mais-section {
    padding: 48px 0 !important;
  }

  .onde-mais-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }

  .onde-mais-card {
    padding: 20px !important;
  }

  .onde-mais-card li {
    font-size: 14px;
  }
}

/* === CURSOS — FILTRO NAV — MOBILE === */
@media (max-width: 767px) {
  .cursos-filtro-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    flex-wrap: unset !important;
    overflow-x: visible !important;
  }

  .cursos-filtro-btn {
    font-size: 12px !important;
    padding: 8px 10px !important;
    text-align: center;
    white-space: nowrap !important;
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

/* === SOBRE — O RESULTADO SECTION — MOBILE === */
@media (max-width: 767px) {
  .sobre-resultado-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: 24px 0 !important;
  }

  .sobre-resultado-card {
    padding: 20px !important;
  }

  .sobre-plataforma-box {
    padding: 20px !important;
  }

  .sobre-plataforma-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.nav-link.active::after {
  width: 100%;
}

/* === MOBILE IMPROVEMENTS === */
@media (max-width: 767px) {
  /* Better touch targets */
  .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Readable hero on mobile */
  .hero h1 {
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Testimonial quote */
  .testimonial-quote {
    font-size: 16px;
  }
  
  /* Mentor avatars stack on very small screens */
  @media (max-width: 400px) {
    .mentor-stats-grid {
      grid-template-columns: 1fr !important;
    }
  }
  
  /* Sticky course filter scrollable */
  [style*="position: sticky"] .btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* === SAFE AREA (iPhone notch) === */
@supports (padding: env(safe-area-inset-bottom)) {
  .header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === FOCUS VISIBLE (Accessibility) === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 204, 102, 0.3);
}

/* === PRINT IMPROVEMENTS === */
@media print {
  .hero-video,
  .hero-overlay,
  .menu-toggle,
  [style*="position: sticky"] {
    display: none !important;
  }
  
  .hero {
    height: auto;
    background: white !important;
  }
  
  .hero h1,
  .hero-subtitle {
    color: black !important;
  }
}

/* === PLACEHOLDER STYLES (for missing images) === */
.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.project-placeholder span {
  font-size: 64px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.step-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.step-placeholder span {
  font-size: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
