/* ═══════════════════════════════════════════════════════════
   StarliteEdu – landing.css   LIGHT THEME
═══════════════════════════════════════════════════════════ */

/* ── Page background ─────────────────────────────────────── */
body {
  background: var(--land-bg);
  color: var(--land-text);
}

.hero-bg-dots {
  position: fixed; inset: 0; z-index: -2;
  background-image: radial-gradient(circle, rgba(30,58,138,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-glow-top {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%); z-index: -1;
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(14,165,233,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 60px 80px;
  max-width: 1280px; margin: 0 auto;
  gap: 80px; position: relative;
}
.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.22);
  color: #0284c7; font-size: 11px; font-weight: 700;
  padding: 7px 18px; border-radius: 100px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0ea5e9;
  animation: bdpulse 2s ease-in-out infinite;
}
@keyframes bdpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.6)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800; line-height: 1.04;
  color: var(--land-text); margin-bottom: 22px;
  letter-spacing: -.05em;
}
.title-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: var(--land-muted);
  max-width: 480px; line-height: 1.8; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--land-border);
  border-radius: var(--radius); padding: 18px 24px;
  width: fit-content;
  box-shadow: var(--shadow);
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 22px; }
.stat-num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  color: var(--navy); line-height: 1; letter-spacing: -.03em;
}
.stat-desc { font-size: 11px; color: var(--land-muted); margin-top: 5px; font-weight: 600; letter-spacing: .02em; }
.stat-divider { width: 1px; height: 36px; background: var(--land-border); flex-shrink: 0; }

/* ── HERO VISUAL – Tree Card ─────────────────────────────── */
.hero-visual { flex: 0 0 380px; display: flex; align-items: center; justify-content: center; }

.tree-card {
  background: #fff;
  border: 1px solid var(--land-border);
  border-radius: 20px; width: 340px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,58,138,.12), 0 4px 16px rgba(30,58,138,.06);
}
.tree-card-header {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; border-bottom: 1px solid var(--land-border);
  background: #f8faff;
}
.tc-dot { width: 10px; height: 10px; border-radius: 50%; }
.tc-green  { background: #10b981; }
.tc-yellow { background: #f59e0b; }
.tc-red    { background: #ef4444; }
.tc-title  { font-size: 11px; font-weight: 700; color: var(--land-muted); margin-left: 6px; letter-spacing: .06em; text-transform: uppercase; }

.tree-preview { padding: 28px 20px 20px; display: flex; flex-direction: column; align-items: center; }

.tp-node { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0; animation: fadeUp .5s ease forwards; }
.tp-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  background: #eff6ff; border: 2px solid #3b82f6;
  color: #1d4ed8;
}
.tp-root .tp-circle {
  width: 52px; height: 52px; font-size: 1.1rem;
  background: #fffbeb; border-color: #f59e0b; color: #b45309;
  box-shadow: 0 4px 16px rgba(245,158,11,.2);
}
.tp-circle-sm {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  background: #f0f9ff; border: 1.5px solid #7dd3fc; color: #0369a1;
}
.tp-label { font-size: 10px; color: var(--land-muted); font-weight: 700; letter-spacing: .04em; }

.tp-connector-v {
  width: 1.5px; height: 18px;
  background: linear-gradient(to bottom, #3b82f6, #bfdbfe);
  margin: 2px 0;
}
.tp-row { display: flex; gap: 30px; }
.tp-row-sm { display: flex; gap: 10px; margin-top: 4px; }
.tp-branch { display: flex; flex-direction: column; align-items: center; }
.tp-l1 .tp-circle { width: 40px; height: 40px; font-size: .88rem; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.tp-root { animation-delay:.1s; }
.delay1  { animation-delay:.35s; }
.delay2  { animation-delay:.55s; }
.delay3  { animation-delay:.75s; }
.delay4  { animation-delay:.9s; }
.delay5  { animation-delay:1.05s; }
.delay6  { animation-delay:1.2s; }

.tree-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--land-border);
  background: #f8faff;
}
.tc-stat { font-size: 12px; color: var(--land-muted); }
.tc-num  { font-weight: 700; color: var(--land-text); }
.tc-badge {
  background: #dcfce7; border: 1px solid #86efac;
  color: #15803d; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; letter-spacing: .08em;
  text-transform: uppercase;
}
.tc-badge::before {
  content: '\25CF';
  font-size: 7px; margin-right: 5px;
  animation: bdpulse 1.5s ease-in-out infinite;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.section-hiw {
  padding: 110px 0;
  background: #fff;
  border-top: 1px solid var(--land-border);
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #0284c7; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800; color: var(--land-text);
  margin-bottom: 52px; letter-spacing: -.04em;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px;
}
.step-card {
  background: var(--land-bg);
  border: 1px solid var(--land-border);
  border-radius: var(--radius); padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.step-card:hover {
  border-color: #93c5fd; transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(30,58,138,.10);
}
.step-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.step-card:hover::after { transform: scaleX(1); }
.step-icon-wrap {
  width: 44px; height: 44px; border-radius: 11px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step-num {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(30,58,138,.12);
  position: absolute; top: 16px; right: 18px;
}
.step-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--land-text); }
.step-card p  { font-size: 13px; color: var(--land-muted); line-height: 1.75; }

/* ── ROLES ────────────────────────────────────────────────── */
.section-hier {
  padding: 110px 0;
  background: var(--land-bg);
  border-top: 1px solid var(--land-border);
}
.roles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 22px;
}
.role-card {
  background: #fff;
  border: 1px solid var(--land-border);
  border-radius: var(--radius); padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.role-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 14px 14px 0 0;
}
.role-admin  .role-accent { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.role-parent .role-accent { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.role-child  .role-accent { background: linear-gradient(90deg, #10b981, #6ee7b7); }

.role-admin:hover  { transform:translateY(-5px); box-shadow:0 16px 40px rgba(245,158,11,.10); }
.role-parent:hover { transform:translateY(-5px); box-shadow:0 16px 40px rgba(59,130,246,.10); }
.role-child:hover  { transform:translateY(-5px); box-shadow:0 16px 40px rgba(16,185,129,.10); }

.role-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.role-admin  .role-icon { background:#fffbeb; border:1px solid #fde68a; }
.role-parent .role-icon { background:#eff6ff; border:1px solid #bfdbfe; }
.role-child  .role-icon { background:#ecfdf5; border:1px solid #a7f3d0; }

.role-card h3 { font-family:var(--font-display); font-size:1.15rem; font-weight:700; margin-bottom:18px; color:var(--land-text); }
.role-card ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.role-card li { font-size:13px; color:var(--land-muted); padding-left:20px; position:relative; line-height:1.5; }
.role-card li::before { content:'\2192'; position:absolute; left:0; font-size:12px; top:0; }
.role-admin  li::before { color:#f59e0b; }
.role-parent li::before { color:#3b82f6; }
.role-child  li::before { color:#10b981; }

/* ── CTA ─────────────────────────────────────────────────── */
.section-cta { padding:80px 0 120px; background:#fff; border-top:1px solid var(--land-border); }
.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #0369a1 100%);
  border-radius: 24px; padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px; color: #fff;
}
.cta-sub { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 36px; }
.cta-box .btn-primary {
  background: #fff; color: #1e3a8a !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.cta-box .btn-primary:hover {
  background: #f0f9ff; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--land-border); padding: 32px 0; background: var(--land-bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--land-muted); }
.footer .brand-text { color: var(--land-text); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { flex-direction: column; padding: 100px 28px 60px; gap: 52px; }
  .hero-visual { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .hero { padding: 90px 20px 50px; }
  .tree-card { width: 100%; max-width: 340px; }
  .cta-box { padding: 44px 24px; }
  .stat-item { padding: 0 14px; }
}
