/* ===================================================
   LANDING PAGE CSS
   =================================================== */

.landing-body { background: var(--bg-primary); overflow-x: hidden; }

/* NAVBAR */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: all 0.3s ease;
}

.nav-bar.scrolled {
  background: rgba(12,18,32,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.nav-mobile-btn {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-secondary); font-size: 0.95rem; padding: var(--sp-2) 0; }
.mobile-menu a:hover { color: var(--text-primary); }

/* HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,90,254,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  bottom: 0; right: 10%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

.floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: var(--brand-500); top: 10%; right: 5%; animation-delay: 0s; }
.orb-2 { width: 200px; height: 200px; background: var(--teal-500); bottom: 20%; right: 20%; animation-delay: -4s; }
.orb-3 { width: 150px; height: 150px; background: var(--purple-500); top: 60%; left: 5%; animation-delay: -8s; }

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 580px; }

.hero-badge { margin-bottom: var(--sp-5); }

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  font-family: var(--font-display);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-400), var(--teal-400), var(--purple-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.hero-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(61,90,254,0.07);
  border: 1px solid rgba(61,90,254,0.15);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.hero-disclaimer strong { color: var(--text-primary); }

.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-8); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }
.hero-stat-div { width: 1px; height: 30px; background: var(--border-subtle); }

/* Dashboard Preview */
.hero-visual { position: relative; }

.dashboard-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(61,90,254,0.1);
  animation: float 6s ease-in-out infinite;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.preview-url { font-size: 0.75rem; color: var(--text-muted); margin: 0 auto; }

.preview-body { display: flex; height: 320px; }

.preview-sidebar {
  width: 56px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
}

.preview-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.preview-nav-item {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.5;
}

.preview-nav-item.active {
  background: rgba(61,90,254,0.2);
  opacity: 1;
}

.preview-content { flex: 1; padding: 16px; overflow: hidden; }

.preview-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }

.preview-card {
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-card:hover { transform: translateY(-2px); }
.preview-card.brand { background: rgba(61,90,254,0.15); border: 1px solid rgba(61,90,254,0.25); }
.preview-card.teal { background: rgba(20,184,166,0.15); border: 1px solid rgba(20,184,166,0.25); }
.preview-card.purple { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.25); }
.pc-title { font-weight: 700; color: var(--text-primary); }
.pc-sub { color: var(--text-muted); font-size: 0.65rem; }

.preview-result {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.pr-title { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.pr-bar { height: 6px; background: var(--bg-input); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.pr-fill { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--orange-400)); border-radius: 3px; }
.pr-label { font-size: 0.7rem; color: var(--text-secondary); font-weight: 500; }

/* SECTIONS */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }

.section-header { margin-bottom: var(--sp-12); }
.section-header h2 { font-size: 2.25rem; font-family: var(--font-display); margin-bottom: var(--sp-3); }
.section-header p { font-size: 1rem; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: center;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}

.step-card.visible { opacity: 1; transform: translateY(0); }
.step-num { font-size: 0.75rem; font-weight: 700; color: var(--brand-400); margin-bottom: var(--sp-3); letter-spacing: 0.1em; }
.step-icon { font-size: 2rem; margin-bottom: var(--sp-3); }
.step-card h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); }

.step-connector { width: 40px; height: 2px; background: linear-gradient(90deg, var(--brand-500), var(--teal-500)); border-radius: 1px; flex-shrink: 0; }

/* ASSESSMENTS */
.assessments-grid { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-8); }

.assessment-lcard {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateX(-20px);
}

.assessment-lcard.visible { opacity: 1; transform: translateX(0); }
.assessment-lcard:hover { border-color: var(--border-default); transform: translateX(4px); box-shadow: var(--shadow-md); }

.assessment-lcard.adhd { border-left: 3px solid var(--brand-500); }
.assessment-lcard.depression { border-left: 3px solid var(--teal-500); }
.assessment-lcard.autism { border-left: 3px solid var(--purple-500); }

.alc-icon { font-size: 2.5rem; flex-shrink: 0; }
.alc-body { flex: 1; }
.alc-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--sp-2); }
.alc-body h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.alc-body p { color: var(--text-secondary); font-size: 0.9rem; }
.alc-meta { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); font-size: 0.8rem; color: var(--text-muted); }

.disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(135deg, rgba(61,90,254,0.05), rgba(168,85,247,0.05));
  border: 1px solid rgba(61,90,254,0.15);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.disclaimer-box span { font-size: 1.5rem; flex-shrink: 0; }

/* PROFESSIONALS */
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }

.prof-card-mock {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xl);
}

.pcm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.pcm-title { font-weight: 700; font-size: 1rem; }
.pcm-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.pcm-stat { text-align: center; padding: var(--sp-3); background: var(--glass-bg); border-radius: var(--radius-md); }
.pcm-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--brand-400); }
.pcm-label { font-size: 0.75rem; color: var(--text-muted); }

.pcm-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.pcm-patient { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); background: var(--glass-bg); border-radius: var(--radius-md); }
.pcm-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--brand-500),var(--brand-700)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0; }
.pcm-pname { font-size: 0.875rem; font-weight: 600; }
.pcm-presult { font-size: 0.75rem; color: var(--text-muted); }

.prof-content h2 { font-size: 2rem; margin: var(--sp-3) 0 var(--sp-4); }
.prof-features { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.prof-feature { display: flex; gap: var(--sp-4); }
.pf-icon { font-size: 1.5rem; flex-shrink: 0; }
.prof-feature strong { display: block; margin-bottom: 4px; }
.prof-feature p { font-size: 0.875rem; color: var(--text-secondary); }

/* PLANS */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}

.plan-card.visible { opacity: 1; transform: translateY(0); }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-default); }

.plan-card.featured {
  border-color: var(--brand-500);
  background: linear-gradient(135deg, rgba(61,90,254,0.08), var(--bg-card));
  box-shadow: var(--shadow-brand), var(--shadow-md);
}

.plan-card.professional {
  border-color: var(--teal-500);
  background: linear-gradient(135deg, rgba(20,184,166,0.06), var(--bg-card));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-header { margin-bottom: var(--sp-5); }
.plan-name { font-weight: 700; font-size: 1rem; color: var(--text-secondary); margin-bottom: var(--sp-2); }
.plan-price { margin-bottom: var(--sp-2); }
.plan-amount { font-size: 1.75rem; font-weight: 900; font-family: var(--font-display); }
.plan-period { font-size: 0.875rem; color: var(--text-muted); }
.plan-desc { font-size: 0.8rem; color: var(--text-muted); }

.plan-features { list-style: none; margin-bottom: var(--sp-6); }
.plan-features li { font-size: 0.875rem; padding: var(--sp-2) 0; border-bottom: 1px solid var(--border-subtle); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li.disabled { color: var(--text-muted); }

/* SECURITY */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.security-feature { text-align: center; padding: var(--sp-6); }
.sf-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); }
.security-feature h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.security-feature p { font-size: 0.875rem; color: var(--text-secondary); }

/* CTA */
.cta-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(135deg, rgba(61,90,254,0.06) 0%, rgba(168,85,247,0.06) 100%);
  border-top: 1px solid var(--border-subtle);
}

.cta-glow {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(61,90,254,0.12), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title { font-size: 2.5rem; font-family: var(--font-display); line-height: 1.2; margin-bottom: var(--sp-3); }
.cta-sub { font-size: 1.05rem; }

/* FOOTER */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 var(--sp-8);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); margin-bottom: var(--sp-8); }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); margin-top: var(--sp-3); }
.footer-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links strong { font-size: 0.875rem; color: var(--text-primary); margin-bottom: var(--sp-2); }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: var(--sp-6); border-top: 1px solid var(--border-subtle); font-size: 0.8rem; color: var(--text-muted); }

/* RESPONSIVE LANDING */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-section .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .prof-grid { grid-template-columns: 1fr; }
  .prof-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-btn { display: block; }
  .hero-title { font-size: 2rem; }
  .plans-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); }
  .hero-actions { flex-direction: column; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
