/* EduFun Kids landing — modern, kid-friendly, no build */

:root{
  /* New playful background */
  --bg0:#fff3e6; /* warm peach */
  --bg1:#eaf7ff; /* soft sky */
  --ink:#101828;
  --muted:#667085;
  --card:rgba(255,255,255,.72);
  --card2:rgba(255,255,255,.55);
  --stroke:rgba(16,24,40,.12);
  --shadow:0 18px 60px rgba(16,24,40,.14);
  --shadow2:0 10px 30px rgba(16,24,40,.10);

  --p1:#60d5ff; /* sky */
  --p2:#61f3b8; /* mint */
  --p3:#ffd56a; /* sunny */
  --p4:#ff79c6; /* pink */
  --p5:#8b7bff; /* violet */

  --radius:22px;
  --radius2:16px;
  --max:1120px;

  --focus:0 0 0 4px rgba(96,213,255,.35);
}

/* Dark theme */
:root[data-theme="dark"]{
  --bg0:#081024;
  --bg1:#0b1530;
  --ink:#eef2ff;
  --muted:#b4bde0;
  --card:rgba(15,23,42,.72);
  --card2:rgba(15,23,42,.55);
  --stroke:rgba(255,255,255,.12);
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --shadow2:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1100px 680px at 10% 10%, rgba(255,121,198,.22), transparent 58%),
    radial-gradient(1100px 720px at 92% 0%, rgba(96,213,255,.26), transparent 55%),
    radial-gradient(900px 620px at 80% 85%, rgba(255,213,106,.22), transparent 55%),
    radial-gradient(900px 650px at 18% 78%, rgba(97,243,184,.20), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}

.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip{
  position:absolute; left:-999px; top:10px;
  background:#fff; color:#111; padding:10px 12px;
  border-radius:12px; border:1px solid var(--stroke);
}
.skip:focus{left:10px; outline:none; box-shadow:var(--focus)}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:20;
  background:linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--stroke);
}
:root[data-theme="dark"] .topbar{
  background:linear-gradient(180deg, rgba(11,21,48,.75), rgba(11,21,48,.35));
}

.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}

.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:44px; height:44px; border-radius:16px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: conic-gradient(from 120deg, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5), var(--p1));
  box-shadow: var(--shadow2);
}
.brand__logo{
  width:100%; height:100%; display:block;
  object-fit:cover;
  /* focus on left side of the feature graphic (logo + mascot) */
  object-position: 10% 50%;
}
.brand__name{font-weight:900; letter-spacing:-.02em}
.brand__name span{color:var(--p4)}
.brand__tag{font-size:12px; color:var(--muted)}

.nav{display:none; gap:14px; align-items:center; color:var(--muted)}
.nav a{padding:8px 10px; border-radius:12px}
.nav a:hover{background:rgba(255,255,255,.45)}
:root[data-theme="dark"] .nav a:hover{background:rgba(255,255,255,.08)}

@media (min-width: 860px){
  .nav{display:flex}
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  border-radius:999px;
  padding:12px 16px;
  border:1px solid var(--stroke);
  background:var(--card);
  box-shadow: var(--shadow2);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn:focus{outline:none; box-shadow: var(--focus), var(--shadow2)}
.btn[aria-disabled="true"]{opacity:.55; pointer-events:none}

.btn--primary{
  border:none;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  color:#06223a;
}
.btn--soft{background:linear-gradient(90deg, rgba(255,213,106,.45), rgba(255,121,198,.25))}
.btn--ghost{background:transparent; box-shadow:none}

.btn__icon{font-weight:900}
.btn__label{font-weight:800}

/* Hero */
.hero{position:relative; padding:44px 0 26px}
.hero__inner{display:grid; gap:26px; grid-template-columns:1fr}

/* Mobile-first: show mascot/art first, then text */
.hero__art{order:1}
.hero__copy{order:2}

.hero__bg{position:absolute; inset:0; pointer-events:none; overflow:hidden}
.blob{position:absolute; border-radius: 999px; filter: blur(2px); opacity:.9; mix-blend-mode: multiply}
.blob--1{width:520px; height:520px; left:-160px; top:-160px; background: radial-gradient(circle at 30% 30%, rgba(96,213,255,.9), rgba(96,213,255,.05))}
.blob--2{width:560px; height:560px; right:-220px; top:-220px; background: radial-gradient(circle at 30% 30%, rgba(97,243,184,.85), rgba(97,243,184,.04))}
.blob--3{width:460px; height:460px; left:50%; bottom:-240px; transform:translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(255,213,106,.75), rgba(255,213,106,.03))}

.clouds{position:absolute; left:0; right:0; bottom:-1px; height:220px; width:100%}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:999px;
  color:var(--muted);
  font-weight:700;
}

h1{
  margin:12px 0 10px;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height:1.05;
  letter-spacing:-.03em;
}
.grad{
  background: linear-gradient(90deg, var(--p4), var(--p1), var(--p2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{font-size:16px; line-height:1.55; color:var(--muted); margin:0 0 18px}

.cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center}

.linkRow{margin-top:14px}
.field{display:block}
.field__label{display:block; font-size:12px; font-weight:800; color:var(--muted); margin-bottom:8px}
.field__help{display:block; font-size:12px; color:var(--muted); margin-top:8px}

input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--card);
  color:var(--ink);
  box-shadow: var(--shadow2);
}
input:focus{outline:none; box-shadow: var(--focus), var(--shadow2)}

.miniNote{display:flex; align-items:center; gap:10px; margin-top:10px; color:var(--muted); font-weight:700; font-size:12px}
.miniNote .dot{width:10px; height:10px; border-radius:50%; background:linear-gradient(90deg, var(--p1), var(--p2))}

.hero__art{position:relative}
.cardArt{
  position:relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding:16px;
  overflow:hidden;
}
.feature{border-radius: 18px; border:1px solid var(--stroke)}
.cardArt__shine{
  position:absolute; inset:-40% -20% auto auto;
  width:420px; height:420px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), transparent 60%);
  transform: rotate(18deg);
  opacity:.55;
}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  font-weight:900; font-size:12px;
}
:root[data-theme="dark"] .chip{background: rgba(255,255,255,.08)}

.floaty{position:absolute; inset:auto 10px 10px auto; display:flex; gap:10px}
.star{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
}
:root[data-theme="dark"] .star{background: rgba(255,255,255,.08)}

@media (min-width: 980px){
  .hero{padding:58px 0 34px}
  .hero__inner{grid-template-columns: 1.05fr .95fr; align-items:center}
  /* Desktop: text first, art second */
  .hero__copy{order:1}
  .hero__art{order:2}
}

/* Sections */
.section{padding:54px 0}
.section--soft{
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  border-top:1px solid var(--stroke);
  border-bottom:1px solid var(--stroke);
}
:root[data-theme="dark"] .section--soft{background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0))}

.section__head{margin-bottom:18px}
.section__head--row{display:flex; align-items:flex-end; justify-content:space-between; gap:12px}
.section__head h2{margin:0; font-size: clamp(22px, 3.2vw, 34px); letter-spacing:-.02em}
.section__head p{margin:8px 0 0}

.muted{color:var(--muted)}

/* Video */
.videoGrid{display:grid; gap:16px}
.videoTools__title{margin:0 0 10px; font-size:16px; letter-spacing:-.01em}
.videoList{margin:0; padding:0 0 0 18px; color:var(--muted); line-height:1.55}
.videoList li{margin:8px 0}
.videoList strong{color:var(--ink)}
.videoCard{border-radius: var(--radius); border:1px solid var(--stroke); background: linear-gradient(180deg, var(--card), var(--card2)); box-shadow: var(--shadow); overflow:hidden}
.videoFrame{position:relative; aspect-ratio: 16 / 9; background: rgba(0,0,0,.08)}
.videoFrame iframe, .videoFrame video{width:100%; height:100%; border:0; display:block}
.videoHint{display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:14px}
.badge{padding:7px 10px; border-radius:999px; font-weight:900; font-size:12px; background: linear-gradient(90deg, rgba(96,213,255,.30), rgba(97,243,184,.25)); border:1px solid var(--stroke)}
.badge--soft{background: linear-gradient(90deg, rgba(255,213,106,.28), rgba(255,121,198,.20))}

.videoTools{border-radius: var(--radius); border:1px solid var(--stroke); background: linear-gradient(180deg, var(--card), var(--card2)); box-shadow: var(--shadow2); padding:16px}
.toolRow{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

.tipBox{margin-top:14px; padding:16px; border-radius: var(--radius2); border:1px solid var(--stroke);
  background: radial-gradient(800px 300px at 10% 10%, rgba(255,121,198,.20), transparent 60%),
              radial-gradient(700px 300px at 90% 30%, rgba(96,213,255,.22), transparent 60%),
              rgba(255,255,255,.35);
}
:root[data-theme="dark"] .tipBox{background: rgba(255,255,255,.06)}
.tipBox h3{margin:0 0 8px; font-size:16px}
.tipBox p{margin:0; color:var(--muted)}
.tipBox__dots{display:flex; gap:8px; margin-top:12px}
.tipBox__dots span{width:10px; height:10px; border-radius:50%; background:linear-gradient(90deg, var(--p1), var(--p2)); opacity:.9}

@media (min-width: 980px){
  .videoGrid{grid-template-columns: 1.35fr .65fr; align-items:start}
}

/* Feature cards */
.cards{display:grid; gap:12px; grid-template-columns:1fr}
.card{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
}
.card .icon{font-size:26px}
.card h3{margin:10px 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.5}

@media (min-width: 720px){
  .cards{grid-template-columns: 1fr 1fr}
}
@media (min-width: 1060px){
  .cards{grid-template-columns: repeat(3, 1fr)}
}

/* Carousel */
.galleryBtns{display:flex; gap:10px; align-items:center}
.carousel{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  padding:14px;
  overflow:hidden;
}
.track{
  display:flex;
  gap:14px;
  will-change: transform;
  transition: transform .35s cubic-bezier(.2,.9,.2,1);
}

.shot{
  min-width: min(320px, 78vw);
  border-radius: 20px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.35);
  box-shadow: var(--shadow2);
  cursor: zoom-in;
}
:root[data-theme="dark"] .shot{background: rgba(255,255,255,.06)}

.shot img{width:100%; height:auto}
.shot figcaption{padding:10px 12px; font-weight:900; font-size:13px}

.shot:hover{transform: translateY(-1px)}

.dots{display:flex; justify-content:center; gap:10px; margin-top:14px}
.dotBtn{
  width:10px; height:10px; border-radius:50%;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  cursor:pointer;
}
:root[data-theme="dark"] .dotBtn{background: rgba(255,255,255,.10)}
.dotBtn[aria-current="true"]{background: linear-gradient(90deg, var(--p1), var(--p2)); border-color: transparent}
.dotBtn:focus{outline:none; box-shadow: var(--focus)}

/* Lightbox */
.lightbox::backdrop{background: rgba(0,0,0,.55)}
.lightbox{
  border:none;
  padding:0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  max-width:min(980px, 92vw);
}
.lightbox__inner{padding:16px}
.lightbox__inner img{width:100%; height:auto; border-radius: 18px; border:1px solid var(--stroke)}
.lightbox__cap{margin-top:10px; font-weight:900; color:var(--muted)}
.lightbox__close{
  position:absolute; right:10px; top:10px;
  width:42px; height:42px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  cursor:pointer;
}
:root[data-theme="dark"] .lightbox__close{background: rgba(255,255,255,.10)}
.lightbox__close:focus{outline:none; box-shadow: var(--focus)}

/* Footer */
.footer{padding:34px 0 0; border-top:1px solid var(--stroke)}
.footer__inner{display:grid; gap:18px}
.footer__brand{font-weight:1000; font-size:18px}
.footer__cols{display:grid; gap:14px}
.footer__title{font-weight:1000; margin-bottom:8px}
.footer a{display:block; padding:6px 0; color:var(--muted)}
.footer a:hover{color:var(--ink)}
.footer__bottom{padding:16px 0; border-top:1px solid var(--stroke); margin-top:18px}

@media (min-width: 860px){
  .footer__inner{grid-template-columns: 1fr 1.2fr; align-items:start}
  .footer__cols{grid-template-columns: 1fr 1.2fr}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .track{transition:none !important}
  .btn{transition:none !important}
}
