:root {
  /* --- Palette --- */
  --bg:          #f8f7ff;
  --bg-alt:      #eeedf8;
  --surface:     #ffffff;
  --text:        #1e1b4b;
  --text-muted:  #6b6394;
  --primary:     #6c5ce7;
  --primary-dk:  #5641d4;
  --secondary:   #ff6b6b;
  --accent:      #00cec9;
  --accent-alt:  #fdcb6e;
  --border:      #e2dff5;

  /* --- Typography --- */
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;

  /* --- Sizing --- */
  --container:  1080px;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(30, 27, 75, .07);
  --shadow-lg:  0 12px 40px rgba(30, 27, 75, .12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ──────────────────── Reset & Base ──────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }

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

/* ──────────────────── Layout ──────────────────── */

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

/* ──────────────────── Navigation ──────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 255, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}


.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--text);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* ──────────────────── Hero ──────────────────── */

.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,206,201,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: .5px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

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

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat span {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ──────────────────── Sections ──────────────────── */

.section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ──────────────────── Cards ──────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card-icon.purple  { background: rgba(108,92,231,.1);  color: var(--primary); }
.card-icon.coral   { background: rgba(255,107,107,.1); color: var(--secondary); }
.card-icon.teal    { background: rgba(0,206,201,.1);   color: var(--accent); }
.card-icon.gold    { background: rgba(253,203,110,.15); color: #e17d0a; }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ──────────────────── Track pills ──────────────────── */

.track-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid;
}

.pill.coding    { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }
.pill.gamedev   { color: #9333ea; border-color: #e9d5ff; background: #faf5ff; }
.pill.maths     { color: #ea580c; border-color: #fed7aa; background: #fff7ed; }
.pill.industry  { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }

/* ──────────────────── About strip ──────────────────── */

.about-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

.about-text { flex: 1; }
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-badge {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge strong {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
}

.about-badge span {
  font-size: .85rem;
  opacity: .9;
}

/* ──────────────────── CTA ──────────────────── */

.cta-section {
  text-align: center;
  padding: 72px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #4834d4 100%);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 24px 72px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.cta-section p {
  opacity: .85;
  max-width: 500px;
  margin: 0 auto 28px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

/* ──────────────────── Footer ──────────────────── */

.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 10px;
}


.footer-brand p {
  font-size: .9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .82rem;
}

/* ──────────────────── Form (Feedback page) ──────────────────── */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,206,201,.12);
  color: var(--accent);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
}

/* ──────────────────── Legal page ──────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--primary);
}

.legal p, .legal li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal li { margin-bottom: 6px; }

/* ──────────────────── Responsive ──────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }

  .hero { padding: 56px 24px 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.5rem; }

  .about-inner { flex-direction: column; text-align: center; }
  .about-badge { width: 160px; height: 160px; }
  .about-badge strong { font-size: 2rem; }

  .footer-inner { flex-direction: column; }

  .form-card { padding: 28px 20px; }

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