:root {
  --violet: #6c3aa8;
  --plum: #43205f;
  --rose: #ff6b8f;
  --sun: #ffd75e;
  --mint: #7ddfc5;
  --sky: #8bd3ff;
  --ink: #211832;
  --muted: #665d73;
  --paper: #fffaf3;
  --line: rgba(67, 32, 95, .14);
  --shadow: 0 18px 45px rgba(67, 32, 95, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 215, 94, .34), transparent 24rem),
    radial-gradient(circle at 84% 8%, rgba(125, 223, 197, .26), transparent 22rem),
    linear-gradient(180deg, #fff6fb 0%, #fffaf3 42%, #f7fbff 100%);
  font-family: "Nunito", system-ui, sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 250, 243, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 210px;
}

.brand-mark, .avatar {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  box-shadow: 0 10px 24px rgba(108, 58, 168, .28);
  font-family: "Baloo 2", cursive;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  color: var(--plum);
  font-family: "Baloo 2", cursive;
  font-size: 1.35rem;
  line-height: 1;
}

.brand small {
  display: block;
  max-width: 240px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav a, .lang-toggle, .menu-toggle {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--plum);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav a {
  padding: .65rem .8rem;
  font-size: .94rem;
}

.nav a:hover, .nav a:focus-visible {
  background: rgba(255, 215, 94, .35);
}

.login-link {
  background: rgba(108, 58, 168, .1) !important;
}

.lang-toggle {
  width: 44px;
  height: 44px;
  margin-left: .25rem;
  background: var(--plum);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--plum);
}

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, .82fr) minmax(20rem, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100vh - 78px);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 3rem;
  overflow: hidden;
}

.hero-copy h1, .page-hero h1 {
  max-width: 760px;
  margin: .4rem 0 1rem;
  color: var(--plum);
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow), .page-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.actions, .pricing, .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(67, 32, 95, .14);
}

.btn.primary {
  background: linear-gradient(135deg, var(--sun), #ff9f5a);
  color: var(--plum);
}

.btn.secondary {
  background: #fff;
  border-color: rgba(108, 58, 168, .2);
  color: var(--violet);
}

.hero-art {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 215, 94, .45), rgba(139, 211, 255, .34));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  pointer-events: none;
}

.section, .lead-section, .page-hero, .dashboard-shell {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 5vw, 5rem);
}

.two-col, .story-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

h2 {
  margin: .25rem 0 1rem;
  color: var(--plum);
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 { margin: .3rem 0 .35rem; color: var(--plum); font-size: 1.25rem; }
p { line-height: 1.6; }

.value-grid, .adventure-grid, .product-grid, .feature-grid, .catalog, .parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.value-grid span, .adventure-card, .product-card, .feature-grid article, .catalog article, .parent-grid article, .testimonials article, .pricing article, .progress-card, .tab-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(67, 32, 95, .08);
}

.value-grid span {
  padding: 1rem;
  font-weight: 900;
}

.section-head {
  max-width: 780px;
  margin-bottom: 1.4rem;
}

.adventure-card {
  display: grid;
  min-height: 145px;
  padding: 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.adventure-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.adventure-card span {
  font-size: 2.2rem;
}

.soft {
  background: linear-gradient(135deg, rgba(255, 215, 94, .22), rgba(125, 223, 197, .18));
}

.product-card, .feature-grid article, .catalog article, .parent-grid article, .testimonials article {
  padding: 1.2rem;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  color: var(--violet);
  font-size: 1.4rem;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: .5rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 900;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(18rem, 1.2fr);
  gap: 1rem;
  align-items: center;
  margin: 0 clamp(1rem, 5vw, 5rem) 4rem;
  border-radius: 24px;
  background: var(--plum);
  color: #fff;
}

.lead-section h2, .lead-section .eyebrow { color: #fff; }
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
}

.lead-form input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  font: inherit;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sun);
  font-weight: 800;
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(67, 32, 95, .82), rgba(108, 58, 168, .5)),
    url("../img/lunna-hero.png") center / cover;
  color: #fff;
}

.page-hero.compact { min-height: 340px; }
.page-hero h1, .page-hero p { color: #fff !important; }

.story-layout img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-grid article span {
  font-size: 2rem;
}

.pricing {
  align-items: stretch;
}

.pricing article {
  flex: 1 1 250px;
  padding: 1.3rem;
}

.pricing .featured {
  border-color: rgba(255, 107, 143, .6);
  background: #fff8df;
}

.pricing strong {
  display: block;
  margin: .65rem 0 1rem;
  color: var(--plum);
  font-size: 2.2rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.25rem;
}

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sidebar button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(108, 58, 168, .08);
  color: var(--plum);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sidebar button.active {
  background: var(--sun);
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.progress-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin: 1rem 0;
}

.progress {
  height: 14px;
  border-radius: 999px;
  background: rgba(108, 58, 168, .12);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--sun));
}

.tab-panel {
  display: none;
  min-height: 220px;
  padding: 1.25rem;
}

.tab-panel.active { display: block; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.badge-row span {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff8df;
  font-size: 2rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav.open { display: grid; }
  .nav a { padding: .75rem; }
  .hero, .two-col, .story-layout, .lead-section, .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .lead-form { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .brand { min-width: auto; }
  .hero-copy h1, .page-hero h1 { font-size: 2.7rem; }
  .hero-art { border-radius: 18px; }
  .footer { display: grid; }
  .progress-card { grid-template-columns: 1fr; }
}
