﻿:root {
  --bg-gradient: linear-gradient(135deg, #6ee7ff, #9b5cff);
  --accent: #ffca3a;
  --accent-dark: #f4b400;
  --text: #073b4c;
  --text-light: #2a9d8f;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(13, 37, 63, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Fredoka", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: #f7fbff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: 4rem 5vw 3rem;
  gap: 3rem;
  background: var(--bg-gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem);
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button {
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow);
}

.secondary-button {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.cta-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-illustration {
  position: relative;
  height: 320px;
}

.planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.planet-left {
  width: 160px;
  height: 160px;
  background: #ff9f1c;
  top: 20px;
  left: 10%;
}

.planet-right {
  width: 120px;
  height: 120px;
  background: #2ec4b6;
  bottom: 10%;
  right: 12%;
}

.character {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #ffffff;
  border-radius: 40px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-illustration::before,
.hero-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(2px);
}

.hero-illustration::before {
  width: 220px;
  height: 30px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-illustration::after {
  width: 280px;
  height: 280px;
  top: 50px;
  left: calc(50% - 140px);
  border-radius: 50%;
}

section {
  padding: 4rem 5vw;
}

section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.features-grid article {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.features-grid h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--text-light);
}

.activities {
  background: #fff4f3;
}

.activity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.activity-cards article {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-cards button {
  align-self: start;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--text-light);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-cards button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.passcode-login {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  background: #f1f5ff;
}

.login-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.login-card form {
  margin-top: 1.5rem;
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(7, 59, 76, 0.2);
  font-size: 1.1rem;
  letter-spacing: 0.25rem;
  text-align: center;
}

.input-group button {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.input-group button:hover {
  transform: translateY(-1px);
}

.form-message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--text-light);
}

.form-message.error {
  color: #d62828;
}

.helpers {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.help-link {
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.login-info {
  background: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(43, 82, 120, 0.12);
}

.login-info ul {
  margin: 0;
  padding-left: 1.1rem;
}

.for-grownups {
  background: #fffceb;
}

.grownups-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grownups-content article {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 5vw;
  background: #0b2545;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-note {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    color: var(--text);
  }

  .top-bar.active .nav-links {
    position: absolute;
    top: 70px;
    right: 5vw;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.admin-portal {
  padding: 4rem 5vw;
  background: #eef5ff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.admin-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.students-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.students-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.students-list th,
.students-list td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.students-list th {
  font-weight: 600;
  background: var(--background);
}

.admin-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-form label {
  font-weight: 600;
}

.admin-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(12, 53, 89, 0.12);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}

.admin-form input:focus {
  border-color: var(--text-light);
}

.admin-form button {
  justify-self: start;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.admin-form button:hover {
  transform: translateY(-1px);
}

.admin-info {
  background: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(23, 63, 102, 0.12);
}

.admin-info ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 768px) {
  .admin-form button {
    justify-self: stretch;
  }
}
