:root {
  --ink: #1a1230;
  --ink-soft: #3a2f5c;
  --paper: #fff8ff;
  --pink: #ff4d8d;
  --cyan: #3dfff3;
  --yellow: #ffe566;
  --violet: #8b5cff;
  --lime: #b6ff5c;
  --orange: #ff8a3d;
  --shadow: 5px 5px 0 #1a1230;
  --radius: 20px;
  --font-display: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --site-pad: clamp(0.75rem, 2vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 77, 141, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(61, 255, 243, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 229, 102, 0.25), transparent 55%),
    linear-gradient(165deg, #fff5fb 0%, #f0fffc 42%, #fff8e8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(circle, rgba(26, 18, 48, 0.14) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--site-pad) * 2);
  max-width: none;
  margin: 0 auto;
  padding: 0.85rem 0 2rem;
  min-height: calc(100vh - 0.5rem);
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0.5rem;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--cyan));
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  transform: rotate(-6deg);
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-pills a {
  padding: 0.45rem 0.9rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-pills a:hover,
.nav-pills a.is-active {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
}

.marquee {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 0.55rem 0;
  animation: marquee 22s linear infinite;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
  min-height: min(72vh, 680px);
  flex: 1;
}

.hero-copy {
  max-width: 40rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.8rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 rgba(255, 77, 141, 0.35);
}

.hero h1 .accent {
  color: var(--pink);
}

.hero-lead {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-art {
  position: relative;
  height: 100%;
  min-height: 240px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
    repeating-linear-gradient(
      -18deg,
      var(--yellow) 0 14px,
      var(--pink) 14px 28px,
      var(--cyan) 28px 42px,
      var(--violet) 42px 56px
    );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blob {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  animation: float 5.5s ease-in-out infinite;
}

.blob-a {
  width: 120px;
  height: 120px;
  left: 8%;
  top: 18%;
  background: var(--lime);
}

.blob-b {
  width: 90px;
  height: 90px;
  right: 14%;
  top: 12%;
  background: white;
  animation-delay: 0.8s;
}

.blob-c {
  width: 70px;
  height: 70px;
  right: 28%;
  bottom: 16%;
  background: var(--orange);
  animation-delay: 1.4s;
}

.star {
  position: absolute;
  font-size: 1.6rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.star-1 { left: 42%; top: 22%; }
.star-2 { right: 8%; bottom: 24%; animation-delay: 0.6s; }
.star-3 { left: 22%; bottom: 18%; animation-delay: 1.1s; font-size: 1.1rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.25) rotate(18deg); opacity: 0.7; }
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hub-card:hover {
  transform: translate(-3px, -5px) rotate(-1deg);
  box-shadow: 9px 9px 0 var(--ink);
}

.hub-card:nth-child(1) { background: linear-gradient(160deg, #ffd0e4, #ff8fb8); }
.hub-card:nth-child(2) { background: linear-gradient(160deg, #c8fff9, #7af0e8); }
.hub-card:nth-child(3) { background: linear-gradient(160deg, #fff3a8, #ffd95c); }

.hub-card .label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-card h2 {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.hub-card p {
  margin: 0;
  font-weight: 700;
  color: var(--ink-soft);
}

.hub-card .go {
  margin-top: 1.25rem;
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: white;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.hub-card .deco {
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 6rem;
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.page-head {
  margin: 0.25rem 0 1.1rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}

.page-head p {
  margin: 0.55rem 0 0;
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 700;
}

.panel {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 160px;
}

.card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.card .tag,
.card .badge {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--cyan);
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
  flex: 1;
}

.card .cta {
  margin-top: 0.4rem;
  font-weight: 900;
}

.status {
  margin: 0.5rem 0 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
}

.footer .online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 760px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
