/* Kids Universe — SVEMIRSKA TEMA (dark-mode-oled + neon accents)
   Baza #0A0E27 · zvjezdano žuta #FBBF24 · roza #F472B6 · cijan #38BDF8 · Baloo 2 / Comic Neue */
:root {
  --bg-0: #070B1F;
  --bg-1: #0A0E27;
  --bg-card: rgba(255, 255, 255, .055);
  --bg-card-solid: #131A3A;
  --border-soft: rgba(255, 255, 255, .14);
  --text: #EDF1FF;
  --text-muted: #A9B4D0;
  --yellow: #FBBF24;
  --yellow-soft: #FDE68A;
  --pink: #F472B6;
  --pink-dark: #DB2777;
  --cyan: #38BDF8;
  --violet: #A78BFA;
  --ink: #0F172A;
  --ring: #FBBF24;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Comic Neue', 'Segoe Print', system-ui, cursive;
  --radius: 20px;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(167, 139, 250, .16), transparent 60%),
    radial-gradient(800px 480px at -10% 25%, rgba(56, 189, 248, .12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(244, 114, 182, .1), transparent 60%),
    linear-gradient(var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Starfield (generated by JS) */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars i {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .35em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 780px; }

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: rgba(255, 255, 255, .03); border-block: 1px solid var(--border-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-soft);
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); border-radius: 999px;
  padding: .3rem 1rem; margin-bottom: 1em;
}
.pill {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--yellow-soft);
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); border-radius: 999px;
  padding: .35rem 1.1rem; margin-bottom: 1em;
}
.section-lead { color: var(--text-muted); font-size: 1.12rem; max-width: 660px; font-weight: 700; }

/* Gradient headline accent */
.grad {
  background: linear-gradient(92deg, var(--yellow-soft), var(--pink) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: .7rem 1.2rem; border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 12px; z-index: 100; margin-top: 12px; }
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  background: rgba(13, 20, 48, .82); backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  padding: .6rem 1.1rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(251, 191, 36, .7); box-shadow: 0 0 14px rgba(251, 191, 36, .45);
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; line-height: 1.05; }
.brand-text small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; color: var(--text-muted); }

.main-nav { display: flex; gap: .2rem; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 12px; border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, .08); border-color: var(--border-soft); }
.main-nav a.active { background: rgba(251, 191, 36, .15); color: var(--yellow-soft); border-color: rgba(251, 191, 36, .45); }

.nav-toggle { display: none; background: rgba(255,255,255,.06); border: 1px solid var(--border-soft); border-radius: 12px; padding: .55rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--text); margin: 4px 0; transition: transform 200ms ease, opacity 200ms ease; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background 200ms ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 0 22px rgba(251, 191, 36, .35); }
.btn-primary:hover { background: var(--yellow-soft); transform: translateY(-2px); box-shadow: 0 0 30px rgba(251, 191, 36, .5); }
.btn-soft {
  background: rgba(255, 255, 255, .07); color: var(--text);
  border-color: var(--border-soft);
}
.btn-soft:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px;
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--text); }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.6rem 0; }
.hero-social { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.soc {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--text); background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: .45rem 1.1rem .45rem .6rem;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.soc:hover { border-color: var(--cyan); background: rgba(56, 189, 248, .12); transform: translateY(-2px); }
.soc svg { width: 26px; height: 26px; color: var(--cyan); }
.hero-trust { list-style: none; display: grid; gap: .7rem; margin: 0; padding: 0; }
.hero-trust li {
  display: flex; align-items: center; gap: .7rem; font-size: 1rem;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: .55rem .9rem; max-width: 440px; backdrop-filter: blur(6px);
}
.hero-trust svg { width: 24px; height: 24px; color: var(--yellow); flex-shrink: 0; }
.hero-media { position: relative; }
.hero-photo {
  width: 100%; height: clamp(320px, 40vw, 470px); object-fit: cover;
  border: 1px solid var(--border-soft); border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 24px 60px rgba(0, 0, 0, .5), 0 0 44px rgba(139, 92, 246, .28);
}
.hero-logo {
  position: absolute; top: -26px; right: 12px; width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, .8); box-shadow: 0 0 26px rgba(251, 191, 36, .55);
  object-fit: cover; background: #fff; transform: rotate(6deg);
}
/* Planet with ring */
.planet {
  position: absolute; left: -46px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F9A8D4, var(--pink-dark) 55%, #4C1D95 100%);
  box-shadow: 0 0 34px rgba(244, 114, 182, .55), inset -10px -12px 26px rgba(0, 0, 0, .45);
  transform: rotate(-8deg);
}
.planet::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 190px; height: 52px;
  border: 5px solid rgba(253, 230, 138, .75); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  box-shadow: 0 0 14px rgba(253, 230, 138, .4);
}
.bubble {
  position: absolute; font-family: var(--font-display); font-weight: 800; color: var(--ink);
  background: #fff; border-radius: 16px; padding: .4rem .9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.bubble-1 { bottom: 5.4rem; left: 3.2rem; transform: rotate(-6deg); }
.bubble-2 { bottom: 2.4rem; left: 7.4rem; transform: rotate(3deg); background: var(--yellow-soft); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split-media img {
  width: 100%; height: clamp(300px, 34vw, 430px); object-fit: cover;
  border: 1px solid var(--border-soft); border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(56, 189, 248, .18);
}

.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li {
  position: relative; padding: .6rem 1rem .6rem 3rem; font-weight: 700;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 14px;
  backdrop-filter: blur(6px);
}
.check-list li::before {
  content: ""; position: absolute; left: .9rem; top: 50%; translate: 0 -50%;
  width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3.6'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/62% no-repeat;
  box-shadow: 0 0 10px rgba(251, 191, 36, .6);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.2rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; backdrop-filter: blur(8px);
  transition: transform 200ms ease-out, border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(251, 191, 36, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 26px rgba(251, 191, 36, .18); }
.card-emoji {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  border: 1px solid var(--border-soft); margin-bottom: .9rem;
  background: rgba(255, 255, 255, .07);
}
.card-emoji svg { width: 30px; height: 30px; }
.card-a .card-emoji { color: var(--cyan); box-shadow: 0 0 16px rgba(56, 189, 248, .35); }
.card-b .card-emoji { color: var(--yellow); box-shadow: 0 0 16px rgba(251, 191, 36, .35); }
.card-c .card-emoji { color: var(--pink); box-shadow: 0 0 16px rgba(244, 114, 182, .35); }
.card-d .card-emoji { color: var(--yellow-soft); box-shadow: 0 0 16px rgba(253, 230, 138, .3); }
.card-e .card-emoji { color: #6EE7B7; box-shadow: 0 0 16px rgba(110, 231, 183, .3); }
.card-f .card-emoji { color: var(--violet); box-shadow: 0 0 16px rgba(167, 139, 250, .35); }
.card p { color: var(--text-muted); margin: 0; }

/* Banner */
.banner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  background: linear-gradient(120deg, #1E1B4B, #4C1D95 60%, #831843);
  border: 1px solid var(--border-soft);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 44px rgba(219, 39, 119, .25);
  position: relative;
}
.banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff, transparent),
    radial-gradient(2px 2px at 32% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 18%, #fff, transparent),
    radial-gradient(2px 2px at 78% 42%, #FDE68A, transparent),
    radial-gradient(1.5px 1.5px at 90% 78%, #fff, transparent);
}
.banner img { height: 100%; min-height: 280px; object-fit: cover; border-radius: 0; }
.banner-copy { padding: clamp(1.6rem, 4vw, 2.8rem); color: #fff; align-self: center; position: relative; }
.banner-copy h2 { color: #fff; }
.banner-copy p { color: #E9D5FF; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.2rem; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.gallery figure:hover { border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 26px rgba(56, 189, 248, .3); transform: translateY(-4px); }
.gallery img { height: 230px; width: 100%; object-fit: cover; border-radius: 0; transition: transform 300ms ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7, 11, 31, .85); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: .2rem .9rem; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--yellow-soft);
}

/* FAQ */
.faq { display: grid; gap: 1rem; margin-top: 2.2rem; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 1.1rem 1.3rem; backdrop-filter: blur(8px);
}
.faq details[open] { border-color: rgba(251, 191, 36, .5); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--ink); background: var(--yellow);
  border-radius: 50%; width: 32px; height: 32px;
  display: grid; place-items: center; flex-shrink: 0; transition: transform 200ms ease;
  line-height: 1; box-shadow: 0 0 12px rgba(251, 191, 36, .45);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: .9rem 0 0; color: var(--text-muted); }

/* Info list */
.info-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.info-list > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 1rem 1.2rem; backdrop-filter: blur(8px);
}
.info-list dt { font-family: var(--font-display); font-weight: 700; color: var(--yellow-soft); }
.info-list dd { margin: 0; }

/* Footer */
.site-footer { background: rgba(0, 0, 0, .35); border-top: 1px solid var(--border-soft); margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.footer-brand .brand-logo { margin-bottom: .8rem; }
.footer-brand p { margin: .4em 0; }
.footer-muted { color: var(--text-muted); font-size: .95rem; }
.footer-nav { display: grid; gap: .5rem; align-content: start; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-links p { margin: .35em 0; }
.footer-links a { color: var(--text); font-weight: 700; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 1.1rem 0; font-size: .88rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .banner { grid-template-columns: 1fr; }
  .hero-photo { height: 300px; }
  .banner img { min-height: 220px; max-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .planet { width: 96px; height: 96px; left: -20px; }
  .planet::after { width: 140px; height: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: calc(var(--header-h) + 24px); left: 1.25rem; right: 1.25rem; flex-direction: column; gap: .3rem;
    background: rgba(13, 20, 48, .97); border: 1px solid var(--border-soft); border-radius: 18px;
    padding: .8rem; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner .btn { display: none; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 210px; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .hero-logo { width: 84px; height: 84px; top: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stars i { animation: none; opacity: .7; }
}
