/* ── landing.css ────────────────────────────────────────────────────────────
   Public marketing homepage (index.html). Fully self-contained — all
   selectors are prefixed "lp-" so this can never collide with style.css
   (used by karaoke.html / teacher.html / pupil.html).
   ──────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2a2140;
  background: #fff;
}

/* ── Splash / loading screen ── */
.lp-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5b2fd4, #e040a0);
  transition: opacity 0.6s ease;
}

.lp-splash.lp-splash-hidden {
  opacity: 0;
  pointer-events: none;
}

#lp-splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-splash-logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: lpLogoPop 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-splash-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
  animation: lpLogoPulse 1.8s ease-in-out infinite;
}

.lp-splash-title {
  font-family: 'Kaushan Script', cursive;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@keyframes lpLogoPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lpLogoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* ── Top strip ── */
.lp-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lp-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.lp-logo-text {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.lp-nav-btn {
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.lp-nav-btn:hover {
  transform: translateY(-1px);
}

.lp-login-btn {
  background: #f3f0fb;
  color: #5b2fd4;
}

.lp-login-btn:hover {
  background: #e9e3f9;
}

.lp-trial-btn {
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(155, 63, 200, 0.35);
}

.lp-trial-btn:hover {
  box-shadow: 0 6px 20px rgba(155, 63, 200, 0.5);
}

/* ── Hero section ── */
.lp-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
  flex-wrap: wrap;
}

.lp-hero-text {
  flex: 1 1 420px;
  min-width: 320px;
}

.lp-hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.lp-highlight {
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a4560;
  margin-bottom: 24px;
}

.lp-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.lp-feature-list li {
  font-size: 1rem;
  color: #2a2140;
}

.lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-cta-btn {
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-cta-btn:hover {
  transform: translateY(-1px);
}

.lp-cta-primary {
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  color: #fff;
  box-shadow: 0 6px 20px rgba(155, 63, 200, 0.4);
}

.lp-cta-secondary {
  background: #fff;
  color: #5b2fd4;
  border: 2px solid #5b2fd4;
}

.lp-cta-secondary:hover {
  background: #f3f0fb;
}

/* ── Hero video embed ── */
.lp-hero-video {
  flex: 1 1 420px;
  min-width: 320px;
}

.lp-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(91, 47, 212, 0.25);
  background: linear-gradient(135deg, #f3f0fb, #fde7f3);
}

.lp-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lp-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8a7fb0;
}

.lp-video-placeholder-icon {
  font-size: 2.4rem;
  color: #5b2fd4;
}

/* ── Footer ── */
.lp-footer {
  text-align: center;
  padding: 24px;
  color: #8a7fb0;
  font-size: 0.9rem;
}

/* ── Modals (contact / login / trial signup) ── */
.lp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lp-modal-overlay.open {
  display: flex;
}

.lp-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(91, 47, 212, 0.35);
  position: relative;
  width: 100%;
  max-width: 420px;
  animation: lpModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lpModalPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.lp-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.lp-modal-close:hover {
  color: #555;
}

.lp-modal-title {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.lp-modal-subtitle {
  font-size: 0.9rem;
  color: #6b6483;
  margin-bottom: 22px;
  line-height: 1.4;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-input {
  border: 1.5px solid #ddd6f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.lp-input:focus {
  border-color: #5b2fd4;
}

.lp-textarea {
  resize: vertical;
  min-height: 90px;
}

.lp-submit-btn {
  background: linear-gradient(90deg, #5b2fd4, #e040a0);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: box-shadow 0.15s ease;
}

.lp-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(155, 63, 200, 0.4);
}

.lp-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.lp-modal-message {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #2f9e44;
}

.lp-modal-message.lp-error {
  color: #e03131;
}

.hidden {
  display: none !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .lp-topbar {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
  }

  .lp-logo-wrap {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
  }

  .lp-hero {
    padding: 40px 20px;
  }

  .lp-hero-text h1 {
    font-size: 1.9rem;
  }
}
