/* ============================================================
   Digital Netizenship — netizen.hamcodes.com
   Vibrant, playful, high-energy landing page
   Palette: purple · yellow · orange · teal
   ============================================================ */

:root {
  /* Vibrant brand palette */
  --purple:      #7c3aed;
  --purple-2:    #9d5cff;
  --purple-soft: #f1e9ff;
  --yellow:      #ffc42e;
  --yellow-2:    #ffd85e;
  --yellow-soft: #fff5d6;
  --orange:      #ff7a1a;
  --orange-2:    #ff9d4d;
  --orange-soft: #ffeeddff;
  --teal:        #14b8a6;
  --teal-2:      #2dd4bf;
  --teal-soft:   #d9fbf4;
  --pink:        #ff5d8f;
  --blue:        #2b6fe0;

  /* Surfaces */
  --bg:      #fffdf8;
  --surface: #ffffff;
  --ink:     #241b3a;      /* deep purple-ink for text */
  --muted:   #6b6480;
  --line:    #ece6f5;

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 12px 34px rgba(60,30,110,.10);
  --shadow-lg: 0 28px 64px rgba(60,30,110,.18);
  --shadow-color: 0 16px 34px rgba(124,58,237,.28);

  --display: "Baloo 2", "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--purple); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }

/* ---------- Icons (inline Material Symbols sprite) ---------- */
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; vertical-align: -.22em; }
.btn .ic { width: 1.2em; height: 1.2em; vertical-align: -.18em; }
.hero-tag .ic { width: 20px; height: 20px; }
.dl-list .tick .ic { width: 16px; height: 16px; }
.gate-success .ic, .dl-peek-label .ic, .mentor-hint .ic { width: 18px; height: 18px; }

.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .35em .9em; border-radius: 999px; display: inline-block; margin-bottom: 1rem;
  background: var(--purple-soft); color: var(--purple);
}
.eyebrow.y { background: var(--yellow-soft); color: #b8790a; }
.eyebrow.o { background: #ffe6d2; color: #c4530a; }
.eyebrow.t { background: var(--teal-soft); color: #0b7d70; }

.lead { font-size: clamp(1.08rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { max-width: 680px; }
.sec-head.center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: .9em 1.7em; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease, filter .16s ease;
  touch-action: manipulation; line-height: 1;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-color); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 16px 30px rgba(255,122,26,.34); }
.btn-yellow { background: var(--yellow); color: #3a2a00; box-shadow: 0 16px 30px rgba(255,196,46,.4); }
.btn-teal   { background: var(--teal); color: #fff; box-shadow: 0 16px 30px rgba(20,184,166,.34); }
.btn-white  { background: #fff; color: var(--purple); box-shadow: var(--shadow); }
.btn-ghost  { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2.5px var(--purple); color: var(--purple); }
.btn-lg { font-size: 1.15rem; padding: 1.05em 2em; }
@media (hover: hover) { .btn:hover { transform: translateY(-3px) scale(1.02); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,248,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span b { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--purple); }
.nav-links a.btn { color: #fff; padding: .6em 1.3em; font-size: .95rem; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Blobs (decorative) ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; z-index: 0; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 74px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 88% 6%, rgba(255,196,46,.28), transparent 34%),
    radial-gradient(circle at 6% 20%, rgba(124,58,237,.18), transparent 40%),
    radial-gradient(circle at 78% 92%, rgba(255,122,26,.16), transparent 40%),
    radial-gradient(circle at 20% 96%, rgba(20,184,166,.16), transparent 36%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 span.hl { color: var(--purple); position: relative; white-space: nowrap; }
.hero h1 span.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em;
  background: var(--yellow); z-index: -1; border-radius: 6px; transform: rotate(-1.2deg);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2rem; }
.pill {
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  padding: .5em 1em; border-radius: 999px; display: inline-flex; align-items: center; gap: .45em;
}
.pill.p { background: var(--purple-soft); color: var(--purple); }
.pill.o { background: #ffe6d2; color: #c4530a; }
.pill.t { background: var(--teal-soft); color: #0b7d70; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-photo { position: relative; }
.hero-photo .frame {
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; transform: rotate(2deg); background: #ffe08a;
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tag {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: .7rem 1.05rem; font-family: var(--display); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: .5rem; z-index: 3;
}
.hero-tag.a { top: -14px; left: -18px; color: var(--purple); }
.hero-tag.b { bottom: -16px; right: -10px; color: var(--orange); }
.hero-tag .emo { font-size: 1.3rem; }
.hero-star { position: absolute; font-size: 2rem; z-index: 2; }
.hero-star.s1 { top: 8%; right: -6%; color: var(--yellow); }
.hero-star.s2 { bottom: 20%; left: -7%; color: var(--teal); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-badges, .hero-cta { justify-content: center; }
  .hero-photo { max-width: 420px; margin: 12px auto 0; }
}

/* ---------- Marquee / audience ---------- */
.audience { background: var(--ink); color: #fff; padding: 46px 0; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud { display: flex; gap: 1rem; align-items: flex-start; }
.aud .ic-box { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; }
.aud .ic-box .ic { width: 26px; height: 26px; color: #fff; }
.aud h3 { font-size: 1.15rem; margin-bottom: .1em; color: #fff; }
.aud p { font-size: .95rem; color: #c7bfe0; margin: 0; }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Game ---------- */
.game { background:
  radial-gradient(circle at 90% 10%, var(--teal-soft), transparent 40%),
  linear-gradient(180deg, #fffdf8, var(--purple-soft)); }
.game-frame {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: 40px; border: 3px solid #fff;
}
.game-bar { display: flex; align-items: center; gap: .5rem; padding: 13px 18px; background: var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r{background:#ff5f57}.dot.y{background:#febc2e}.dot.g{background:#28c840}
.game-bar .label { margin-left: auto; font-size: .85rem; color: #c7bfe0; font-family: var(--display); font-weight: 600; }
#h5p-container { min-height: 620px; background: #fff; }
.game-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 18px; }
.game-note b { color: var(--purple); }

/* ---------- Downloads ---------- */
.downloads { background: linear-gradient(180deg, var(--purple-soft), #fffdf8); }
.dl-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 68px); align-items: center; margin-top: 40px; }
.dl-visual { position: relative; }
.dl-cover {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 5px solid #fff; transform: rotate(-2.5deg); max-width: 330px;
}
.dl-cover img { width: 100%; display: block; }
.dl-peek { display: flex; gap: 12px; margin-top: 22px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
.dl-peek::-webkit-scrollbar { height: 8px; }
.dl-peek::-webkit-scrollbar-thumb { background: var(--purple-2); border-radius: 8px; }
.dl-peek img {
  height: 150px; width: auto; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: var(--shadow); scroll-snap-align: start; flex: 0 0 auto;
}
.dl-peek-label { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: 6px; }

.dl-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.dl-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.dl-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: 0 0 26px; }
.gate { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 26px; }
.gate label { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.gate input[type=email] {
  width: 100%; padding: .95em 1.1em; border-radius: 12px; border: 2px solid var(--line);
  font-size: 1.05rem; font-family: var(--body); margin-bottom: 1rem; transition: border-color .15s;
}
.gate input[type=email]:focus { outline: none; border-color: var(--purple); }
.gate .btn { width: 100%; justify-content: center; }
.gate small { display: block; color: var(--muted); font-size: .82rem; margin-top: .8rem; text-align: center; }
.gate-success { display:none; background: var(--teal-soft); color: #0b7d70; border-radius: 12px; padding: .8rem 1rem; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; text-align: center; }
.gate-success.show { display: block; }
.unlocked-links { display: none; }
.unlocked-links.show { display: block; animation: fade .4s ease; }
.unlocked-links .dl-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.unlocked-links .dl-row:last-child { border-bottom: none; }
.unlocked-links a { font-weight: 700; text-decoration: none; font-size: .95rem; color: var(--purple); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } .dl-visual { text-align: center; } .dl-cover { margin: 0 auto; } }

/* ---------- Books (alternating big rows) ---------- */
.books { background: #fffdf8; }
.book-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; padding: clamp(30px, 5vw, 56px) 0;
}
.book-row + .book-row { border-top: 2px dashed var(--line); }
.book-row:nth-child(even) .book-media { order: 2; }
.book-media { position: relative; display: flex; justify-content: center; }
.book-media .panel {
  border-radius: 24px; padding: 0; width: 100%; max-width: 440px; display: flex;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.book-media img { width: 100%; height: auto; display: block; filter: none; }
/* thin coloured accent bar per book, keeps the palette without clashing with the photo bg */
.book-media .panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2; }
.panel.p::after { background: var(--purple); }
.panel.o::after { background: var(--orange); }
.panel.t::after { background: var(--teal); }
.panel.b::after { background: var(--blue); }
.book-info .tag { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.book-info .tag.p{color:var(--purple)}.book-info .tag.o{color:#c4530a}.book-info .tag.t{color:#0b7d70}.book-info .tag.b{color:var(--blue)}
.book-info h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin: .15em 0 .1em; }
.age-badge { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .95rem; padding: .35em 1em; border-radius: 999px; background: var(--ink); color: #fff; margin-bottom: 1rem; }
.book-info p { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin-bottom: 1.6rem; }
@media (max-width: 780px) {
  .book-row { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 40px 0; }
  .book-row:nth-child(even) .book-media { order: 0; }
  .book-info p { margin-left: auto; margin-right: auto; }
  .book-media .panel { max-width: 340px; margin: 0 auto; }
}

/* ---------- Mentorship ---------- */
.mentor { background: linear-gradient(135deg, var(--purple), #5b21b6); color: #fff; overflow: hidden; }
.mentor::before { content:""; position:absolute; width:420px; height:420px; background: radial-gradient(circle, rgba(255,196,46,.32), transparent 70%); top:-120px; right:-80px; }
.mentor h2 { color: #fff; }
.mentor .eyebrow { background: rgba(255,255,255,.16); color: #ffe08a; }
.mentor .lead { color: rgba(255,255,255,.9); }
.mentor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; }
.mentor-features { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.mentor-features li { display: flex; gap: .9rem; align-items: flex-start; }
.mentor-features .ic-box { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.mentor-features .ic-box .ic { width: 22px; height: 22px; color: #ffe08a; }
.mentor-features b { display: block; font-family: var(--display); font-size: 1.1rem; }
.mentor-features span { color: rgba(255,255,255,.82); font-size: .95rem; }
.mentor-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px; text-align: center;
}
.mentor-card .ic-badge { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto .6rem; background: var(--purple-soft); display: grid; place-items: center; }
.mentor-card .ic-badge .ic { width: 34px; height: 34px; color: var(--purple); }
.mentor-card h3 { margin: .3em 0; }
.mentor-card p { color: var(--muted); font-size: 1rem; }
.mentor-card .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.mentor-card .note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 820px) { .mentor-grid { grid-template-columns: 1fr; } }

/* Mentorship horizontal-scroll gallery */
.mentor-gallery { margin-top: clamp(40px, 6vw, 72px); }
.mentor-gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 1rem; }
.mentor-gallery-head h3 { color: #fff; margin: 0; }
.mentor-hint { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: .9rem; color: #ffe08a; white-space: nowrap; }
.mentor-strip {
  display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden;
  padding: 4px 4px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--yellow) rgba(255,255,255,.18);
}
.mentor-strip::-webkit-scrollbar { height: 10px; }
.mentor-strip::-webkit-scrollbar-track { background: rgba(255,255,255,.18); border-radius: 999px; }
.mentor-strip::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 999px; }
.mentor-strip img {
  height: clamp(300px, 42vw, 460px); width: auto; flex: 0 0 auto; display: block;
  border-radius: 16px; scroll-snap-align: center; box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.9); background: #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7bfe0; padding: 60px 0 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.25rem; }
.foot-brand img { width: 44px; height: 44px; }
.foot-links { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.foot-links a { color: #c7bfe0; text-decoration: none; font-size: .95rem; font-weight: 500; }
.foot-links a:hover { color: var(--yellow); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 24px; font-size: .88rem; color: #8f86ab; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
