:root {
  --bg: #f4f8fb;
  --panel: #ffffff;
  --text: #102033;
  --muted: #5d6b7a;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #2563eb;
  --border: #d9e4ec;
  --soft: #e8f5f3;
  --shadow: 0 18px 45px rgba(15, 35, 52, 0.12);
  --shadow-strong: 0 30px 70px rgba(15, 35, 52, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at 90% 30%, rgba(15, 118, 110, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HERO */

.hero {
  min-height: 82vh;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.30), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.28), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.18), transparent 25%),
    linear-gradient(135deg, #eef8ff 0%, #f5fffb 50%, #f4f8ff 100%);
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 35, 52, 0.08);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.nav-link {
  font-weight: 800;
  color: var(--secondary);
}

.nav-link:hover {
  color: var(--primary-dark);
}

.hero-content {
  max-width: 1050px;
  margin: 92px auto 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
  max-width: 980px;
  margin-inline: auto;
}

.hero-text {
  max-width: 820px;
  margin: 26px auto 0;
  font-size: 1.22rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mini-stats {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mini-stats span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.95rem;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(15, 35, 52, 0.08);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: 0.22s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.30);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border-color: rgba(217, 228, 236, 0.9);
}

.btn.secondary:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn.small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

/* LAYOUT */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 76px;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -86px;
  position: relative;
  z-index: 2;
}

.intro-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.intro-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
}

/* SECTION HEADINGS */

.sim-section,
.benefits-section,
.stats-section,
.teacher-quickstart,
.learning-section {
  margin-top: 74px;
}

.section-heading {
  max-width: 780px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2,
.teacher-box h2,
.quickstart-content h2,
.stats-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.section-heading p,
.teacher-box p,
.quickstart-content p,
.stats-heading p {
  color: var(--muted);
}

/* BENEFITS */

.benefits-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-card,
.learning-card,
.guide-card,
.detail-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 228, 236, 0.85);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 32px rgba(15, 35, 52, 0.08);
  transition: 0.22s ease;
  backdrop-filter: blur(10px);
}

.benefit-card:hover,
.learning-card:hover,
.guide-card:hover,
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.benefit-card h3,
.learning-card h3,
.guide-card h3,
.detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.benefit-card p,
.learning-card p,
.guide-card p,
.detail-card p,
.detail-card li {
  margin: 0;
  color: var(--muted);
}

/* STATS */

.stats-wrap {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0f766e, #2563eb);
  border-radius: 32px;
  padding: 44px 30px;
  color: white;
  box-shadow: var(--shadow-strong);
}

.stats-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.stats-heading .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.stats-heading p {
  color: rgba(255, 255, 255, 0.88);
}

.stats-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-number {
  font-size: 2.55rem;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

/* QUICKSTART */

.teacher-quickstart {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 228, 236, 0.9);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.quickstart-content {
  max-width: 800px;
}

.quickstart-steps {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quickstep-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  transition: 0.22s ease;
}

.quickstep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 35, 52, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 14px;
}

.quickstep-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.quickstep-card p {
  margin: 0;
  color: var(--muted);
}

.step-time {
  display: inline-block;
  margin-top: 16px;
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.85rem;
}

/* LEARNING */

.learning-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* CONTROLS */

.controls {
  margin-top: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 228, 236, 0.9);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(15, 35, 52, 0.07);
  backdrop-filter: blur(10px);
}

#searchInput {
  min-width: 280px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 1rem;
  outline: none;
  background: white;
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  border-color: transparent;
}

/* SIMULATION CARDS */

.cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sim-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 228, 236, 0.86);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 35, 52, 0.10);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: 0.25s ease;
  overflow: hidden;
}

.sim-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 35, 52, 0.16);
}

.card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 900;
}

.subject {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.sim-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  margin-top: 16px;
  border: 1px solid rgba(217, 228, 236, 0.95);
  background: #f8fafc;
  box-shadow: 0 14px 28px rgba(15, 35, 52, 0.10);
}

.sim-card h3 {
  margin: 18px 0 10px;
  font-size: 1.58rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sim-card p {
  color: var(--muted);
  margin: 0;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tags span {
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 800;
}

.card-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.no-results {
  margin-top: 24px;
  padding: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: var(--radius);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

/* TEACHER BOX */

.teacher-box {
  margin-top: 74px;
  padding: 44px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.20), transparent 28%),
    linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  border-radius: 36px;
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-strong);
}

.teacher-box h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.teacher-box p {
  margin-top: 18px;
  color: rgba(255,255,255,0.90);
  font-size: 1.1rem;
  max-width: 760px;
}

.teacher-box .eyebrow {
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
}

.teacher-box .btn.primary {
  background: white;
  color: #0f172a;
  padding: 18px 26px;
  min-width: 220px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.teacher-box .btn.primary:hover {
  transform: translateY(-4px);
}

/* GUIDE PAGE */

.guide-hero {
  min-height: 58vh;
}

.guide-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-card {
  margin-top: 24px;
}

.detail-card h4 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.prompt-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: 18px;
  padding: 18px;
  color: #334155;
  font-weight: 700;
}

/* FOOTER */

footer {
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
}

/* ANIMATIONS */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .quickstart-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 850px) {
  .intro,
  .cards,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    margin-top: -40px;
  }

  .teacher-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    border-radius: 24px;
  }

  .hero-content {
    margin-top: 60px;
  }

  .sim-card {
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .benefits-grid,
  .learning-grid,
  .stats-grid,
  .quickstart-steps {
    grid-template-columns: 1fr;
  }

  .stats-wrap,
  .teacher-quickstart {
    padding: 30px 18px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 16px;
    min-height: auto;
  }

  main {
    padding-inline: 16px;
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero-content {
    margin-top: 46px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .controls {
    align-items: stretch;
  }

  #searchInput {
    min-width: 100%;
  }

  .filter-btn,
  .btn {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
  }

  .sim-preview {
    height: 170px;
  }

  .intro-card,
  .benefit-card,
  .learning-card,
  .sim-card,
  .guide-card,
  .detail-card {
    padding: 20px;
    border-radius: 22px;
  }
}


.ekoolikott-box {
  margin-top: 80px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.ek-short,
.ek-long {
  margin-top: 18px;
  background: #f8fafc;
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  padding: 20px;
}

.ek-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.ekoolikott-premium {
  margin-top: 80px;
}

.ek-header {
  max-width: 780px;
}

.ek-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.ek-header p {
  color: var(--muted);
}

.ek-panel {
  margin-top: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(217,228,236,0.9);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.ek-short {
  background: linear-gradient(135deg, #f8fafc, #eef8ff);
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: 22px;
  padding: 22px;
}

.ek-short h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.ek-short p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.ek-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ek-long-premium {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.ek-long-premium.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 22px;
}

.ek-long-inner {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 24px;
}

.ek-long-premium.open .ek-long-inner {
  padding: 24px;
}

.ek-long-inner h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.ek-long-inner h4 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.ek-long-inner p,
.ek-long-inner li {
  color: var(--muted);
}

.ek-long-inner ul {
  margin-top: 8px;
}

.contest-tag {
  display: inline-block;
  margin-top: 12px;
  background: var(--soft);
  color: var(--primary-dark) !important;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

@media (max-width: 620px) {
  .ek-panel {
    padding: 20px;
  }

  .ek-long-inner {
    padding: 0 18px;
  }

  .ek-long-premium.open .ek-long-inner {
    padding: 20px 18px;
  }
}

.hero-trust {
  margin-top: 18px;
  color: #334155;
  font-weight: 800;
  font-size: 1rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #0f172a;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ready-pill {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.final-cta {
  margin-top: 80px;
  padding: 44px 28px;
  text-align: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.final-cta p {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--muted);
}


@media (max-width: 900px) {
  .teacher-box {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .teacher-box .btn.primary {
    width: 100%;
  }

  .teacher-box h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}


/* FINAL MICROTYPOGRAPHY POLISH */

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p {
  max-width: 72ch;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.quickstart-content p,
.stats-heading p,
.final-cta p {
  text-wrap: pretty;
}

.eyebrow {
  letter-spacing: 0.11em;
}

.sim-card h3,
.benefit-card h3,
.learning-card h3,
.quickstep-card h3,
.guide-card h3,
.detail-card h3 {
  letter-spacing: -0.025em;
}

.sim-card p,
.benefit-card p,
.learning-card p,
.quickstep-card p,
.intro-card p,
.detail-card p,
.detail-card li {
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-text {
  line-height: 1.7;
}

.badge,
.subject,
.tags span,
.step-time,
.ready-pill,
.hero-mini-stats span,
.stat-label {
  letter-spacing: 0.01em;
}

.btn {
  letter-spacing: -0.01em;
}

input::placeholder {
  color: #7b8794;
}

.ek-long-inner p,
.ek-long-inner li,
.ek-short p {
  line-height: 1.7;
}

.ek-long-inner h4 {
  letter-spacing: -0.02em;
}

footer p {
  max-width: none;
  font-size: 0.95rem;
}