*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: var(--main); --dark: #1a1a1a; --purple: var(--main);
  --green: #a5c701; --yellow: #f9ae44; --red: var(--main);
}
body { font-family: 'Nunito', sans-serif; color: var(--dark); background: #fff; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #e3e3e3; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 36px; height: 36px; background: url('/img/brand/logomark.png') center/contain no-repeat; flex: none; }
.nav-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-link { font-weight: 700; font-size: 15px; color: #a7a7a7; text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: background .15s; }
.nav-link:hover { background: #eaf6f8; color: var(--blue); }
.btn-nav-join { font-weight: 800; font-size: 15px; color: var(--main-text); text-decoration: none; padding: 10px 20px; background: var(--blue); border-radius: 12px; transition: opacity .15s; }
.btn-nav-join:hover { opacity: .88; }

/* HERO */
.hero { max-width: 1140px; margin: 0 auto; padding: 80px 24px 60px; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.hero-inner { display: flex; flex-direction: column; gap: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #eaf6f8; color: var(--blue); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 100px; width: fit-content; letter-spacing: .3px; }
.hero-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(38px, 6vw, 60px); line-height: 1.1; color: var(--dark); }
.hero-sub { font-size: 17px; color: #a7a7a7; line-height: 1.65; max-width: 480px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--main-text); text-decoration: none; font-weight: 800; font-size: 16px; padding: 14px 28px; border-radius: 14px; transition: opacity .15s; }
.btn-hero-primary:hover { opacity: .88; }
.btn-hero-secondary { font-weight: 800; font-size: 16px; color: var(--blue); text-decoration: none; padding: 14px 20px; border-radius: 14px; border: 2.5px solid #dff2f5; transition: background .15s; }
.btn-hero-secondary:hover { background: #eaf6f8; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust span { font-size: 13px; font-weight: 700; color: #a7a7a7; }

/* PHONE MOCKUP */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { width: 260px; background: var(--dark); border-radius: 36px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.28); }
.pm-bar { display: flex; justify-content: space-between; padding: 10px 20px 6px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7); }
.pm-body { background: #fafafa; padding: 20px 16px 24px; }
.pm-wave { display: flex; justify-content: center; margin-bottom: 12px; }
.pm-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 22px; color: var(--dark); margin-bottom: 4px; }
.pm-sub { font-size: 12px; color: #a7a7a7; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.pm-field-label { font-size: 10px; font-weight: 800; color: #a7a7a7; letter-spacing: .7px; margin-bottom: 4px; }
.pm-field { background: #fff; border: 2px solid #e3e3e3; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 14px; color: var(--dark); }
.pm-code-boxes { display: flex; gap: 6px; margin-bottom: 14px; }
.pm-box { width: 32px; height: 36px; background: #fff; border: 2px solid var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px; color: var(--blue); }
.pm-btn { background: var(--blue); color: var(--main-text); text-align: center; padding: 10px; border-radius: 12px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.pm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 100px; }
.chip.blue { background: #dff2f5; color: var(--main-dark); }
.chip.green { background: #eef6cf; color: #6f8a00; }
.chip.yellow { background: #fdeccb; color: #c87f1e; }

/* SECTIONS */
.section-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--blue); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(26px,4vw,40px); color: var(--dark); margin-bottom: 40px; line-height: 1.15; }

/* ROLES */
.roles { background: #fafafa; padding: 80px 24px; }
.roles-inner { max-width: 1140px; margin: 0 auto; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-card { background: #fff; border-radius: 22px; padding: 32px 28px; border: 2px solid #e3e3e3; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s; }
.role-card:hover { box-shadow: 0 12px 40px rgba(var(--main-rgb),.12); }
.role-icon { font-size: 36px; }
.role-card h3 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 22px; color: var(--dark); }
.role-card p { font-size: 14px; color: #a7a7a7; line-height: 1.6; }
.role-features { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.role-features li { font-size: 13px; font-weight: 700; color: #a7a7a7; }
.role-btn { display: inline-block; text-align: center; text-decoration: none; font-weight: 800; font-size: 14px; padding: 11px 20px; border-radius: 12px; transition: opacity .15s; margin-top: 4px; }
.role-btn-student { background: #eef6cf; color: var(--green); }
.role-btn-teacher { background: #eaf6f8; color: var(--blue); }
.role-btn-admin { background: #fbe7e5; color: var(--purple); }
.role-btn:hover { opacity: .8; }

/* HOW */
.how { padding: 80px 24px; }
.how-inner { max-width: 1140px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: start; }
.step { padding: 0 8px; }
.step-num { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 36px; color: #dff2f5; margin-bottom: 10px; }
.step h4 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: #a7a7a7; line-height: 1.6; }
.step-arrow { font-size: 22px; color: #d8d8d8; align-self: center; padding: 0 8px; margin-top: -20px; }

/* ABOUT PAGE */
.about-hero { padding: 80px 24px 40px; }
.about-hero-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.about-blurb { font-size: 15px; color: #a7a7a7; line-height: 1.7; max-width: 640px; margin: -20px auto 40px; text-align: center; }

/* DEVELOPERS */
.devs { padding: 80px 24px; background: #fafafa; }
.devs-inner { max-width: 1140px; margin: 0 auto; text-align: center; }
.devs .section-label, .devs .section-title { text-align: left; }
.devs-grid { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.dev-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 200px; }
.dev-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #dff2f5; margin-bottom: 8px; }
.dev-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; color: var(--dark); }
.dev-role { font-size: 13px; font-weight: 700; color: #a7a7a7; }

/* PARTNERS */
.partners { padding: 80px 24px; }
.partners-inner { max-width: 1140px; margin: 0 auto; }
.partners-grid { display: flex; justify-content: center; align-items: flex-start; gap: 56px; flex-wrap: wrap; }
.partner-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.partner-logo { width: 120px; height: 120px; object-fit: contain; }
.partner-caption { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.partner-name { font-size: 14px; font-weight: 800; color: var(--dark); }
.partner-role { font-size: 12px; font-weight: 700; color: #a7a7a7; }

/* FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 40px 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; flex: 1; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.6); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); width: 100%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* Phones: the nav's three links overflow a ~375px bar. Keep the brand + primary
   CTA; About and Teacher/Admin remain reachable from the hero CTAs and footer. */
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 8px; }
  .nav-link { display: none; }
  .btn-nav-join { font-size: 14px; padding: 9px 16px; }
  .nav-name { font-size: 18px; }
  .hero { padding: 40px 20px 40px; }
}

/* Brand display font (Super Squad) */
.nav-name, .footer-brand, .hero-title, .section-title { font-family: 'Super Squad', 'Helvetica', sans-serif !important; letter-spacing: .5px; }
