/* ===== Landing Page — Royal Insight Design ===== */

/* --- Design tokens (landing-only) --- */
:root {
  --royal-primary: #6D0DFD;
  --royal-secondary: #8264CE;
  --royal-tertiary: #A23900;
  --royal-neutral: #7A7583;
  --royal-primary-light: #F3EEFF;
  --royal-secondary-light: #F0ECF7;
  --royal-tertiary-light: #FFF4EE;
  --royal-dark: #1a1025;
  --royal-body: #4A4358;
  --royal-muted: #7A7583;
  --font-heading: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(26, 16, 37, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 16, 37, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 16, 37, 0.1);
  --shadow-xl: 0 12px 40px rgba(26, 16, 37, 0.12);
  --shadow-glow: 0 4px 20px rgba(109, 13, 253, 0.15);
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--royal-body);
}

body.landing-page {
  padding-bottom: 0 !important;
}

/* Override text-muted on landing page */
.landing-page .text-muted {
  color: var(--royal-muted) !important;
}

/* --- Scroll entrance animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-card {
    animation: none !important;
  }
  .coming-soon-shape {
    animation: none !important;
  }
  .progress-bar {
    animation: none !important;
  }
  .hero-card .progress-bar::after {
    animation: none !important;
  }
}

/* ===== Navbar ===== */
.landing-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.landing-nav.navbar-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(26, 16, 37, 0.08);
}

.landing-nav .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.landing-nav .btn-primary {
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(109, 13, 253, 0.2);
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
}

.landing-nav .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(109, 13, 253, 0.35);
  transform: translateY(-1px);
}

.landing-nav .nav-btn-signin {
  color: var(--royal-body);
  font-weight: 500;
  border: none;
  background: transparent;
}

.landing-nav .nav-btn-signin:hover {
  color: var(--royal-primary);
}

.landing-nav .nav-btn-signup {
  color: var(--royal-primary);
  font-weight: 600;
  border: 1.5px solid var(--royal-primary);
  border-radius: 50px;
  background: transparent;
}

.landing-nav .nav-btn-signup:hover {
  background: var(--royal-primary);
  color: #fff;
}

/* ===== Hero ===== */
.hero-section {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(109, 13, 253, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(130, 100, 206, 0.05) 0%, transparent 50%),
    radial-gradient(circle 1px at center, rgba(109, 13, 253, 0.04) 1px, transparent 1px),
    linear-gradient(160deg, #F3EEFF 0%, #EDE5FB 35%, #F0ECF7 65%, #FAF8FF 100%);
  background-size: 100% 100%, 100% 100%, 20px 20px, 100% 100%;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 100, 206, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 57, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--royal-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--royal-body);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

@media (max-width: 991px) {
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 575px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* Hero CTA */
.hero-cta {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(109, 13, 253, 0.25);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  box-shadow: 0 6px 28px rgba(109, 13, 253, 0.4);
  transform: translateY(-2px);
}

/* Hero trust badges */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-trust-badges { justify-content: flex-start; }
}

.trust-badge {
  font-size: 0.88rem;
  color: var(--royal-body);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-badge .badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--royal-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge .badge-dot i {
  font-size: 0.6rem;
  color: #fff;
}

/* Hero visual (score card) */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-card-label {
  display: inline-block;
  background: var(--royal-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: -10px;
  position: relative;
  z-index: 2;
}

.hero-card {
  background: #fff;
  border-radius: 20px;
  border-top: 1px solid rgba(109, 13, 253, 0.08);
  box-shadow:
    0 4px 6px rgba(26, 16, 37, 0.04),
    0 12px 40px rgba(109, 13, 253, 0.1);
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
  text-align: left;
  position: relative;
}

@media (min-width: 992px) {
  .hero-card {
    animation: card-float 6s ease-in-out infinite;
  }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--royal-dark);
}

.hero-card-body .hero-criterion {
  margin-bottom: 0.85rem;
}

.hero-criterion span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-body);
  display: block;
  margin-bottom: 0.35rem;
}

.hero-card .progress {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hero-card .progress-bar {
  position: relative;
  overflow: hidden;
}

.hero-card .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-feedback-preview {
  font-size: 0.82rem;
  color: var(--royal-muted);
  font-style: italic;
  border-top: 1px solid rgba(109, 13, 253, 0.06);
  padding-top: 0.75rem;
  line-height: 1.55;
}

/* ===== Problem ===== */
#problem {
  background: #FDFCFE;
}

#problem h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--royal-dark);
  font-size: 2rem;
  position: relative;
  padding-top: 3.5rem;
}

#problem h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, var(--royal-secondary), rgba(130, 100, 206, 0.2));
  border-radius: 2px;
}

.problem-callout {
  border-left: 3px solid var(--royal-tertiary);
  padding-left: 1.25rem;
  color: var(--royal-dark) !important;
}

/* ===== How It Works ===== */
#how-it-works h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--royal-dark);
  font-size: 2rem;
}

.step-container {
  position: relative;
}

.step-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: #fff !important;
  border: 2px solid;
  position: relative;
}

.step-icon.step-icon-1 {
  border-color: rgba(13, 202, 240, 0.35);
  color: #0dcaf0;
  box-shadow: 0 4px 16px rgba(13, 202, 240, 0.12);
}

.step-icon.step-icon-2 {
  border-color: rgba(25, 135, 84, 0.35);
  color: #198754;
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.12);
}

.step-icon.step-icon-3 {
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffc107;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.12);
}

.step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--royal-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(109, 13, 253, 0.3);
  z-index: 2;
}

/* Desktop connector lines between steps */
@media (min-width: 768px) {
  .step-connector::after {
    content: '';
    position: absolute;
    top: 42px;
    right: -2rem;
    width: calc(4rem);
    height: 0;
    border-top: 2px dashed rgba(130, 100, 206, 0.25);
  }
}

/* ===== Benefits ===== */
#benefits {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(109, 13, 253, 0.012) 10px,
      rgba(109, 13, 253, 0.012) 11px
    ),
    #fff;
}

#benefits h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--royal-dark);
  font-size: 2rem;
}

.feature-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
  border-left: 3px solid transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-left-width 0.2s ease;
}

.feature-card:nth-child(1) .feature-card,
.col-md-6:nth-child(3n+1) .feature-card { border-left-color: var(--royal-primary); }
.col-md-6:nth-child(3n+2) .feature-card { border-left-color: var(--royal-secondary); }
.col-md-6:nth-child(3n+3) .feature-card { border-left-color: var(--royal-tertiary); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-width: 4px;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.feature-icon-wrap i {
  font-size: 1.5rem;
}

.feature-icon-wrap.icon-primary { background: rgba(109, 13, 253, 0.08); color: var(--royal-primary); }
.feature-icon-wrap.icon-warning { background: rgba(247, 144, 9, 0.1); color: #F79009; }
.feature-icon-wrap.icon-success { background: rgba(10, 130, 23, 0.08); color: #0A8217; }
.feature-icon-wrap.icon-info { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
.feature-icon-wrap.icon-danger { background: rgba(215, 38, 15, 0.08); color: #D7260F; }
.feature-icon-wrap.icon-neutral { background: rgba(122, 117, 131, 0.1); color: var(--royal-neutral); }

.feature-card h6 {
  color: var(--royal-dark);
}

.feature-card p {
  color: var(--royal-muted) !important;
}

/* ===== For Parents ===== */
#for-parents {
  background: linear-gradient(180deg, #FAF8FF 0%, #F3EEFF 100%);
  position: relative;
}

#for-parents h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--royal-dark);
  font-size: 2rem;
}

#for-parents .parent-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--royal-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#for-parents .parent-check-icon i {
  font-size: 0.65rem;
  color: #fff;
}

.scoring-preview {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scoring-preview:hover {
  transform: rotate(0deg);
}

.scoring-bands {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scoring-band {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.scoring-band:hover {
  transform: scale(1.02);
}

.scoring-band span {
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===== Coming Soon (dark) ===== */
#coming-soon {
  background: linear-gradient(135deg, var(--royal-dark) 0%, #2d1f45 50%, var(--royal-dark) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(130, 100, 206, 0.2);
  border-bottom: 1px solid rgba(130, 100, 206, 0.2);
}

#coming-soon h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #fff;
  font-size: 2rem;
}

#coming-soon p {
  color: rgba(255, 255, 255, 0.65) !important;
}

#coming-soon strong {
  color: #e8a06a;
}

.coming-soon-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.coming-soon-shape-1 {
  width: 80px;
  height: 80px;
  background: rgba(130, 100, 206, 0.1);
  top: 15%;
  left: 8%;
  animation: gentle-float 5s ease-in-out infinite;
}

.coming-soon-shape-2 {
  width: 50px;
  height: 50px;
  background: rgba(162, 57, 0, 0.08);
  top: 60%;
  right: 12%;
  animation: gentle-float 4s ease-in-out infinite 1s;
}

.coming-soon-shape-3 {
  width: 30px;
  height: 30px;
  background: rgba(130, 100, 206, 0.12);
  bottom: 20%;
  left: 20%;
  border-radius: 4px;
  transform: rotate(45deg);
  animation: gentle-float 6s ease-in-out infinite 0.5s;
}

.coming-soon-shape-4 {
  width: 60px;
  height: 60px;
  background: rgba(109, 13, 253, 0.06);
  top: 25%;
  right: 25%;
  animation: gentle-float 5.5s ease-in-out infinite 2s;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Keep rotation on diamond shape */
.coming-soon-shape-3 {
  animation: gentle-float-rotate 6s ease-in-out infinite 0.5s;
}

@keyframes gentle-float-rotate {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-10px); }
}

/* Coming soon feature items */
.coming-soon-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(130, 100, 206, 0.15);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.coming-soon-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(130, 100, 206, 0.3);
}

.coming-soon-item > i {
  font-size: 1.3rem;
  color: var(--royal-secondary);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.coming-soon-item strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.coming-soon-item span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .coming-soon-shape-3,
  .coming-soon-shape-4 {
    display: none;
  }
}

/* ===== FAQ ===== */
#faq {
  background: #FAF8FF;
}

#faq h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--royal-dark);
  font-size: 2rem;
}

#faq .accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(109, 13, 253, 0.06);
}

#faq .accordion-item:last-child {
  margin-bottom: 0;
}

#faq .accordion-button {
  font-weight: 600;
  color: var(--royal-dark);
  border-radius: 12px !important;
}

#faq .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #F3EEFF, #FAF8FF);
  color: var(--royal-primary);
  box-shadow: none;
}

#faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(130, 100, 206, 0.2);
}

#faq .accordion-body {
  color: var(--royal-muted);
}

/* ===== Bottom CTA ===== */
.bottom-cta {
  background: linear-gradient(135deg, #5a0ad4 0%, #6D0DFD 30%, #8264CE 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.bottom-cta h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #fff;
  font-size: 2rem;
  position: relative;
}

.bottom-cta .btn {
  position: relative;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.bottom-cta .btn:hover {
  box-shadow: 0 6px 32px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.landing-footer {
  background: var(--royal-dark);
  border-top: 1px solid rgba(130, 100, 206, 0.2);
}

.landing-footer p {
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Responsive mobile CTA ===== */
@media (max-width: 575px) {
  .hero-cta {
    width: 100%;
    text-align: center;
  }
}
