/* ═══════════════════════════════════════════════════════════════
   EXAMI – SEO-Friendly Platform CSS
   Mobile-first, performance-optimized
═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;

  --text-900: #0F172A;
  --text-700: #334155;
  --text-500: #64748B;
  --text-300: #CBD5E1;

  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;

  --border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);

  --font-main: 'Inter', 'Hind Siliguri', sans-serif;
  --font-bn: 'Hind Siliguri', sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-700);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,70,229,.3); }
.btn--outline {
  border: 2px solid var(--border);
  color: var(--text-700);
  background: transparent;
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,.05); }
.btn--ghost { color: var(--text-700); }
.btn--ghost:hover { color: var(--primary); }
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ─── Section Common ────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__sub {
  display: inline-block;
  background: rgba(79,70,229,.1);
  color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-900);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section__desc { color: var(--text-500); font-size: 1.05rem; }

/* ─── Text Gradient ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-900);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: var(--primary); }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a { color: var(--text-700); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav__links a:hover { color: var(--primary); }

.nav__actions {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .25rem;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-700);
  border-radius: 2px;
  transition: all .2s;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; margin-left: 0; }
  .nav__hamburger { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #F8FAFF 0%, #EEF2FF 50%, #F0FDFA 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.hero__content { max-width: 620px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-900);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-family: var(--font-bn);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-500);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: var(--font-bn);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text-900); }
.stat span { font-size: .8rem; color: var(--text-500); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__trust { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-500); }
.trust__badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.trust-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .2rem .6rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Phone Mockup */
.hero__visual { position: relative; flex-shrink: 0; }

.phone-mockup {
  width: 280px;
  background: var(--text-900);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  min-height: 440px;
}
.screen__header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.screen-title { font-weight: 700; font-size: .9rem; }
.screen-timer { font-size: .85rem; background: rgba(255,255,255,.2); padding: .2rem .6rem; border-radius: 6px; }

.screen__question { padding: 1.25rem; }
.q-number { font-size: .75rem; color: var(--text-500); margin-bottom: .5rem; }
.q-text { font-size: .9rem; font-weight: 600; color: var(--text-900); margin-bottom: 1rem; font-family: var(--font-bn); line-height: 1.5; }
.q-options { display: flex; flex-direction: column; gap: .5rem; }
.option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text-700);
  cursor: pointer;
  font-family: var(--font-bn);
}
.option--correct {
  border-color: var(--success);
  background: rgba(16,185,129,.08);
  color: var(--success);
  font-weight: 600;
}
.opt-letter {
  width: 22px; height: 22px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.screen__footer { padding: 1rem 1.25rem; background: var(--bg-light); }
.rank-bar { display: flex; justify-content: space-between; font-size: .82rem; }
.rank-bar span { color: var(--text-500); }
.rank-bar strong { color: var(--primary); }

/* Float Cards */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 700; color: var(--text-900); }
.float-card small { color: var(--text-500); }
.float-card span { font-size: 1.4rem; }
.float-card--1 { top: 1rem; right: -3rem; animation-delay: 0s; }
.float-card--2 { bottom: 3rem; left: -4rem; animation-delay: 1.5s; }

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

/* Hero Background */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.bg-blob--1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -200px; right: -100px;
}
.bg-blob--2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -150px; left: -100px;
}

@media (min-width: 900px) {
  .hero__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero__content { text-align: left; }
  .float-card--1 { right: -4rem; }
  .float-card--2 { left: -5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════════════════════════ */
.categories { background: var(--bg-light); }

.categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .categories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .categories__grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
}
.cat-card--bcs::before { background: linear-gradient(90deg, #4F46E5, #818CF8); }
.cat-card--bank::before { background: linear-gradient(90deg, #06B6D4, #67E8F9); }
.cat-card--primary::before { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.cat-card--ntrca::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.cat-card--psc::before { background: linear-gradient(90deg, #EF4444, #FCA5A5); }
.cat-card--more::before { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); }

.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.cat-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.cat-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text-900); margin-bottom: .5rem; font-family: var(--font-bn); }
.cat-card__desc { font-size: .875rem; color: var(--text-500); line-height: 1.6; margin-bottom: 1rem; font-family: var(--font-bn); }
.cat-card__meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-500); margin-bottom: 1.25rem; }
.cat-card__link { font-size: .88rem; font-weight: 600; color: var(--primary); transition: gap .15s; }
.cat-card__link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════ */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.feature-item {
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
}
.feature-item:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(79,70,229,.12); }

.feature-item__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-icon--purple { background: rgba(79,70,229,.1); }
.feature-icon--blue   { background: rgba(6,182,212,.1); }
.feature-icon--green  { background: rgba(16,185,129,.1); }
.feature-icon--orange { background: rgba(245,158,11,.1); }
.feature-icon--pink   { background: rgba(236,72,153,.1); }
.feature-icon--teal   { background: rgba(20,184,166,.1); }

.feature-item h3 { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: .5rem; }
.feature-item p { font-size: .875rem; color: var(--text-500); line-height: 1.6; font-family: var(--font-bn); }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════ */
.how-it-works { background: var(--bg-light); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps { flex-direction: row; gap: 2rem; } }

.step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  position: relative;
}
.step__num {
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.step__content h3 { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: .5rem; font-family: var(--font-bn); }
.step__content p { font-size: .875rem; color: var(--text-500); line-height: 1.6; font-family: var(--font-bn); }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid var(--border);
}
.testimonial__stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial p { font-size: .9rem; color: var(--text-700); line-height: 1.7; margin-bottom: 1.25rem; font-family: var(--font-bn); font-style: normal; }
.testimonial cite { font-style: normal; }
.testimonial cite strong { display: block; font-size: .9rem; color: var(--text-900); font-weight: 700; }
.testimonial cite span { font-size: .8rem; color: var(--text-500); }

/* ═══════════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════════ */
.pricing { background: var(--bg-light); }

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.price-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow .25s;
}
.price-card--popular {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(79,70,229,.15);
}
.price-card:hover { box-shadow: var(--shadow-lg); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card__name { font-size: 1rem; font-weight: 700; color: var(--text-700); margin-bottom: 1rem; font-family: var(--font-bn); }
.price-card__price { display: flex; align-items: baseline; gap: .2rem; margin-bottom: 1.5rem; }
.currency { font-size: 1.25rem; font-weight: 700; color: var(--text-900); }
.amount { font-size: 2.5rem; font-weight: 800; color: var(--text-900); line-height: 1; }
.period { font-size: .875rem; color: var(--text-500); }
.price-card__save { font-size: .85rem; color: var(--success); font-weight: 600; margin-top: -.75rem; margin-bottom: 1.5rem; font-family: var(--font-bn); }

.price-card__features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.price-card__features li { font-size: .875rem; color: var(--text-700); font-family: var(--font-bn); }

.pricing__payment { text-align: center; font-size: .9rem; color: var(--text-500); font-family: var(--font-bn); }

/* ═══════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════ */
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: .75rem; }

.faq__item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item:focus-within { border-color: var(--primary); }

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-900);
  text-align: left;
  font-family: var(--font-bn);
  background: transparent;
  transition: background .15s;
}
.faq__question:hover { background: var(--bg-light); }
.faq__question[aria-expanded="true"] { color: var(--primary); }
.faq__question[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__chevron { flex-shrink: 0; transition: transform .2s; color: var(--text-500); }

.faq__answer {
  padding: 0 1.25rem 1.1rem;
  font-size: .9rem;
  color: var(--text-500);
  line-height: 1.7;
  font-family: var(--font-bn);
}
.faq__answer[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD CTA
═══════════════════════════════════════════════════════════════ */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.download__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.download__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; font-family: var(--font-bn); }
.download__desc { font-size: 1rem; opacity: .85; margin-bottom: 2rem; line-height: 1.7; font-family: var(--font-bn); }

.download__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.store-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: .85rem 1.5rem;
  color: #fff;
  transition: background .2s;
}
.store-btn:hover { background: rgba(255,255,255,.25); }
.store-btn div small { display: block; font-size: .65rem; letter-spacing: .1em; opacity: .8; text-transform: uppercase; }
.store-btn div strong { font-size: 1rem; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text-900);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__brand .nav__logo { margin-bottom: 1rem; }
.footer__brand .logo-text { color: rgba(255,255,255,.9); }
.footer__brand p { font-size: .875rem; line-height: 1.7; font-family: var(--font-bn); }
.footer__social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer__social a { font-size: 1.4rem; transition: opacity .2s; }
.footer__social a:hover { opacity: 1; }

.footer__col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { font-size: .875rem; font-family: var(--font-bn); transition: color .15s; }
.footer__col a:hover { color: var(--primary-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
}

/* ─── Scroll reveal utility ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Accessibility ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  .header, .hero__visual, .download, .footer__social { display: none; }
}
