/* ===== Gurukin landing — styles ===== */
:root {
  --brand: #5b4bff;
  --brand-d: #4a37e6;
  --brand-100: #e0e3ff;
  --brand-50: #eef0ff;
  --ink: #26263a;
  --ink2: #3a3a52;
  --muted: #6b6b85;
  --sunny: #ffc21e;
  --sunny-l: #ffd34d;
  --coral: #ff6b57;
  --mint: #22c48f;
  --bg: #f7f8ff;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 16px 40px -18px rgba(38, 38, 58, 0.28);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, #e7e9ff 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #fff2cf 0%, transparent 45%),
    linear-gradient(180deg, #f7f8ff 0%, #f3f4fb 100%);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; line-height: 1.1; color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.08s ease, background 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { font-size: 17px; padding: 15px 30px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 0 0 rgba(45, 37, 124, 0.25); }
.btn-primary:hover { background: var(--brand-d); }
.btn-soft { background: var(--brand-50); color: var(--brand-d); }
.btn-soft:hover { background: var(--brand-100); }
.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }
.btn-kofi { background: var(--sunny); color: var(--ink); }
.btn-kofi:hover { background: var(--sunny-l); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; max-width: 100%;
  background: rgba(247, 248, 255, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 75, 255, 0.08);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2"; font-weight: 800; font-size: 20px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink2); font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; margin-left: auto; }

/* ===== Hero ===== */
.hero { position: relative; text-align: center; padding: 70px 22px 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; font-size: 44px; opacity: 0.35; animation: float 6s ease-in-out infinite; }
.orb-1 { top: 12%; left: 8%; }
.orb-2 { top: 26%; right: 10%; animation-delay: 1s; }
.orb-3 { bottom: 16%; left: 12%; animation-delay: 2s; }
.orb-4 { top: 60%; right: 8%; animation-delay: 1.5s; }
.orb-5 { bottom: 24%; right: 22%; animation-delay: 0.5s; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-mascot { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--shadow); animation: float 3s ease-in-out infinite; }
.hero h1 { font-size: clamp(38px, 7vw, 66px); margin: 12px 0; }
.grad { background: linear-gradient(90deg, var(--brand), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink2); max-width: 620px; margin: 0 auto 26px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pill { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--brand); background: var(--brand-100); border-radius: 999px; padding: 6px 14px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 26px; color: var(--brand); text-decoration: none; animation: bob 1.6s ease-in-out infinite; }

/* ===== Sections ===== */
.section { padding: 74px 0; }
.section.alt { background: rgba(255, 255, 255, 0.55); }
.eyebrow { display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.section-sub { color: var(--ink2); max-width: 640px; margin-bottom: 34px; font-size: 17px; }

/* ===== Grids / cards ===== */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-ico { font-size: 34px; margin-bottom: 10px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--ink2); font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step-num { position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: "Baloo 2"; }
.step-ico { font-size: 32px; margin: 6px 0 8px; }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--ink2); font-size: 14.5px; }

/* ===== Worlds ===== */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.world {
  display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--w), color-mix(in srgb, var(--w) 70%, #000 12%));
  border-radius: 16px; padding: 18px; font-size: 17px; box-shadow: var(--shadow);
}
.world span { font-size: 26px; }

/* ===== Safety ===== */
.safety-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; }
.safety-copy p { color: var(--ink2); margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--mint); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.safety-card { background: linear-gradient(160deg, #5b4bff, #4a37e6); color: #fff; border-radius: 28px; padding: 30px; text-align: center; box-shadow: var(--shadow); }
.safety-sol { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.safety-quote { font-family: "Baloo 2"; font-size: 20px; line-height: 1.35; }
.safety-by { margin-top: 12px; opacity: 0.85; font-size: 14px; }

/* ===== Duo ===== */
.duo-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.duo-card h3 { font-size: 22px; margin-bottom: 14px; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(160deg, #5b4bff, #3d2bc0); color: #fff; padding: 70px 0; text-align: center; }
.cta-inner { max-width: 640px; }
.cta-sol { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; animation: float 3s ease-in-out infinite; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-band p { opacity: 0.92; margin: 10px auto 22px; }
.cta-note { font-size: 13px; opacity: 0.8; margin-top: 16px; }

/* ===== Footer ===== */
.footer { padding: 40px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--brand); }
.muted { color: var(--muted); font-size: 14px; }
.footer-legal { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.06); }

/* ===== Game ===== */
.game-section { }
.game-card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 30px; min-height: 420px; position: relative; overflow: hidden; }
.g-center { text-align: center; }
.g-sol { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.g-sol.happy { animation: pop 0.5s ease; }
.g-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.g-level { border: 2px solid var(--brand-100); background: #fff; border-radius: 18px; padding: 20px 14px; cursor: pointer; text-align: center; transition: 0.15s; font: inherit; }
.g-level:hover { border-color: var(--brand); transform: translateY(-2px); }
.g-level .g-emoji { font-size: 34px; }
.g-level b { display: block; margin-top: 6px; font-family: "Baloo 2"; font-size: 18px; color: var(--ink); }
.g-level small { color: var(--muted); }
.g-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.g-coins { font-weight: 800; color: var(--sunny-l); background: #26263a; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.g-progresswrap { flex: 1; height: 12px; background: var(--brand-100); border-radius: 999px; overflow: hidden; }
.g-progress { height: 100%; background: linear-gradient(90deg, var(--brand), var(--coral)); border-radius: 999px; transition: width 0.3s; }
.g-count { font-weight: 700; color: var(--muted); font-size: 14px; }
.g-q { font-family: "Baloo 2"; font-size: clamp(22px, 3.4vw, 30px); text-align: center; margin: 8px 0 20px; }
.g-q .g-big { font-size: 40px; display: block; margin-bottom: 6px; }
.g-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-opt {
  border: 2px solid var(--brand-100); background: #fff; border-radius: 16px; padding: 18px;
  font: inherit; font-weight: 700; font-size: 18px; color: var(--ink); cursor: pointer; transition: 0.12s; min-height: 62px;
}
.g-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-50); }
.g-opt:disabled { cursor: default; }
.g-opt.correct { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 16%, #fff); }
.g-opt.wrong { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, #fff); animation: shake 0.4s; }
.g-feedback { margin-top: 18px; text-align: center; }
.g-msg { font-family: "Baloo 2"; font-size: 20px; margin-bottom: 6px; }
.g-msg.good { color: var(--mint); }
.g-msg.try { color: var(--coral); }
.g-fact { color: var(--ink2); font-size: 15px; background: var(--brand-50); border-radius: 14px; padding: 12px 16px; display: inline-block; }
.g-stars { font-size: 40px; letter-spacing: 6px; margin: 8px 0; }
.g-badge { display: inline-block; background: var(--sunny); color: var(--ink); font-family: "Baloo 2"; font-weight: 700; padding: 8px 18px; border-radius: 999px; margin: 6px 0 14px; }
.g-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ===== Confetti canvas ===== */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Animations ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .safety-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 22px; gap: 14px; box-shadow: var(--shadow); }
  .nav.open .nav-cta { display: flex; position: absolute; top: 188px; left: 0; right: 0; padding: 0 22px 16px; background: #fff; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .steps, .worlds, .g-levels, .g-options { grid-template-columns: 1fr; }
  .game-card { padding: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
