/* ═══════════════ Design tokens ═══════════════ */
:root {
  --cream:#F4ECDA; --cream2:#EFE6D0; --card:#FFFFFF; --offwhite:#FBF6EC;
  --ink:#1E2620; --inkSoft:#3A453C; --muted:#6E7669; --faint:#9AA194;
  --green:#3E9B54; --greenDk:#2C7C40; --greenT:#E3EFD8; --greenT2:#D3E6C4;
  --orange:#EC7A2C; --orangeDk:#D9661A; --orangeT:#FBE6CF; --orangeT2:#F7D5AE;
  --teal:#5FAFAE; --coral:#E06A60; --lime:#B7CF4F;
  --black:#161A14; --hair:rgba(30,38,32,.12); --subtle:rgba(30,38,32,.06);
  --shadow-card:0 8px 22px rgba(30,38,32,.06);
  --shadow-cta:0 10px 22px rgba(22,26,20,.22);
  --shadow-soft:0 6px 16px rgba(30,38,32,.10);
  --maxw:1160px; --pad:40px; --radius-pill:999px;
  --disp:"Saira Condensed", sans-serif;
  --body:"Nunito", sans-serif;
  --hand:"Caveat", cursive;
}
:root[data-theme="dark"] {
  --cream:#15180F; --cream2:#1C2014; --card:#23271B; --offwhite:#2A2F22;
  --ink:#ECE7D8; --inkSoft:#C7C2B2; --muted:#9A9484; --faint:#6E6A5C;
  --green:#54B86B; --greenDk:#43A258; --greenT:#22301A; --greenT2:#2E3D22;
  --orange:#F2873C; --orangeDk:#F2A05A; --orangeT:#3A2A18; --orangeT2:#46331D;
  --teal:#6BBFBE; --coral:#E8776D; --lime:#C6DC5E;
  --black:#0F120C; --hair:rgba(245,240,228,.16); --subtle:rgba(245,240,228,.08);
  --shadow-card:0 8px 22px rgba(0,0,0,.28);
  --shadow-cta:0 10px 22px rgba(0,0,0,.4);
  --shadow-soft:0 6px 16px rgba(0,0,0,.3);
}

/* ═══════════════ Base ═══════════════ */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--body); background:var(--cream); color:var(--ink);
  -webkit-font-smoothing:antialiased; line-height:1.55;
  transition:background .3s ease, color .3s ease;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }

.container { max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }
.display { font-family:var(--disp); text-transform:uppercase; }

.eyebrow {
  display:inline-block; font-family:var(--disp); font-weight:700; text-transform:uppercase;
  letter-spacing:.16em; font-size:14px; margin-bottom:14px;
}
.eyebrow-green { color:var(--greenDk); }
.eyebrow-orange { color:var(--orangeDk); }

.section-title { font-weight:800; font-size:46px; line-height:1.0; letter-spacing:.01em; color:var(--ink); }
.section-sub { font-size:18px; line-height:1.6; color:var(--inkSoft); font-weight:600; max-width:600px; margin:20px auto 0; }

/* ═══════════════ Buttons ═══════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--body); font-weight:800; font-size:16px;
  border-radius:var(--radius-pill); padding:15px 26px; cursor:pointer;
  border:2px solid transparent; transition:transform .12s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:hover { transform:translateY(-1px); }
.dl-icon { display:inline-flex; align-items:center; }
.btn-green { background:var(--green); color:#fff; box-shadow:0 10px 22px rgba(30,38,32,.18); }
.btn-green:hover { background:var(--greenDk); }
.btn-dark { background:var(--black); color:#fff; box-shadow:var(--shadow-cta); }
:root[data-theme="dark"] .btn-dark { background:var(--ink); color:var(--cream); }
.btn-ghost { background:#fff; color:#161A14; border-color:rgba(30,38,32,.12); }
.btn-ghost:hover { border-color:var(--green); }

/* ═══════════════ Nav ═══════════════ */
.nav {
  position:sticky; top:0; z-index:50; height:82px; display:flex; align-items:center;
  background:color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:inset 0 -1px 0 var(--hair);
}
.nav-inner { width:100%; display:flex; align-items:center; justify-content:space-between; }
.wordmark { display:flex; align-items:center; gap:8px; }
.logo { display:flex; }
.wordmark-text { font-family:var(--disp); font-weight:800; font-size:24px; letter-spacing:.02em; text-transform:uppercase; color:var(--ink); }
.wordmark-text .accent { color:var(--green); }
.nav-controls { display:flex; align-items:center; gap:14px; }
.icon-toggle {
  width:34px; height:34px; border-radius:var(--radius-pill); border:none;
  background:var(--subtle); color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease;
}
.icon-toggle:hover { background:var(--hair); }
.icon-moon { display:none; }
:root[data-theme="dark"] .icon-sun { display:none; }
:root[data-theme="dark"] .icon-moon { display:flex; }
.lang-toggle { display:flex; background:var(--subtle); border-radius:var(--radius-pill); padding:3px; gap:2px; }
.lang-btn {
  font-family:var(--body); font-weight:800; font-size:13px; color:var(--muted);
  border:none; background:transparent; cursor:pointer; padding:7px 14px; border-radius:var(--radius-pill); transition:all .2s ease;
}
.lang-btn.is-active { background:var(--card); color:var(--ink); box-shadow:0 2px 6px rgba(30,38,32,.10); }

/* ═══════════════ Hero ═══════════════ */
.hero { background:var(--greenT); padding:86px 0 60px; text-align:center; transition:background .3s ease; }
.hero-inner { display:flex; flex-direction:column; align-items:center; }
.hero-title { font-weight:800; font-size:68px; line-height:.98; color:var(--ink); margin-bottom:0; }
.hero-title span { display:block; }
.hero-sub { font-size:19px; line-height:1.55; color:var(--inkSoft); font-weight:600; max-width:520px; margin:22px auto 34px; }
.cta-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta-note { margin-top:16px; font-size:14px; font-weight:700; color:var(--faint); }

.hero-showcase { display:flex; align-items:center; justify-content:center; gap:44px; margin-top:56px; }
.hero-mascot { display:flex; flex-direction:column; align-items:center; gap:14px; }
.bubble {
  font-family:var(--hand); font-weight:700; font-size:24px; color:var(--ink);
  background:#fff; border-radius:22px; padding:12px 18px; position:relative; box-shadow:var(--shadow-soft);
}
.bubble::after {
  content:""; position:absolute; left:26px; bottom:-11px; width:22px; height:18px;
  background:#fff; clip-path:polygon(0 0, 100% 0, 40% 100%); transform:rotate(8deg);
}
.mascot { filter:drop-shadow(0 30px 50px rgba(30,38,32,.18)); }

/* Phone mockup */
.phone { width:290px; background:var(--black); border-radius:44px; padding:12px; box-shadow:0 24px 60px rgba(22,26,20,.30); position:relative; flex:0 0 auto; }
.phone-notch { position:absolute; top:12px; left:50%; transform:translateX(-50%); width:120px; height:26px; background:var(--black); border-radius:0 0 16px 16px; z-index:3; }
.phone-screen { background:var(--cream); border-radius:34px; overflow:hidden; height:560px; display:flex; flex-direction:column; }
.chat-head { display:flex; align-items:center; gap:10px; padding:26px 16px 12px; background:var(--card); border-bottom:1px solid var(--hair); }
.chat-avatar { width:38px; height:38px; border-radius:50%; background:var(--a); color:#fff; font-family:var(--body); font-weight:800; display:flex; align-items:center; justify-content:center; font-size:16px; }
.chat-head-meta { display:flex; flex-direction:column; }
.chat-name { font-weight:800; font-size:15px; color:var(--ink); }
.chat-status { font-size:11px; color:var(--muted); }
.chat-body { flex:1; padding:16px 14px; display:flex; flex-direction:column; gap:12px; background:var(--cream); }
.msg { max-width:82%; padding:11px 14px; border-radius:18px; font-size:14px; line-height:1.4; }
.msg-in { align-self:flex-start; background:var(--card); color:var(--ink); border-bottom-left-radius:6px; box-shadow:var(--shadow-card); }
.msg-out { align-self:flex-end; background:var(--green); color:#fff; border-bottom-right-radius:6px; }
.puzzle-chip { display:inline-flex; align-items:center; gap:5px; margin-top:8px; font-size:11px; font-weight:800; background:rgba(255,255,255,.22); color:#fff; padding:5px 9px; border-radius:var(--radius-pill); }
.chat-input { display:flex; align-items:center; gap:8px; padding:12px 14px; background:var(--card); border-top:1px solid var(--hair); }
.chat-input-field { flex:1; background:var(--subtle); border-radius:var(--radius-pill); padding:9px 14px; font-size:13px; color:var(--faint); }
.chat-mic { width:34px; height:34px; border-radius:50%; background:var(--green); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }

/* ═══════════════ Gamification ═══════════════ */
.gamify { padding:104px 0 96px; text-align:center; }
.stat-cards { display:flex; justify-content:center; gap:22px; margin-top:44px; }
.stat-card {
  background:var(--card); border-radius:24px; padding:30px 40px; min-width:200px;
  box-shadow:var(--shadow-card); display:flex; flex-direction:column; align-items:center; gap:0;
}
.stat-icon { width:56px; height:56px; border-radius:16px; background:var(--t); color:var(--c); display:flex; align-items:center; justify-content:center; margin-bottom:16px; flex:0 0 auto; }
.stat-num { font-weight:800; font-size:34px; color:var(--ink); line-height:1; }
.stat-label { font-size:14.5px; color:var(--muted); font-weight:700; margin-top:2px; }

.badges-label { margin-top:68px; font-weight:800; font-size:15px; color:var(--faint); letter-spacing:.02em; }
.badges-row { display:flex; flex-wrap:wrap; gap:30px; justify-content:center; margin-top:24px; }
.badge { display:block; width:92px; height:92px; transition:transform .15s ease; }
.badge:hover { transform:translateY(-3px) scale(1.04); }

/* ═══════════════ Speaking Clubs ═══════════════ */
.clubs { background:var(--orangeT); padding:96px 0; transition:background .3s ease; overflow:hidden; }
.clubs-inner { display:flex; align-items:center; gap:40px; flex-wrap:wrap; }
.clubs-text { flex:1 1 380px; min-width:260px; }
.clubs-text .section-title { text-align:left; line-height:1.02; }
.clubs-sub { text-align:left; margin:22px 0 30px; max-width:460px; }
.chip-row { display:flex; gap:10px; flex-wrap:wrap; }
.chip { background:var(--card); color:var(--inkSoft); font-weight:700; font-size:14px; padding:9px 16px; border-radius:var(--radius-pill); box-shadow:var(--shadow-card); }

.clubs-photo { flex:1 1 300px; min-width:260px; display:flex; justify-content:center; }
.carousel { position:relative; width:100%; max-width:440px; height:340px; border-radius:32px; overflow:hidden; box-shadow:0 24px 50px rgba(30,38,32,.20); }
.carousel-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity .8s ease; }
.carousel-slide.is-active { opacity:1; }
.carousel-wash { position:absolute; inset:0; z-index:1; pointer-events:none; mix-blend-mode:soft-light;
  background:linear-gradient(155deg, rgba(62,155,84,.26), rgba(236,122,44,.12) 55%, rgba(244,236,218,.16)); }
.carousel-scrim { position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to top, rgba(12,15,9,.55) 0%, rgba(12,15,9,0) 45%); }
.carousel-dots { position:absolute; top:16px; right:16px; z-index:2; display:flex; gap:6px; }
.carousel-dots .dot { width:7px; height:7px; border-radius:999px; background:rgba(255,255,255,.5); cursor:pointer; transition:all .25s ease; }
.carousel-dots .dot.is-active { background:#fff; width:18px; }
.carousel-overlay { position:absolute; left:18px; bottom:18px; z-index:2; display:flex; gap:8px; }
.ov-chip { background:rgba(255,255,255,.94); color:#161A14; font-weight:800; font-size:13px; padding:6px 12px; border-radius:var(--radius-pill); }

/* ═══════════════ Footer ═══════════════ */
.footer { padding:90px 0 70px; }
.footer-card { position:relative; overflow:hidden; background:var(--black); border-radius:42px; padding:72px 60px; text-align:center; }
.footer-mascot { position:absolute; left:-20px; top:-20px; opacity:.9; }
.footer-body { position:relative; }
.footer-title { font-weight:800; font-size:44px; line-height:1.0; color:#fff; white-space:pre-line; }
.footer-cta { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin:34px 0 46px; }
.footer-divider { height:1px; background:rgba(255,255,255,.14); margin:0 0 30px; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.footer-mark { color:#fff; font-size:18px; }
.footer-legal { font-size:13px; color:rgba(255,255,255,.4); font-weight:600; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width:900px) {
  .clubs-inner { flex-direction:column; gap:24px; text-align:center; }
  .clubs-text { text-align:center; }
  .clubs-text .section-title, .clubs-sub { text-align:center; margin-left:auto; margin-right:auto; }
  .chip-row { justify-content:center; }
  .clubs-photo { order:2; }
  .hero-showcase { flex-direction:column; gap:24px; }
  .stat-cards { flex-direction:column; align-items:stretch; gap:14px; }
  .stat-card { flex-direction:row; align-items:center; gap:16px; text-align:left; padding:20px 24px; min-width:0; }
  .stat-card .stat-icon { margin-bottom:0; }
  .stat-card .stat-num { font-size:30px; }
}

@media (max-width:560px) {
  :root { --pad:20px; }
  .nav { height:auto; padding:12px 0; }
  .nav-inner { flex-wrap:wrap; gap:10px; }
  .nav-controls { width:100%; justify-content:space-between; }
  .hero { padding:48px 0 40px; }
  .hero-title { font-size:38px; }
  .hero-sub { font-size:16px; }
  .cta-row { flex-direction:column; width:100%; }
  .cta-row .btn { width:100%; }
  .gamify { padding:56px 0 48px; }
  .clubs { padding:56px 0; }
  .section-title { font-size:30px; }
  .footer { padding:40px 0 32px; }
  .footer-card { padding:40px 26px; border-radius:26px; }
  .footer-title { font-size:28px; }
  .footer-cta { flex-direction:column; }
  .footer-cta .btn { width:100%; }
  .footer-bottom { flex-direction:column; gap:10px; }
}
