/* ---------- Tokens ---------- */
:root{
  --teal: #00E1B9;
  --teal-dark: #00B896;
  --teal-deep: #04342C;
  --mint: #EAFBF6;
  --mint-2: #DCF7F0;
  --ink: #0F172A;
  --ink-soft: #4B5A6B;
  --ink-faint: #8494A3;
  --white: #FFFFFF;
  --border: #E3EDEA;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1120px;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(4, 52, 44, 0.18);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus{
  left: 24px;
  top: 24px;
}

:focus-visible{
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--teal-dark);
  margin: 0 0 14px;
}
.eyebrow--light{ color: var(--teal-deep); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover{
  border-color: var(--teal-dark);
  color: var(--teal-deep);
  transform: translateY(-2px);
}
.btn-ghost{
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover{ border-color: var(--teal-dark); color: var(--teal-deep); }
.btn-small{ font-size: 14px; padding: 8px 16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.brand-mark{ height: 34px; width: auto; }
.brand-word em{ font-style: normal; color: var(--teal-dark); }

.main-nav{
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a{
  position: relative;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-cta a{
  color: var(--ink);
}
.header-cta svg{ color: var(--teal-dark); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding-top: 88px;
  overflow: hidden;
}
.hero-inner{
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 90px;
}
.hero-copy{ flex: 1 1 0; min-width: 320px; }
.hero-art{ flex: 1 1 0; min-width: 280px; }
.hero-copy h1{
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  max-width: 12.5ch;
}
.hero-lead{
  font-size: 17.5px;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags span{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--mint);
  border: 1px solid var(--mint-2);
  padding: 7px 13px;
  border-radius: 999px;
}

.hero-art{
  position: relative;
  width: 100%;
}
.hero-art::before{
  content: '';
  display: block;
  padding-top: 100%;
}
.badge-cluster{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.subj-badge{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.subj-badge svg{ width: 42%; height: 42%; }
.subj-badge--maths{
  width: 46%; height: 46%;
  top: 6%; left: 18%;
  background: var(--ink);
  color: var(--teal);
}
.subj-badge--science{
  width: 38%; height: 38%;
  top: 48%; left: 54%;
  background: var(--teal);
  color: var(--teal-deep);
  animation-delay: 1s;
}
.subj-badge--english{
  width: 32%; height: 32%;
  top: 60%; left: 4%;
  background: var(--white);
  border: 2px solid var(--mint-2);
  color: var(--teal-deep);
  animation-delay: 0.5s;
}
.hero-ring{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-ring circle{
  fill: none;
  stroke: var(--mint-2);
  stroke-width: 1.5;
  stroke-dasharray: 3 10;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

.wing-divider{
  display: block;
  width: 100%;
  height: 44px;
}
.wing-divider path{
  fill: none;
  stroke: var(--mint-2);
  stroke-width: 2;
}
.wing-divider--top{
  position: absolute;
  top: -1px;
  left: 0;
}

/* ---------- About ---------- */
.about{
  background: var(--mint);
  padding: 96px 0;
}
.about-inner{
  display: flex;
  gap: 56px;
  align-items: center;
}
.about-figure{ flex: 0 0 34%; }
.about-copy{ flex: 1 1 0; min-width: 320px; }
.figure-frame{
  position: relative;
  background: var(--white);
  border: 1px solid var(--mint-2);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.figure-frame::before{
  content: '';
  display: block;
  padding-top: 100%;
}
.progress-art{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 72%;
  height: 72%;
  margin: auto;
}
.about-copy h2{
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  max-width: 16ch;
}
.about-copy p{ max-width: 56ch; }

/* ---------- Subjects ---------- */
.subjects{ padding: 100px 0 90px; }
.section-head{
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.section-lead{ font-size: 16.5px; }

.subject-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.subject-card{
  flex: 1 1 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.subject-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--mint-2);
}
.subject-card--featured{
  /* deprecated: GCSE card no longer visually singled out per feedback */
}

.subject-mark{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.subject-card h3{ font-size: 19px; margin-bottom: 8px; }
.subject-card p{ font-size: 14.5px; margin: 0; }

.subject-note{
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--ink-faint);
}

/* ---------- Why ---------- */
.why{
  position: relative;
  background: var(--teal-deep);
  padding: 110px 0 96px;
}
.why .eyebrow{ color: var(--teal); }
.why h2{ color: var(--white); }
.why .section-head p{ color: #AEDBD1; }

.why-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.why-list li{
  flex: 1 1 calc(50% - 20px);
  min-width: 260px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-list svg{
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--teal);
  background: rgba(0,225,185,0.12);
  border-radius: 50%;
  padding: 6px;
  box-sizing: content-box;
  margin-top: 2px;
}
.why-list h3{
  color: var(--white);
  font-size: 16.5px;
  margin-bottom: 4px;
}
.why-list p{
  color: #AEC7C1;
  font-size: 14.5px;
  margin: 0;
}

/* ---------- How it works ---------- */
.how{ padding: 100px 0; }
.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  counter-reset: step;
}
.steps li{
  flex: 1 1 260px;
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.step-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.steps h3{ font-size: 18px; margin-bottom: 8px; }
.steps p{ font-size: 14.5px; margin: 0; max-width: 32ch; }

/* ---------- Contact ---------- */
.contact{
  background: var(--teal);
  padding: 84px 0;
}
.contact-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-copy{ max-width: 480px; }
.contact-copy h2{
  color: var(--teal-deep);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.contact-copy p{ color: var(--teal-deep); opacity: 0.85; margin: 0; }

.contact-methods{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-method{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 260px;
}
.contact-method svg{ width: 19px; height: 19px; color: var(--teal-dark); flex: none; }
.contact-method:hover{
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 16px 30px -14px rgba(4,52,44,0.35);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  padding: 48px 0 36px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.brand--footer{ color: var(--white); }
.footer-tag{ color: #98A6B5; font-size: 14px; margin: 0; }
.footer-social{ display: flex; gap: 20px; }
.footer-social a{ color: #C9D2DB; font-size: 14px; font-weight: 500; }
.footer-social a:hover{ color: var(--teal); }
.footer-copy{ color: #64758A; font-size: 12.5px; margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .main-nav{ display: none; }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }

  .site-header.nav-open .main-nav{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }

  .hero-inner{ flex-direction: column; padding-bottom: 60px; }
  .hero-art{ order: -1; max-width: 260px; margin: 0 auto; }

  .about-inner{ flex-direction: column; }
  .about-figure{ flex-basis: auto; width: 100%; }
  .figure-frame{ max-width: 260px; margin: 0 auto; }

  .why-list li{ flex-basis: 100%; }

  .contact-inner{ align-items: flex-start; }
  .contact-method{ min-width: 0; }
}

@media (max-width: 560px){
  .header-inner{ padding-top: 12px; padding-bottom: 12px; }
}
