:root {
  --dark: #0f1923;
  --dark2: #162230;
  --teal: #028090;
  --teal-deep: #0d5c63;
  --mint: #02c39a;
  --mint-light: #d4f5e9;
  --cream: #f5f8f7;
  --white: #ffffff;
  --gray: #7f8c8d;
  --text: #2c3e50;
  --accent: #f39c12;
  --red: #e74c3c;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.lang-btn {
  padding: 0.45rem 1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  color: rgba(255,255,255,0.5);
  background: transparent;
}
.lang-btn.active {
  background: var(--mint);
  color: var(--dark);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(15,25,35,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--mint); }
.nav-cta {
  background: var(--mint) !important;
  color: var(--dark) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(2,195,154,0.4); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-deep) 50%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,195,154,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,128,144,0.15) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}
/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 2rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(2,195,154,0.15);
  border: 1px solid rgba(2,195,154,0.3);
  color: var(--mint);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease-out;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: white;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.15s both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--mint) 0%, #5efce8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-white {
  color: white;
  -webkit-text-fill-color: white;
  background: none;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.45s both;
}
.btn-primary {
  background: var(--mint);
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(2,195,154,0.35); }
.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--mint); color: var(--mint); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 650px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== PROBLEM ===== */
#problem { background: var(--white); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.problem-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}
.problem-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}
.problem-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
}
.problem-card p {
  color: var(--gray);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== SOLUTION ===== */
#solution {
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}
#solution::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,195,154,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
}
#solution .section-label { color: var(--mint); }
#solution .section-title { color: white; }
#solution .section-desc { color: rgba(255,255,255,0.5); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.4s;
}
.feature-card:hover {
  background: rgba(2,195,154,0.08);
  border-color: rgba(2,195,154,0.2);
  transform: translateY(-3px);
}
.feature-icon {
  width: 50px; height: 50px;
  min-width: 50px;
  background: rgba(2,195,154,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ===== HOW IT WORKS ===== */
#how { background: var(--cream); }
.steps-container {
  display: flex;
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 42px;
  right: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  border-radius: 2px;
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.8rem;
}
.step-num {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(2,128,144,0.3);
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== PEDAGOGY ===== */
#pedagogy { background: white; }
.pedagogy-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3.5rem;
  align-items: start;
}
.pedagogy-left {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-radius: 20px;
  padding: 3rem;
  color: white;
  text-align: center;
}
.pedagogy-left h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pedagogy-left p {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.8;
  line-height: 1.5;
}
.pedagogy-left .ped-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.does-not h4 {
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.does-yes h4 {
  color: var(--mint);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.ped-list {
  list-style: none;
  margin-bottom: 2rem;
}
.ped-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
}
.ped-x { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.ped-check { color: var(--mint); font-weight: 700; font-size: 1.2rem; }
.ped-divider {
  height: 1px;
  background: var(--cream);
  margin: 0.5rem 0 1.5rem;
}

/* ===== REPORTS ===== */
#reports { background: var(--cream); }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.report-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.report-header {
  padding: 2rem;
  text-align: center;
  color: white;
  font-size: 2.5rem;
}
.report-card:nth-child(1) .report-header { background: var(--teal); }
.report-card:nth-child(2) .report-header { background: var(--teal-deep); }
.report-card:nth-child(3) .report-header { background: var(--dark); }
.report-body { padding: 2rem; }
.report-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.report-body p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.report-tag {
  display: inline-block;
  background: var(--mint-light);
  color: var(--teal-deep);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== PLATFORM ===== */
#platform { background: var(--white); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.platform-card {
  grid-column: span 2;
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.09);
}
.platform-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.icon-teacher { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.icon-student { background: linear-gradient(135deg, var(--mint), #5efce8); }
.icon-parent { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.icon-gamify { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.platform-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.role-teacher { background: rgba(2,128,144,0.12); color: var(--teal-deep); }
.role-student { background: rgba(2,195,154,0.12); color: var(--teal); }
.role-parent { background: rgba(243,156,18,0.18); color: #9a6310; }
.platform-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.7rem;
}
.platform-card p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.65;
}
.platform-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.2rem;
}
.platform-roles .platform-role { margin-bottom: 0; }
.icon-analytics { background: linear-gradient(135deg, var(--dark), var(--teal-deep)); }
.role-admin { background: rgba(15,25,35,0.09); color: var(--dark); }

/* ===== PLANS ===== */
#plans {
  background: var(--dark);
  color: white;
}
#plans .section-label { color: var(--mint); }
#plans .section-title { color: white; }
#plans .section-desc { color: rgba(255,255,255,0.5); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  max-width: 850px;
}
.plan-card {
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured {
  background: white;
  color: var(--dark);
}
.plan-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), #f1c40f);
}
.plan-card.standard {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.plan-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.plan-subtitle {
  font-size: 0.9rem;
  opacity: 0.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.plan-features {
  list-style: none;
}
.plan-features li {
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.plan-features li::before {
  content: '✓';
  color: var(--mint);
  font-weight: 700;
  font-size: 1.1rem;
}
.plan-card.featured .plan-features li { color: var(--text); }
.plan-card.standard .plan-features li { color: rgba(255,255,255,0.7); }

/* ===== CTA ===== */
#cta {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,195,154,0.15) 0%, transparent 70%);
  bottom: -200px; right: -100px;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.cta-email {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .problem-grid, .reports-grid, .platform-grid { grid-template-columns: 1fr; }
  .platform-card { grid-column: span 1; }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 450px; }
  .pedagogy-split { grid-template-columns: 1fr; gap: 2rem; }
  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }
  .steps-container::before { display: none; }
  .nav-links a, .nav-links .nav-cta { display: none; }
  .nav-links { gap: 0; }
  .nav-links .lang-toggle { display: flex; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
