/* ===========================
   iLearn - Main Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --primary: #168AA0;
  --primary-dark: #0f6a7a;
  --primary-light: #e8f6f9;
  --secondary: #7E4A8E;
  --secondary-light: #f3edf6;
  --accent: #E53935;
  --highlight: #F4C21A;
  --text: #222222;
  --text-muted: #6b7280;
  --bg: #F4F5F7;
  --bg-white: #FFFFFF;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-display: 'DM Sans', sans-serif;
  --font-heading: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::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(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 60px 0;
}

.section-sm {
  padding: 64px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
}

.badge.badge-secondary {
  background: var(--secondary-light);
  color: var(--secondary);
}

.badge.badge-accent {
  background: #fde8e8;
  color: var(--accent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 19px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(22, 138, 160, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 138, 160, 0.45);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
}

.btn-accent:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 57, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.nav-logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  margin: 4px 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: 100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--highlight);
  top: 50%;
  left: 50%;
  animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: linear-gradient(var(--primary) 1px, transparent 1px), linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* .hero-content inherits flex layout from hero-inner grid */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid rgba(22, 138, 160, 0.2);
  margin-top: 18px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.hero-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp 0.6s 0.4s ease both;
  /* padding-top: 32px; */
  border-top: 1px solid var(--border);
}

/* .stat-item container *)
.stat-value {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.stat-value span { color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Hero 3D Illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.8s 0.2s ease both;
}

.hero-3d-scene {
  position: relative;
  width: 480px;
  height: 480px;
}

.floating-card {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 80px;
  right: -10px;
  animation-delay: 1.5s;
}

.floating-card-3 {
  top: 50%;
  left: -20px;
  animation-delay: 0.8s;
}

.floating-card-4 {
  top: 110px;
  right: -50px;
  animation-delay: 2.2s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.fc-icon.purple {
  background: var(--secondary-light);
  color: var(--secondary);
}

.fc-icon.orange {
  background: #fef3c7;
  color: #d97706;
}

.fc-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.fc-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.fc-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-book-scene {
  position: relative;
  width: 280px;
  height: 280px;
  margin: auto;
  perspective: 1000px;
}

.book-3d {
  position: absolute;
  width: 160px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: bookRotate 8s ease-in-out infinite;
}

@keyframes bookRotate {

  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(15deg) rotateY(-20deg);
  }

  50% {
    transform: translate(-50%, -50%) rotateX(-5deg) rotateY(20deg);
  }
}

.book-face,
.book-side,
.book-back {
  position: absolute;
  border-radius: 4px;
}

.book-face {
  width: 160px;
  height: 200px;
  background: linear-gradient(145deg, #168AA0, #0f6a7a);
  transform: translateZ(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 4px 8px 24px rgba(22, 138, 160, 0.4);
}

.book-face svg {
  color: rgba(255, 255, 255, 0.9);
}

.book-face-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 0 12px;
}

.book-spine {
  width: 32px;
  height: 200px;
  background: linear-gradient(145deg, #0f6a7a, #0a4f5c);
  transform: rotateY(90deg) translateZ(148px);
  border-radius: 2px 0 0 2px;
}

.book-back {
  width: 160px;
  height: 200px;
  background: linear-gradient(145deg, #0a4f5c, #0d5f6e);
  transform: translateZ(-16px) rotateY(180deg);
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
}

/* Back face content — scaleX(-1) mirrors text so it reads correctly */
.book-back-content {
  transform: scaleX(-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px 10px;
  gap: 5px;
}

.book-back-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.book-back-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-back-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}

.book-back-tagline {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 2px;
}

.book-back-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.book-back-features li {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  text-align: left;
}

.book-back-badge {
  font-size: 0.58rem;
  font-weight: 700;
  color: #0a4f5c;
  background: #F4C21A;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 2px;
  letter-spacing: 0.03em;
}


/* orbit dots */
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(22, 138, 160, 0.2);
  animation: orbitSpin 12s linear infinite;
}

.orbit-1 {
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-2 {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-dot-1 {
  background: var(--accent);
}

.orbit-dot-2 {
  background: var(--highlight);
}

.orbit-3 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
}

.orbit-dot-3 {
  background: var(--secondary);
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== TRUSTED BY ===== */
.trusted {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.trusted-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-logo-item {

  display: flex;
  align-items: center;
  gap: 10px;
  /* opacity: 0.45;
  transition: var(--transition);
  filter: grayscale(0.5); */
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.trusted-logo-item:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

.trusted-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== FEATURES ROADMAP ===== */
.features {
  background: var(--bg-white);
}

.features-header {
  text-align: center;
  margin-bottom: 40px;
}

.roadmap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  transform: translateX(-50%);
}

.roadmap-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
  height: 0;
  transition: height 0.8s ease;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 64px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.roadmap-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-item:nth-child(odd) {
  flex-direction: row;
}

.roadmap-item:nth-child(even) {
  flex-direction: row-reverse;
}

.roadmap-content {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.roadmap-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.roadmap-node i {
  font-size: 1.25rem;
  color: var(--primary);
}

.roadmap-item.visible .roadmap-node {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 6px var(--primary-light);
}

.roadmap-node svg {
  color: var(--primary);
}

.roadmap-spacer {
  flex: 1;
}

.roadmap-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.roadmap-feature-icon i {
  font-size: 1.2rem;
}

.roadmap-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.roadmap-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.roadmap-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 14px;
}

.roadmap-tag.primary {
  background: var(--primary-light);
  color: var(--primary);
}

.roadmap-tag.secondary {
  background: var(--secondary-light);
  color: var(--secondary);
}

/* ===== STATS BAND ===== */
.stats-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.stat-band-item {
  color: white;
}

.stat-band-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-band-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

/* ===== PRICING ===== */
.pricing {
  background: var(--bg);
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
}

.pricing-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-toggle-label.active {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(28px);
}

.pricing-save-badge {
  background: var(--highlight);
  color: #7a5900;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(22, 138, 160, 0.2);
}

.pricing-card.trending {
  border-color: var(--secondary);
  box-shadow: 0 8px 40px rgba(126, 74, 142, 0.2);
}

.pricing-ribbon {
  position: absolute;
  top: 20px;
  right: -32px;
  padding: 6px 44px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: rotate(45deg);
}

.pricing-ribbon.popular-ribbon {
  background: var(--primary);
  color: white;
}

.pricing-ribbon.trending-ribbon {
  background: var(--secondary);
  color: white;
}

.pricing-ribbon.free-ribbon {
  background: var(--accent);
  color: white;
}

.pricing-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.pricing-icon.blue {
  background: var(--primary-light);
}

.pricing-icon.purple {
  background: var(--secondary-light);
}

.pricing-icon.green {
  background: #dcfce7;
}

.pricing-icon.orange {
  background: #fef3c7;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.pricing-subjects {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-yearly {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-decoration: line-through;
}

.pricing-yearly.active {
  text-decoration: none;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.pricing-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled svg {
  color: var(--border);
}

/* ===== COMING SOON / GAMIFICATION ===== */
.gamification {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1a3e 50%, #0a2a1e 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.gamification-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.gamification-inner {
  position: relative;
  z-index: 1;
}

.gamification-header {
  text-align: center;
  margin-bottom: 30px;
}

.gamification-header .section-label {
  background: rgba(244, 194, 26, 0.15);
  color: var(--highlight);
  border: 1px solid rgba(244, 194, 26, 0.3);
}

.gamification-header .section-title {
  color: white;
}

.gamification-header .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.gamification-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.game-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}

.game-card:nth-child(2) .game-icon {
  animation-delay: 0.3s;
}

.game-card:nth-child(3) .game-icon {
  animation-delay: 0.6s;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.game-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(244, 194, 26, 0.15);
  border: 1px solid rgba(244, 194, 26, 0.3);
  color: var(--highlight);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 14px;
}

.gamification-cta {
  text-align: center;
  margin-top: 56px;
}

.gamification-cta p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 14px;
  text-align: center;
}

/* ===== EDUCATORS / PARTNERS ===== */
.educators {
  background: var(--bg-white);
}

.educators-header {
  text-align: center;
  margin-bottom: 48px;
}

.educators-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.educators-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.educators-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.educator-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.educator-feature-item:hover {
  background: var(--bg-white);
  transform: translateY(-2px);
}

.educator-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(22, 138, 160, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.educator-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.educator-feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .educators-features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
  }

  .educators-card {
    padding: 32px 20px;
  }
}

/* ===== CONTACT ===== */
/* .contact {
  background: var(--bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-card,
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(22, 138, 160, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
} */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  /* border-bottom: 1px solid var(--border); */
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 25px;
  height: 25px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  /* margin-bottom: 4px; */
}

.contact-info-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-info-text a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-text a:hover {
  text-decoration: underline;
}

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.map-placeholder svg {
  opacity: 0.5;
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.auth-modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  padding: 44px;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-xl);
  margin: 20px;
}

.modal-overlay.active .auth-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  overflow-y: scroll;
  transform: scale(0.875);
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.7);
}

.footer-main {
  padding: 40px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.footer-brand-name span {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition);
}

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

.newsletter-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-input:focus {
  border-color: var(--primary);
  background: rgba(22, 138, 160, 0.1);
}

.newsletter-btn {
  padding: 11px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  background: #0a0d12;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copy span {
  color: var(--primary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-stagger .animate-in:nth-child(1) {
  transition-delay: 0s;
}

.animate-stagger .animate-in:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-stagger .animate-in:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-stagger .animate-in:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-stagger .animate-in:nth-child(5) {
  transition-delay: 0.4s;
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  transform: translateX(120%);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.toast-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.toast-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(22, 138, 160, 0.2);
}

.mobile-menu .mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu .mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
/* @media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gamification-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-hamburger { display: block; }
  .section { padding: 64px 0; }
  .hero-title { font-size: 2.2rem; }
  .roadmap-line, .roadmap-progress { left: 24px; }
  .roadmap-item, .roadmap-item:nth-child(odd), .roadmap-item:nth-child(even) { flex-direction: column; padding-left: 56px; }
  .roadmap-node { left: 0; transform: none; }
  .roadmap-spacer { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gamification-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.9rem; }
} */
/* =========================
   Responsive
========================= */

@media (max-width:1024px) {

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

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

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

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

}

/* =========================
   Tablet & Mobile
========================= */

@media (max-width:768px) {

  /* Navbar */

  .nav-links {
    display: none;
  }

  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  /* Sections */

  .section {
    padding: 60px 0;
  }

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

  .hero-title {
    font-size: 2.3rem;
  }

  /* Timeline */

  .roadmap {
    max-width: 100%;
  }

  .roadmap-line,
  .roadmap-progress {
    left: 28px;
  }

  .roadmap-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
  }

  .roadmap-node {
    position: relative;
    left: auto;
    transform: none;
    grid-column: 1 !important;
    justify-self: center;
    width: 50px;
    height: 50px;
  }

  .roadmap-content {
    grid-column: 2 !important;
    width: 100%;
    padding: 22px;
  }

  .roadmap-spacer {
    display: none;
  }

  /* Cards */

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: auto;
  }

  .testimonials-grid,
  .contact-grid,
  .footer-grid,
  .gamification-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Hero stats - stack vertically on mobile */
   .hero-stats {
    flex-direction: row;
    font-size: 15px;
    gap: 20px;
    align-items: center;
    padding-top: 20px;
  }

  /* Trusted logos - better mobile alignment */
 .trusted-logos {
   flex-direction: column;
    gap: 20px;
    align-items: start;
    margin-left: 30px;
   
  }

  .trusted-logo-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    justify-content: flex-start;
  } 

  /* Hero actions - stack buttons on mobile */
  /* .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  } */ 
}

/* =========================
   Small Mobile
========================= */

@media (max-width:480px) {

  .container {
    width: 92%;
  }

  .hero-title {
    font-size: 1.9rem;
  }

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

  .section-subtitle {
    font-size: .95rem;
  }

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

  .roadmap-item {
    grid-template-columns: 46px 1fr;
    gap: 16px;
  }

  .roadmap-line,
  .roadmap-progress {
    left: 23px;
  }

  .roadmap-node {
    width: 46px;
    height: 46px;
  }

  .roadmap-content {
    padding: 18px;
  }

  .roadmap-content h3 {
    font-size: 1rem;
  }

  .roadmap-content p {
    font-size: .9rem;
  }

}


/*=========================
        FAQ
==========================*/

.faq {
  background: var(--bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 70px;
}

.faq-wrapper {

  max-width: 900px;
  margin: auto;
}

.faq-card {

  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  margin-bottom: 18px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  overflow: hidden;

}

.faq-card:hover {

  border-color: var(--primary);

  box-shadow: var(--shadow-md);

  transform: translateY(-3px);

}

.faq-card summary {

  list-style: none;

  cursor: pointer;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 24px 30px;

}

.faq-card summary::-webkit-details-marker {

  display: none;

}

.faq-title {

  font-family: var(--font-display);

  font-size: 18px;

  font-weight: 700;

  color: var(--text);

  line-height: 1.5;

  width: 90%;

}

.faq-card summary::after {

  content: "+";

  width: 42px;

  height: 42px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--primary-light);

  color: var(--primary);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;

  font-weight: 500;

  transition: var(--transition);

}

.faq-card[open] summary::after {

  content: "−";

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;

  transform: rotate(180deg);

}

.faq-body {

  padding: 0 30px 26px;

  color: var(--text-muted);

  line-height: 1.9;

  font-size: 15px;

  border-top: 1px solid var(--border);

  margin-top: 8px;

  padding-top: 20px;

}

.faq-card[open] {

  border-color: rgba(22, 138, 160, .25);

  box-shadow: var(--shadow-lg);

}

/*=========================
      Mobile
==========================*/

@media(max-width:768px) {

  .faq-header {

    margin-bottom: 45px;

  }

  .faq-card summary {

    padding: 18px;

  }

  .faq-title {

    font-size: 16px;

    width: 85%;

  }

  .faq-card summary::after {

    width: 36px;

    height: 36px;

    font-size: 24px;

  }

  .faq-body {

    padding: 0 18px 20px;

    padding-top: 16px;

    font-size: 14px;

  }

}

/*=========================
        TERMS
==========================*/

.terms {

  background: var(--bg);

}

.terms-header {

  text-align: center;

  margin-bottom: 60px;

}

.terms-card {

  background: var(--bg-white);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 35px;

  margin-bottom: 30px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

}

.terms-card:hover {

  border-color: var(--primary);

  transform: translateY(-4px);

  box-shadow: var(--shadow-md);

}

.terms-card h3 {

  color: var(--primary);

  font-family: var(--font-display);

  font-size: 26px;

  margin-bottom: 18px;

}

.terms-card h4 {

  color: var(--secondary);

  margin-top: 20px;

  margin-bottom: 12px;

  font-size: 18px;

}

.terms-card p {

  color: var(--text-muted);

  line-height: 1.9;

  margin-bottom: 18px;

  text-align: justify;

}

.terms-card ul {

  padding-left: 22px;

  margin-bottom: 20px;

}

.terms-card ul li {

  margin-bottom: 12px;

  color: var(--text-muted);

  line-height: 1.8;

}

.terms-card strong {

  color: var(--primary);

}

.refund-card {

  background: linear-gradient(135deg, var(--primary-light), #fff);

  border-left: 5px solid var(--primary);

}

/*=========================
      Mobile
==========================*/

@media(max-width:768px) {

  .terms-card {

    padding: 22px;

  }

  .terms-card h3 {

    font-size: 22px;

  }

  .terms-card h4 {

    font-size: 17px;

  }

}

/*==========================
      Privacy Policy
==========================*/

.privacy {

  background: var(--bg);

}

.privacy-header {

  text-align: center;

  margin-bottom: 60px;

}

.privacy-card {

  background: var(--bg-white);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 35px;

  margin-bottom: 28px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

}

.privacy-card:hover {

  border-color: var(--primary);

  transform: translateY(-4px);

  box-shadow: var(--shadow-md);

}

.privacy-card h3 {

  font-family: var(--font-display);

  font-size: 26px;

  color: var(--primary);

  margin-bottom: 18px;

}

.privacy-card p {

  color: var(--text-muted);

  line-height: 1.9;

  margin-bottom: 16px;

  text-align: justify;

}

.privacy-card strong {

  color: var(--primary);

}

.contact-card {

  background: linear-gradient(135deg, var(--primary-light), #fff);

  border-left: 5px solid var(--primary);

}

.privacy-mail {

  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 14px 22px;

  margin-top: 15px;

  background: var(--primary);

  color: #fff;

  border-radius: var(--radius-full);

  text-decoration: none;

  font-weight: 600;

  transition: var(--transition);

}

.privacy-mail:hover {

  background: var(--primary-dark);

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

/*==========================
      Mobile
==========================*/

@media(max-width:768px) {

  .privacy-card {

    padding: 22px;

  }

  .privacy-card h3 {

    font-size: 22px;

  }

  .privacy-mail {

    width: 100%;

    justify-content: center;

  }

}

/*==========================
        Site Map
==========================*/

/* .sitemap {

  background: var(--bg);

}

.sitemap-header {

  text-align: center;

  margin-bottom: 60px;

}

.sitemap-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;

}

.sitemap-card {

  background: var(--bg-white);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 30px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

}

.sitemap-card:hover {

  transform: translateY(-5px);

  border-color: var(--primary);

  box-shadow: var(--shadow-md);

}

.sitemap-card h3 {

  font-family: var(--font-display);

  color: var(--primary);

  font-size: 22px;

  margin-bottom: 20px;

  padding-bottom: 12px;

  border-bottom: 2px solid var(--primary-light);

}

.sitemap-card ul {

  list-style: none;

}

.sitemap-card ul li {

  margin-bottom: 14px;

}

.sitemap-card ul li:last-child {

  margin-bottom: 0;

}

.sitemap-card ul li a {

  display: flex;

  align-items: center;

  gap: 10px;

  color: var(--text-muted);

  text-decoration: none;

  transition: var(--transition);

  font-size: 15px;

}

.sitemap-card ul li a::before {

  content: "›";

  color: var(--primary);

  font-size: 18px;

  font-weight: bold;

}

.sitemap-card ul li a:hover {

  color: var(--primary);

  padding-left: 8px;

} */

/*==========================
      Mobile
==========================*/

/* @media(max-width:768px) {

  .sitemap-grid {

    grid-template-columns: 1fr;

    gap: 20px;

  }

  .sitemap-card {

    padding: 22px;

  }

  .sitemap-card h3 {

    font-size: 20px;

  }

} */

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 860px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(22, 138, 160, 0.12);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner--hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
}

.cookie-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cookie-text p {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: left;
}

.cookie-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.cookie-links a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-links a:hover {
  color: var(--primary-dark);
}

.cookie-links span {
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: stretch;
  min-width: 130px;
}

.cookie-actions .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.cookie-accept {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(22, 138, 160, 0.35) !important;
}

.cookie-accept:hover {
  background: var(--primary-dark) !important;
}

/* Preferences panel */
.cookie-preferences {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 20px 28px 24px;
}

.cookie-preferences h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-pref-info strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.cookie-pref-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle .toggle-dot {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-toggle input:checked~.toggle-dot {
  transform: translateX(20px);
}

.cookie-toggle:has(input:checked) {
  background: var(--primary);
}

.cookie-toggle-disabled {
  cursor: not-allowed;
  background: var(--primary);
  opacity: 0.6;
}

.cookie-toggle-disabled .toggle-dot {
  transform: translateX(20px);
}

.cookie-pref-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-banner-inner {
    flex-direction: column;
    padding: 20px;
    gap: 14px;
  }

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

  .cookie-actions {
    flex-direction: row;
    min-width: unset;
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .cookie-preferences {
    padding: 16px 20px 20px;
  }
}