/* SMART-BTQ Landing Page Precision UI
   Scope: root landing page only (index.html)
   Purpose: consistent rhythm, alignment, hierarchy, and responsive behavior. */

:root{
  --landing-max:1200px;
  --landing-gutter:clamp(16px,3vw,30px);
  --landing-radius-xl:28px;
  --landing-radius-lg:22px;
  --landing-radius-md:16px;
  --landing-space:clamp(54px,7vw,84px);
  --landing-shadow:0 20px 55px rgba(18,67,55,.09);
  --landing-shadow-soft:0 10px 30px rgba(18,67,55,.065);
}

/* ---------- Global landing rhythm ---------- */
body{
  background:
    radial-gradient(circle at 0 0,rgba(43,138,117,.09),transparent 28rem),
    radial-gradient(circle at 100% 22rem,rgba(213,170,67,.08),transparent 24rem),
    linear-gradient(180deg,#f8fbf9 0%,#fbfcfb 42%,#fffaf2 100%);
}
main{overflow:hidden}
.wrap{width:min(var(--landing-max),calc(100% - (var(--landing-gutter) * 2)))}
.section{padding:calc(var(--landing-space) / 2) 0!important}
.section + .section{padding-top:calc(var(--landing-space) / 2)!important}
.section[id]{scroll-margin-top:92px}

.glassCard{
  border-radius:var(--landing-radius-xl)!important;
  padding:clamp(22px,3vw,32px)!important;
  background:rgba(255,255,255,.9)!important;
  border:1px solid rgba(15,92,77,.11)!important;
  box-shadow:var(--landing-shadow)!important;
  backdrop-filter:blur(12px) saturate(115%);
}
.sectTitle,
.section h2{
  letter-spacing:-.025em;
  text-wrap:balance;
}
.sectTitle{line-height:1.18!important}
.sectLead,.lead{max-width:74ch}

/* ---------- Header ---------- */
.top{
  background:rgba(250,252,250,.92)!important;
  border-bottom:1px solid rgba(15,92,77,.10)!important;
  box-shadow:0 8px 26px rgba(24,64,54,.045)!important;
}
.topin{
  min-height:76px!important;
  gap:10px!important;
  padding:8px 0;
}
.top .logo.brandEmblem,
.top .logo.brandEmblem img{width:46px;height:46px}
.top .brand{min-width:225px}
.top .brand b{font-size:1.02rem;color:#163b33;letter-spacing:.015em}
.top .brand span{line-height:1.35;color:#687b76}
.top .btn{
  min-height:40px!important;
  padding:9px 13px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
.landingNav{display:flex;align-items:center;gap:8px}
.landingNav>a[href="#loginSection"]{
  background:linear-gradient(135deg,var(--brand),var(--brand3))!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(15,92,77,.16)!important;
}

/* ---------- Hero ---------- */
.heroLanding{
  padding:clamp(34px,5vw,58px) 0 clamp(34px,4vw,50px)!important;
  background:linear-gradient(180deg,#f4faf6 0%,#faf8ef 62%,rgba(248,252,249,0) 100%)!important;
}
.heroLanding .wrap{width:min(var(--landing-max),calc(100% - (var(--landing-gutter) * 2)))}
.heroGrid{
  grid-template-columns:minmax(0,1.13fr) minmax(360px,.87fr)!important;
  gap:clamp(18px,2.2vw,28px)!important;
  align-items:stretch;
}
.heroPanel,.heroSide{
  border-radius:30px!important;
  padding:clamp(24px,3vw,36px)!important;
}
.heroPanel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:590px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(252,249,238,.94))!important;
  border:1px solid rgba(181,151,77,.20)!important;
}
.heroPanel h1{
  font-size:clamp(2.55rem,4.55vw,4.55rem)!important;
  line-height:1.02!important;
  max-width:12.7ch!important;
  margin:16px 0 18px!important;
}
.heroPanel h1:after{margin-top:20px!important}
.heroPanel .leadXL{
  max-width:69ch!important;
  font-size:clamp(.98rem,1.2vw,1.08rem)!important;
  line-height:1.75!important;
  margin:0;
}
.eyHero{align-self:flex-start}
.heroActions{gap:10px!important;margin-top:24px!important}
.heroActions .ctaBig{min-height:48px!important;padding:12px 17px!important;border-radius:12px!important}
.floatStats{gap:10px!important;margin-top:26px!important}
.fstat{
  min-height:126px;
  padding:15px!important;
  border-radius:17px!important;
  box-shadow:none!important;
}
.fstat b{font-size:1.42rem!important;margin-bottom:5px}
.fstat span{display:block;line-height:1.52}

.heroSide{
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,rgba(255,252,243,.98),rgba(255,255,255,.96))!important;
  border:1px solid rgba(181,151,77,.21)!important;
}
.livePill{align-self:flex-start;margin-bottom:14px!important}
.quranStudyVisual{margin-bottom:20px!important;padding:18px!important;border-radius:22px!important}
.mushafPages{margin:16px 0 14px!important}
.mushafPage{min-height:176px!important}
.sideTitle{margin-top:1px;font-size:1rem!important}
.sideList{grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:12px!important}
.sideItem{padding:11px!important;border-radius:14px!important;min-height:92px}
.sideItem b{font-size:.9rem;line-height:1.35}
.sideItem .small{font-size:.76rem;line-height:1.45}
.sideNum{width:30px!important;height:30px!important;flex-basis:30px!important;border-radius:10px!important;font-size:.82rem}

/* ---------- Live metrics ---------- */
.metricsStrip{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:22px!important;
}
.metric{
  min-height:112px;
  padding:16px!important;
  border-radius:16px!important;
  box-shadow:var(--landing-shadow-soft)!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.metric b{font-size:clamp(1.28rem,2vw,1.62rem)!important;line-height:1.1;margin:4px 0 6px}
.metric span{line-height:1.42}

/* ---------- Content cards ---------- */
.valueGrid{gap:12px!important;margin-top:24px!important}
.valueCard,.feature,.role,.step,.quick,.miniCard,.schoolChip{
  border-color:rgba(15,92,77,.10)!important;
  box-shadow:none;
}
.valueCard,.feature,.role,.step,.quick{
  border-radius:18px!important;
  padding:18px!important;
}
.valueCard,.feature,.role,.step,.quick,.grade,.story,.schoolChip{
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
@media (hover:hover){
  .valueCard:hover,.feature:hover,.role:hover,.step:hover,.quick:hover,.grade:hover,.story:hover,.schoolChip:hover{
    transform:translateY(-2px);
    border-color:rgba(15,92,77,.18)!important;
    box-shadow:0 12px 28px rgba(18,67,55,.075)!important;
  }
}
.valueCard h3,.feature h3,.role h3{margin-bottom:7px!important}
.valueCard .lead,.feature .lead,.role .lead{margin-bottom:0}
.arabIcon,.iconBubble{box-shadow:0 10px 22px rgba(15,92,77,.10)!important}

.featureGrid{gap:12px!important;margin-top:24px!important}
.previewBand,.testiWrap,.demoCard,.studentLogin,.profileGrid{
  gap:22px!important;
  margin-top:0!important;
  align-items:stretch;
}
.previewMock,.cinemaBand,.videoStage{border-radius:var(--landing-radius-xl)!important}
.previewMock{min-height:430px!important;padding:26px!important}
.previewMock h2{max-width:16ch;line-height:1.15}
.miniScreen{left:26px!important;right:26px!important;bottom:26px!important;top:150px!important;border-radius:19px!important}
.miniGrid{gap:10px!important}
.miniCard{min-height:91px!important;border-radius:14px!important}

/* Role cards live inside a half-width column; 2x2 is more readable than 4 across. */
.roleGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:20px!important}
.role{min-height:154px}
.role .tag{font-size:.69rem!important;padding:5px 8px!important}

/* Testimonials and school card */
.testiWrap>.glassCard{height:100%}
.sliderViewport{min-height:230px!important}
.sliderCard .toolbar{align-items:flex-start!important}
.quote{font-size:1rem!important;line-height:1.72!important;margin-top:16px!important}
.person span{display:block;margin-top:3px}
.schoolList{grid-template-columns:1fr!important;gap:10px!important}
.schoolChip{padding:15px!important;border-radius:15px!important}

/* ---------- Interactive demo ---------- */
.demoCard{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;align-items:center!important}
.demoCard>div:first-child{padding:4px 6px 4px 0}
.playerBtns{margin-top:20px!important}
.timeline{gap:7px!important;margin-top:18px!important}
.timeline .tItem{padding:8px 9px!important;font-size:.75rem!important}
.videoStage{min-height:420px!important;padding:18px!important}
.videoFrame{inset:74px 18px 18px!important;border-radius:20px!important}
.scene{padding:20px!important}
.sceneHead span{line-height:1.55;display:block}
.sceneMock{gap:9px!important}
.sceneBox{min-height:92px!important;padding:12px!important;border-radius:14px!important}

/* ---------- Class coverage ---------- */
.ribbon{border-radius:18px!important;padding:16px 18px!important}
.classDeck{gap:12px!important;margin-top:22px!important}
.grade{
  min-height:320px!important;
  padding:22px!important;
  border-radius:20px!important;
  box-shadow:none!important;
}
.gradeNum{font-size:2.55rem!important;line-height:1;margin-bottom:10px}
.grade h3{font-size:1.22rem;margin:0 0 8px}
.grade .lead{margin-top:0;line-height:1.62}
.grade .btn{width:100%;margin-top:auto!important}
.legacy{border-radius:18px!important;box-shadow:none!important}

/* ---------- Workflow / profile / login ---------- */
.stepsRow{gap:10px!important;margin-top:22px!important}
.step{min-height:146px}
.step .lead{font-size:.9rem;line-height:1.58}
.profileGrid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important}
.cinemaBand{padding:30px!important;display:flex;flex-direction:column;justify-content:center}
.brandLockup{max-width:300px!important}
.cinemaHeadline{max-width:16ch;line-height:1.17!important}
.cinemaText{max-width:64ch;line-height:1.72!important}
.storyList{gap:10px!important}
.story{padding:14px!important;border-radius:15px!important}
.story .iconBubble{flex:0 0 44px}

.studentLogin{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)!important;align-items:start!important}
.studentLogin>.glassCard{height:100%}
.loginHero{margin-bottom:14px!important}
.field{margin-top:13px!important}
.field input{min-height:46px;border-radius:12px!important;padding:11px 13px!important}
#studentLoginBtn{min-height:48px!important;border-radius:12px!important}
.quickGrid{gap:9px!important;margin-top:16px!important}
.quick{min-height:104px;padding:13px!important}
.quick b{display:block;margin-bottom:4px}

/* ---------- Footer ---------- */
.mpi-universal-footer{margin-top:48px!important;padding-top:24px!important;padding-bottom:24px!important}

/* ---------- Tablet ---------- */
@media(max-width:1100px){
  .heroGrid{grid-template-columns:1fr!important}
  .heroPanel{min-height:auto!important}
  .heroPanel h1{max-width:15ch!important}
  .heroSide{max-width:none}
  .metricsStrip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .demoCard,.profileGrid,.studentLogin{grid-template-columns:1fr!important}
  .demoCard>div:first-child{padding:0}
  .roleGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .videoStage{min-height:430px!important}
}

@media(max-width:820px){
  .topin{align-items:center!important}
  .top .brand{min-width:0;flex:1}
  .top .spacer{display:none}
  .landingNav{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding:1px 0 2px;scrollbar-width:none}
  .landingNav::-webkit-scrollbar{display:none}
  .landingNav>a{flex:0 0 auto;min-width:max-content}
  .metricsStrip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .valueGrid,.featureGrid,.stepsRow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .classDeck{grid-template-columns:1fr!important}
  .grade{min-height:auto!important}
  .previewMock{min-height:410px!important}
}

/* ---------- Mobile ---------- */
@media(max-width:640px){
  :root{--landing-gutter:12px;--landing-space:46px}
  .topin{padding:8px 0 10px!important;gap:8px!important}
  .top .logo.brandEmblem,.top .logo.brandEmblem img{width:42px;height:42px}
  .top .brand b{font-size:.94rem}
  .top .brand span{display:block!important;font-size:.7rem!important;max-width:230px}
  .landingNav>a{font-size:.78rem;min-height:38px!important;padding:8px 10px!important}
  .heroLanding{padding:26px 0 30px!important}
  .heroPanel,.heroSide,.glassCard{border-radius:21px!important;padding:19px!important}
  .heroPanel h1{font-size:clamp(2.08rem,10.8vw,3rem)!important;max-width:none!important;line-height:1.03!important;margin-top:14px!important}
  .heroPanel h1:after{width:66px!important;margin-top:15px!important}
  .heroPanel .leadXL{font-size:.95rem!important;line-height:1.66!important}
  .heroActions{margin-top:20px!important}
  .floatStats{grid-template-columns:1fr!important;margin-top:20px!important}
  .fstat{min-height:auto!important;padding:14px!important}
  .heroSide{padding:17px!important}
  .sideList{grid-template-columns:1fr!important}
  .sideItem{min-height:auto!important}
  .mushafPages{grid-template-columns:1fr 1fr!important}
  .mushafPage{min-height:148px!important;padding:13px 10px!important}
  .arabicLine{font-size:1.65rem!important}
  .arabicPractice{font-size:1.25rem!important}
  .traceWord{font-size:1.65rem!important}
  .metricsStrip,.valueGrid,.featureGrid,.roleGrid,.stepsRow,.quickGrid{grid-template-columns:1fr!important}
  .metric{min-height:94px!important}
  .section{padding:23px 0!important}
  .sectTitle,.section h2{font-size:clamp(1.55rem,7.6vw,2rem)!important;line-height:1.18!important}
  .previewMock{min-height:auto!important;padding:20px!important}
  .previewMock h2{max-width:none}
  .miniScreen{position:relative!important;inset:auto!important;margin-top:20px!important;padding:14px!important}
  .miniGrid{grid-template-columns:1fr!important}
  .miniCard{min-height:auto!important}
  .sliderViewport{min-height:285px!important}
  .sliderCard .toolbar{gap:10px!important}
  .slideBtns{width:100%;justify-content:flex-end}
  .videoStage{min-height:auto!important;padding:15px!important}
  .videoFrame{position:relative!important;inset:auto!important;margin-top:14px!important;min-height:390px!important}
  .scene{padding:16px!important}
  .sceneHead{flex-direction:column!important}
  .sceneBadge{align-self:flex-start}
  .sceneMock{grid-template-columns:1fr 1fr!important}
  .sceneBox{min-height:88px!important;padding:10px!important}
  .ribbon{align-items:flex-start!important;padding:15px!important}
  .ribbon .btn{width:100%}
  .cinemaBand{padding:22px!important}
  .brandLockup{max-width:240px!important}
  .loginHero>div:last-child{width:100%}
  .loginHero>div:last-child .btn{width:100%}
  .studentLogin .story .btn{width:100%;margin-top:2px}
  .mpi-universal-footer{margin-top:30px!important}
}

@media(max-width:420px){
  .top .brand span{font-size:.66rem!important}
  .mushafPages{grid-template-columns:1fr!important}
  .sceneMock{grid-template-columns:1fr!important}
  .videoFrame{min-height:590px!important}
  .sliderViewport{min-height:325px!important}
}

@media(prefers-reduced-motion:reduce){
  .valueCard,.feature,.role,.step,.quick,.grade,.story,.schoolChip{transition:none!important}
}
