:root {
  --sand: #f4ecd8;
  --sand-deep: #e7d9b8;
  --sea: #1b6f7a;
  --sea-deep: #0f4a52;
  --sea-light: #2e97a3;
  --shell: #c8772e;
  --ink: #1f2a2c;
  --muted: #5c6b6d;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- AI / human confirmation gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--sea-deep), var(--sea));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  transition: opacity .4s ease;
}
.gate.hidden { opacity: 0; pointer-events: none; }

.gate-card {
  background: var(--white);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.gate-card .badge {
  font-size: 2.4rem;
  line-height: 1;
}
.gate-card h2 { margin: .8rem 0 .4rem; font-size: 1.4rem; }
.gate-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }

.check-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: center;
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: 10px;
  padding: .9rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, background .2s ease;
}
.check-row:hover { border-color: var(--sea-light); }
.check-row input { width: 20px; height: 20px; accent-color: var(--sea); cursor: pointer; }
.check-row label { cursor: pointer; font-weight: 600; }

.gate-btn {
  margin-top: 1.3rem;
  width: 100%;
  padding: .85rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--sea);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.gate-btn:disabled { opacity: .45; cursor: not-allowed; }
.gate-btn:not(:disabled):hover { background: var(--sea-deep); }
.gate-note { margin-top: 1rem; font-size: .78rem; color: var(--muted); }

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--sand-deep);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--sea-deep); }
.logo:hover { text-decoration: none; }
.logo .mark { font-size: 1.5rem; }
nav a { margin-left: 1.4rem; font-weight: 600; color: var(--ink); }
.nav-cta {
  background: var(--sea);
  color: var(--white) !important;
  padding: .55rem 1rem;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--sea-deep); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% -20%, rgba(46,151,163,.25), transparent 60%),
    var(--sand);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--sea-deep); margin-bottom: 1rem; }
.hero p { max-width: 640px; margin: 0 auto 1.8rem; font-size: 1.15rem; color: var(--muted); }
.hero .actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}
.btn-primary { background: var(--sea); color: var(--white); }
.btn-primary:hover { background: var(--sea-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--sea-deep); border: 2px solid var(--sea-light); }
.btn-ghost:hover { background: rgba(46,151,163,.1); text-decoration: none; }

/* ---------- Quick navigation (above How it works) ---------- */
.quicknav { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem 0; }
.quicknav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.qbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 14px;
  padding: 1.5rem 1.3rem;
  text-align: center;
  color: var(--sea-deep);
  font-weight: 700;
  transition: border-color .2s ease, transform .2s ease;
}
.qbtn:hover { border-color: var(--sea-light); transform: translateY(-2px); text-decoration: none; }
.qbtn .qbtn-icon { font-size: 1.8rem; }
.qbtn .qbtn-title { font-size: 1.05rem; }
.qbtn .qbtn-sub { font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
section.content { max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; }
section.content h2 { text-align: center; color: var(--sea-deep); font-size: 1.9rem; margin-bottom: 2.4rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.card .icon { font-size: 2rem; }
.card h3 { margin: .8rem 0 .5rem; color: var(--sea-deep); }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Article prose (Mission, Education, Get involved) ---------- */
.prose { max-width: 720px; margin: 0 auto; text-align: left; }
.prose p { margin-bottom: 1.1rem; }
.prose h3 { color: var(--sea-deep); margin: 1.8rem 0 .6rem; font-size: 1.25rem; }
.prose ul { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  background: var(--sea-deep);
  color: var(--sand);
  text-align: center;
  padding: 2.4rem 2rem;
  font-size: .9rem;
}
footer a { color: var(--sand); text-decoration: underline; }
footer .small { opacity: .7; font-size: .8rem; margin-top: .6rem; }

/* ---------- Section option buttons (e.g. Education levels) ---------- */
.level-nav { max-width: 720px; margin: 0 auto 2.5rem; }