:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --green: #10b981;
  --orange: #f59e0b;
  --slate: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --max: 1200px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--slate);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  min-height: 76px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.nav-shell {
  width: min(100%, var(--max));
  min-height: 76px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-family: Nunito, Inter, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.brand-mark span {
  width: 22px;
  height: 22px;
  border: 6px solid var(--blue);
  border-right-color: var(--green);
  border-radius: 50%;
}

.brand-text { color: var(--slate); }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #0F172A;
  font-size: 16px;
  font-weight: 700;
}

.nav-menu a,
.footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.footer a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--blue);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-large {
  height: 56px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #f97316);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover { box-shadow: 0 22px 44px rgba(245, 158, 11, 0.35); }

.btn-secondary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.btn-outline {
  color: var(--blue);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.10);
}

.btn-ghost {
  color: var(--blue-dark);
  background: #eff6ff;
  border-color: #dbeafe;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #EEF6FF 0%, #F8FAFC 55%, #FFF7ED 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #5b21b6;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow: var(--soft-shadow);
  padding: 10px 16px;
  font-size: 0.96rem;
  font-weight: 900;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin: 24px 0 0;
  color: #0F172A;
  font-size: 60px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #475569;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-note span {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 800;
}

.student-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.96);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15,23,42,.14);
  padding: 32px;
}

.panel-glow {
  position: absolute;
  inset: -80px -80px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
}

.panel-top,
.student-card,
.goal-card,
.award-card,
.progress-head {
  display: flex;
  align-items: center;
}

.panel-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 16px;
}

.student-card {
  gap: 13px;
}

.avatar-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--blue), var(--green)) border-box;
  border: 8px solid transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.student-card p,
.goal-card p,
.award-card p,
.panel-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.student-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.streak {
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.goal-card {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
  border-radius: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  padding: 24px;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.25);
}

.goal-card p,
.goal-card span { color: rgba(255, 255, 255, 0.82); }

.goal-card strong {
  font-size: 2.1rem;
  line-height: 1;
}

.goal-card span {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.progress-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.progress-card {
  border: 1px solid #e0e7ff;
  border-radius: 22px;
  background: #ffffff;
  padding: 17px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.progress-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-weight: 900;
}

.progress-head span { color: var(--blue); }

.progress-card-purple .progress-head span { color: var(--purple); }

.progress-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.progress-card-purple .progress-bar span { background: linear-gradient(90deg, var(--orange), var(--purple)); }
.progress-math { width: 78%; }
.progress-turkish { width: 64%; }

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.panel-metrics article {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #f8fafc;
  padding: 18px;
}

.panel-metrics strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.8rem;
  line-height: 1;
}

.award-card {
  gap: 13px;
  margin-top: 16px;
  border: 1px solid #fde68a;
  border-radius: 24px;
  background: #fffbeb;
  padding: 18px;
}

.award-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fff7ed 0 24%, transparent 25%),
    conic-gradient(from 18deg, #f59e0b, #facc15, #f59e0b, #f97316, #f59e0b);
  box-shadow: inset 0 0 0 7px #fef3c7;
}

.award-card strong { display: block; margin-bottom: 4px; }

.stats-band {
  padding: 34px 0 12px;
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid article,
.grade-group,
.subject-grid article,
.feature-grid article,
.audience-grid article {
  border: 1px solid rgba(226, 232, 240, 0.94);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.stats-grid article {
  border-radius: 26px;
  padding: 24px;
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stats-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 78px 0;
  background: #ffffff;
}

.section-soft { background: #f8fafc; }

.section-head {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head .kicker { margin-inline: auto; }

.section-head h2 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.7;
}

.grade-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grade-group {
  border-radius: 30px;
  padding: 24px;
}

.grade-group h3 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grade-grid a {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  color: var(--blue-dark);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grade-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.16);
}

.subject-grid,
.feature-grid,
.audience-grid {
  display: grid;
  gap: 18px;
}

.subject-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subject-grid article {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  border-radius: 26px;
  padding: 24px;
  font-size: 1.08rem;
  font-weight: 900;
}

.subject-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--subject-accent, var(--blue));
}

.subject-grid article:nth-child(1) { --subject-accent: var(--blue); }
.subject-grid article:nth-child(2) { --subject-accent: var(--orange); }
.subject-grid article:nth-child(3) { --subject-accent: var(--purple); }
.subject-grid article:nth-child(4) { --subject-accent: var(--green); }
.subject-grid article:nth-child(5) { --subject-accent: #14b8a6; }
.subject-grid article:nth-child(6) { --subject-accent: #ec4899; }
.subject-grid article:nth-child(7) { --subject-accent: #8b5cf6; }
.subject-grid article:nth-child(8) { --subject-accent: #ef4444; }
.subject-grid article:nth-child(9) { --subject-accent: #0ea5e9; }
.subject-grid article:nth-child(10) { --subject-accent: #f59e0b; }
.subject-grid article:nth-child(11) { --subject-accent: #22c55e; }
.subject-grid article:nth-child(n+12) { --subject-accent: #6366f1; }

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.audience-grid article {
  border-radius: 30px;
  padding: 28px;
}

.feature-grid h3,
.audience-grid h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.feature-grid p,
.audience-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
}

.audience-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  padding: 13px 16px;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 0;
}

.footer-inner,
.footer nav {
  display: flex;
  align-items: center;
}

.footer-inner {
  justify-content: space-between;
  gap: 24px;
}

.footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 12px;
  }

  .menu-toggle { display: none; }

  .nav-menu {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

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

  .student-panel {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .grade-groups,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container,
  .nav-shell {
    width: min(100%, var(--max));
    padding-inline: 16px;
  }

  .nav-shell { gap: 14px; }

  .brand { font-size: 1.35rem; }

  .brand-mark { width: 38px; height: 38px; border-radius: 14px; }

  .nav-actions.open,
  .hero-actions,
  .hero-note,
  .panel-top,
  .award-card,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn,
  .hero-actions .btn { width: 100%; }

  .hero {
    padding: 56px 0 46px;
  }

  .hero-grid { gap: 34px; }

  h1 {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .student-panel {
    border-radius: 28px;
    padding: 18px;
  }

  .goal-card { padding: 20px; }

  .goal-card strong { font-size: 1.8rem; }

  .panel-metrics,
  .stats-grid,
  .grade-groups,
  .grade-grid,
  .subject-grid,
  .feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .stats-band { padding-top: 26px; }

  .section { padding: 62px 0; }

  .section-head {
    margin-bottom: 28px;
    text-align: left;
  }

  .section-head .kicker { margin-inline: 0; }

  .section-head h2 { font-size: 2.1rem; }

  .section-head p { font-size: 1.02rem; }

  .footer nav {
    justify-content: flex-start;
  }
}
