:root {
  --bgA: #FAFAFF;
  --bgB: #FDFCF8;
  --card: #ffffff;
  --text: #1e2633;
  --muted: #64748b;
  --accentA: #60a5fa;
  --accentB: #f59e0b;
  --shadow: 0 16px 40px rgba(31,41,55,.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.landing-body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, var(--bgA), transparent 70%),
    radial-gradient(1000px 520px at 85% 20%, var(--bgB), transparent 60%),
    var(--bgB);
}

.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; }
.logo-text { font-weight: 900; font-size: 36px; background: linear-gradient(135deg, var(--accentA), var(--accentB)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-subtitle { font-weight: 600; font-size: 14px; color: var(--muted); margin-top: -2px; }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a { text-decoration: none; color: #334155; font-weight: 800; padding: 8px 12px; border-radius: 12px; }
.nav-links .btn-ghost { background: #ffffff; box-shadow: 0 8px 18px rgba(31,41,55,.08); }

/* Hero */
.hero { max-width: 1180px; margin: 40px auto 60px; padding: 0 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero-text h1 { margin: 0 0 16px 0; font-size: 44px; font-weight: 900; line-height: 1.2; }
.hero-text p { margin: 0 0 24px 0; font-size: 20px; color: var(--muted); line-height: 1.6; }
.cta { display: flex; gap: 16px; align-items: center; }
.btn-primary { display: inline-block; padding: 16px 24px; border-radius: 20px; color: #fff; text-decoration: none; font-weight: 900; font-size: 16px; background: linear-gradient(135deg, var(--accentA), var(--accentB)); box-shadow: 0 16px 32px rgba(96,165,250,.24); transition: transform .12s ease, filter .15s ease; }
.btn-primary:hover { transform: scale(1.05); filter: brightness(1.05); }
.btn-link { text-decoration: none; font-weight: 900; color: #4f46e5; font-size: 16px; }

.hero-media { display: grid; place-items: center; }
.hero-media img { box-shadow: 0 24px 48px rgba(31,41,55,.15); }
.placeholder .ph { width: 100%; border-radius: var(--radius); background: linear-gradient(135deg, #fff, #f8fafc); box-shadow: var(--shadow); color: #94a3b8; font-weight: 800; display: grid; place-items: center; text-align: center; }
.h-hero { height: 360px; }

/* Features */
.features { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature-card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 32px; transition: transform .18s ease, box-shadow .18s ease; text-align: center; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 32px 64px rgba(31,41,55,.2); }
.feature-icon { font-size: 64px; margin-bottom: 24px; display: block; }
.feature-card h3 { margin: 0 0 20px 0; font-size: 26px; font-weight: 900; color: var(--text); }
.feature-card p { margin: 0 0 28px 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.feature-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.feature-list li { padding: 12px 0; color: var(--muted); font-size: 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 12px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li:hover { color: var(--accentA); transform: translateX(4px); transition: all 0.2s ease; }

/* Characters section */
.characters { max-width: 1180px; margin: 60px auto; padding: 0 24px; text-align: center; }
.characters-header { margin-bottom: 40px; }
.characters-header h2 { margin: 0 0 12px 0; font-size: 36px; font-weight: 900; color: var(--text); }
.characters-header p { margin: 0; font-size: 18px; color: var(--muted); }

/* Carousel */
.carousel-container { position: relative; margin: 40px 0; }
.carousel-wrapper { overflow: hidden; border-radius: 24px; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.character-card { flex: 0 0 calc(100% / 3); padding: 0 12px; }
.character-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 0; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.character-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(31,41,55,.18); }
.character-image { height: 250px; overflow: hidden; }
.character-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.character-card:hover .character-image img { transform: scale(1.05); }
.character-info { padding: 24px; }
.character-info h4 { margin: 0 0 8px 0; font-size: 20px; font-weight: 900; color: var(--text); }
.character-role { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: var(--accentA); text-transform: uppercase; letter-spacing: 0.5px; }
.character-info p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Carousel controls */
.carousel-controls { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }
.carousel-btn { width: 48px; height: 48px; border: none; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 24px; font-weight: 900; color: var(--accentA); cursor: pointer; transition: all 0.3s ease; }
.carousel-btn:hover { transform: scale(1.1); box-shadow: 0 12px 24px rgba(31,41,55,.2); }
.carousel-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Carousel dots */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 12px; height: 12px; border: none; border-radius: 50%; background: #e2e8f0; cursor: pointer; transition: all 0.3s ease; }
.dot.active { background: var(--accentA); transform: scale(1.2); }
.dot:hover { background: var(--accentB); }

/* Showcase grid */
.showcase { max-width: 1180px; margin: 60px auto; padding: 0 24px; text-align: center; }
.showcase h2 { margin: 0 0 40px 0; font-size: 32px; font-weight: 900; color: var(--text); }
.learning-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.learning-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 24px; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.learning-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(31,41,55,.16); }
.learning-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.learning-card h3 { margin: 0 0 12px 0; font-size: 20px; font-weight: 900; color: var(--text); }
.learning-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* CTA bottom */
.cta-bottom { max-width: 980px; margin: 24px auto; text-align: center; padding: 0 24px; }
.cta-bottom h2 { margin: 0 0 8px 0; font-size: 28px; font-weight: 900; }
.cta-bottom p { margin: 0 0 14px 0; color: var(--muted); }

/* Footer */
.site-footer { max-width: 1180px; margin: 24px auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f1f5f9; }
.site-footer .logo { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer .logo-text { font-weight: 900; font-size: 24px; background: linear-gradient(135deg, var(--accentA), var(--accentB)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-footer .logo-subtitle { font-weight: 600; font-size: 12px; color: var(--muted); margin-top: -1px; }
.socials { display: flex; gap: 10px; }
.social { text-decoration: none; font-weight: 800; color: #475569; background: #fff; padding: 8px 12px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .12s ease; }
.social:hover { transform: translateY(-1px); }

/* Motion */
.appear { animation: fade-in .35s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-text h1 { font-size: 36px; }
  .character-card { flex: 0 0 calc(100% / 2); }
  .features { gap: 24px; }
  .learning-features { grid-template-columns: 1fr; }
  .logo-text { font-size: 32px; }
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .character-card { flex: 0 0 calc(100% / 2); }
  .feature-card { padding: 32px 24px; }
  .learning-features { grid-template-columns: 1fr; }
  .logo-text { font-size: 28px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 16px; }
  .characters-header h2 { font-size: 28px; }
  .showcase h2 { font-size: 24px; }
  .character-card { flex: 0 0 100%; }
  .cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary { text-align: center; }
  .logo-text { font-size: 24px; }
  .site-footer .logo-text { font-size: 20px; }
  .feature-card { padding: 24px 20px; }
  .feature-icon { font-size: 48px; }
  .feature-card h3 { font-size: 22px; }
  .feature-card p { font-size: 16px; }
  .feature-list li { font-size: 14px; }
}