/* ============================================================
   quiz-coins.com — Static site styles
   Color palette — Playful, vibrant, game-night energy:
     Deep Purple:     #1a1a2e  (dark backgrounds)
     Rich Purple:     #16213e  (secondary dark)
     Violet:          #a855f7  (primary accent)
     Hot Pink:        #ec4899  (secondary accent, CTAs)
     Bright Yellow:   #fbbf24  (highlights, stars)
     Teal:            #14b8a6  (success, correct)
     Coral:           #f97316  (warm accent)
     Soft White:      #f8f7ff  (light backgrounds)
     Light Lavender:  #ede9fe  (cards, alt sections)
     Dark Text:       #1e1b4b  (headings)
     Body Text:       #4c4877  (paragraphs)
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e1b4b;
  background: #f8f7ff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* === Navigation === */
.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a2e;
  border-bottom: 2px solid rgba(168,85,247,0.3);
  box-shadow: 0 2px 20px rgba(168,85,247,0.15);
}

.navigation-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.logo-accent { color: #fbbf24; }
.logo-dash { color: #a855f7; }
.logo-primary { color: #fff; }

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-item {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.nav-item:hover { color: #fbbf24; }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Mobile nav */
@media screen and (max-width: 767px) {
  .navigation-wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(168,85,247,0.2);
    margin-top: 12px;
  }

  .nav-menu.open { display: flex; }

  .nav-item {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(168,85,247,0.1);
    width: 100%;
  }

  .nav-item:last-child { border-bottom: none; }
  .logo-text { font-size: 20px; }
}

/* === Page Layout === */
.page-wrap {
  flex: 1;
  padding: 0;
}

.container-global {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.spacer { height: 32px; }

@media screen and (max-width: 479px) {
  .container-global { padding: 0 16px; }
  .spacer { height: 20px; }
}

/* === Hero Section (Index) === */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(168,85,247,0.5);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  width: 100%;
}

.hero-mini-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.hero-mini-card:hover {
  transform: translateX(6px);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 20px rgba(168,85,247,0.15);
}

.hero-mini-card h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 4px;
}

.hero-mini-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

@media screen and (max-width: 991px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-text h1 { font-size: 36px; }
  .hero-tagline { font-size: 18px; }
  .hero-card-stack { margin: 0 auto; }
}

@media screen and (max-width: 479px) {
  .hero-section { padding: 48px 0 40px; }
  .hero-text h1 { font-size: 28px; }
  .hero-tagline { font-size: 16px; }
}

/* === Content Sections (Index) === */
.content-section {
  padding: 64px 0;
}

.content-section.alt-bg {
  background: #ede9fe;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #1e1b4b;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: #4c4877;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Two-column content block */
.content-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.content-block-row.reversed { direction: rtl; }
.content-block-row.reversed > * { direction: ltr; }

.content-block-text h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #1e1b4b;
  margin-bottom: 16px;
}

.content-block-text p {
  font-size: 16px;
  color: #4c4877;
  line-height: 1.7;
  margin-bottom: 14px;
}

.content-block-text ul {
  margin: 10px 0 14px 24px;
  list-style: disc;
}

.content-block-text li {
  font-size: 16px;
  color: #4c4877;
  line-height: 1.7;
  margin-bottom: 8px;
}

@media screen and (max-width: 991px) {
  .content-block-row,
  .content-block-row.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }
}

/* === Topic Grid (Index + Topics Page) === */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 0 32px;
}

.topic-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(30,27,75,0.06);
}

.topic-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #a855f7, #ec4899, #fbbf24);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(168,85,247,0.15);
}

.topic-card-image {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

.topic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.topic-card:hover .topic-card-image img {
  transform: scale(1.05);
}

.topic-card-body {
  padding: 20px;
}

.topic-card-body h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e1b4b;
}

.topic-card-body p {
  font-size: 14px;
  color: #4c4877;
  margin-bottom: 16px;
  line-height: 1.5;
}

.topic-card-cta {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

/* === Topic Detail Row (Topics page) === */
.topic-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #ede9fe;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.topic-detail:hover {
  box-shadow: 0 8px 32px rgba(168,85,247,0.1);
  border-color: rgba(168,85,247,0.3);
}

.topic-detail.reversed {
  grid-template-columns: 1fr 300px;
}

.topic-detail-image {
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.topic-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-detail-text h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.topic-detail-text p {
  font-size: 15px;
  color: #4c4877;
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168,85,247,0.4);
}

@media screen and (max-width: 767px) {
  .topic-detail,
  .topic-detail.reversed {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .topic-detail-image { height: 160px; }
}

/* === Welcome Page === */
.welcome-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.welcome-hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.welcome-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.welcome-hero-text h1 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

@media screen and (max-width: 991px) {
  .welcome-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .welcome-hero-image { max-width: 320px; margin: 0 auto; }
  .welcome-hero-text h1 { font-size: 26px; }
}

.welcome-body {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
}

.welcome-content {
  font-size: 16px;
  line-height: 1.7;
  color: #4c4877;
}

.welcome-content h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #1e1b4b;
}

.welcome-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #1e1b4b;
}

.welcome-content h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: #1e1b4b;
}

.welcome-content h6 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #1e1b4b;
}

.welcome-content p { margin-bottom: 14px; }

.welcome-content ul {
  margin: 10px 0 14px 24px;
  list-style: disc;
}

.welcome-content li { margin-bottom: 8px; }

.cta-block {
  text-align: center;
  padding: 32px 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

/* === Shared Button Style === */
.q-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}

.q-button:hover {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 6px 24px rgba(236,72,153,0.35);
  transform: translateY(-2px);
  color: #fff;
}

@media screen and (max-width: 479px) {
  .q-button {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 12px;
  }
}

/* === Quiz / Combo Page === */
.big-block {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
}

.quiz-shell {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 5px;
  gap: 12px;
  overflow-x: hidden;
}

@media screen and (max-width: 479px) {
  .big-block { padding: 12px; }
  .quiz-shell { padding: 4px; }
}

#quiz-wrapper * { box-sizing: border-box; }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Celebration animation */
@keyframes celebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes confettiDrop {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(20px) rotate(360deg); opacity: 0; }
}

/* Combo container */
.combo-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qz-combo {
  display: grid !important;
  grid-template-columns: 38% 62%;
  grid-template-areas:
    "progress progress"
    "image content";
  column-gap: 28px;
  row-gap: 18px;
  align-items: stretch;
  background: #fff;
  border-radius: 20px;
  padding: 16px 32px 16px 16px;
  border: 2px solid #ede9fe;
  box-shadow: 0 4px 20px rgba(30,27,75,0.06);
}

.progress-row { grid-area: progress; }
.qz-img { grid-area: image; height: 100%; }
.qz-content { grid-area: content; min-width: 0; }

@media screen and (max-width: 991px) {
  .qz-combo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "image"
      "content";
    padding: 12px;
  }
}

/* Progress bar */
.progress-rail {
  width: 100%;
  height: 12px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image styling */
.qz-img,
.quiz-image-container {
  border-radius: 14px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

.quiz-image-container img {
  width: 100% !important;
  display: block;
  border-radius: 14px !important;
}

@media screen and (min-width: 992px) {
  .qz-combo { padding-top: 10px; }
  .options-block { margin-bottom: 8px; }
  .quiz-image-container { height: 100%; }
  .quiz-image-container img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media screen and (min-width: 428px) and (max-width: 991px) {
  .quiz-image-container {
    height: 280px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  .quiz-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

@media screen and (max-width: 427px) {
  .quiz-image-container img {
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain !important;
  }
}

/* Quiz typography */
.quiz-qnum {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: #1e1b4b;
}

.quiz-divider {
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #fbbf24);
  margin: 10px 0 18px;
  width: 100%;
  border-radius: 2px;
}

.quiz-leadin {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4c4877;
  margin-bottom: 10px;
  line-height: 1.6;
}

.quiz-leadin p { margin-bottom: 8px; }

.question-main-text {
  display: block;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 20px;
  line-height: 1.45;
  color: #1e1b4b;
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  .quiz-leadin { font-size: 13px; margin-bottom: 8px; }
  .question-main-text { font-size: 16px; line-height: 1.35; }
}

/* Answer options grid */
.options-block {
  display: grid;
  width: 100%;
  margin-top: 20px;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

@media screen and (max-width: 991px) {
  .options-block { grid-template-columns: 1fr; }
}

/* Quiz buttons */
#quiz-wrapper .q-button {
  width: 100%;
  height: 100%;
  min-height: 100px;
  background: #f8f7ff;
  color: #1e1b4b;
  border: 2px solid #ede9fe;
  font-size: 16px;
  box-shadow: none;
  border-radius: 14px;
}

#quiz-wrapper .q-button:hover {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}

/* Scrollbar */
.quiz-scroll {
  scrollbar-width: thin;
  scrollbar-color: #a855f7 transparent;
}
.quiz-scroll::-webkit-scrollbar { width: 8px; }
.quiz-scroll::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 8px; }
.quiz-scroll::-webkit-scrollbar-track { background: transparent; }

/* Score counter */
.score-counter {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #a855f7;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Static Pages (About, Privacy) === */
.static-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.static-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.static-hero h1 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.static-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.static-body {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
}

.static-body h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1e1b4b;
  margin: 32px 0 12px;
}

.static-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 24px 0 10px;
}

.static-body p {
  font-size: 16px;
  color: #4c4877;
  line-height: 1.7;
  margin-bottom: 14px;
}

.static-body ul {
  margin: 10px 0 14px 24px;
  list-style: disc;
}

.static-body li {
  font-size: 16px;
  color: #4c4877;
  line-height: 1.7;
  margin-bottom: 8px;
}

.static-body strong { color: #1e1b4b; }

.static-body a {
  color: #a855f7;
  text-decoration: underline;
}

.static-body a:hover { color: #ec4899; }

/* === Footer === */
.footer {
  background: #1a1a2e;
  padding: 40px 0 24px;
  margin-top: auto;
  border-top: 2px solid rgba(168,85,247,0.2);
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(168,85,247,0.15);
}

.footer-brand .footer-logo {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-link:hover { color: #fbbf24; }

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

@media screen and (max-width: 767px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}
