/* =============================================
   RECALLIX.IN — Main Stylesheet
   Fonts: Roboto (headings) | Inter (body)
   Colors: Royal Blue #1a3c9e | Magenta #d6006e | Slate Gray #4a5568
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rb: #1a3c9e;
  --rb-dark: #122b78;
  --rb-light: #2550c8;
  --mg: #d6006e;
  --mg-dark: #b5005d;
  --mg-light: #f0228a;
  --slate: #4a5568;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --border: rgba(0,0,0,0.08);
  --card-shadow: 0 2px 16px rgba(26,60,158,0.08);
  --nav-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1f2e;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  line-height: 1.25;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.accent { color: #ff6ec7; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-mg {
  background: var(--mg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-mg:hover { background: var(--mg-dark); transform: translateY(-1px); }
.btn-mg:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,0.38);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn-lg { font-size: 15px; padding: 14px 32px; }
.btn-sm { font-size: 13px; padding: 8px 18px; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--rb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(26,60,158,0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-logo {
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 400;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: #ff6ec7;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--rb-dark);
  padding: 20px 32px 28px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: var(--rb);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin: 0 auto 22px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(214,0,110,0.2);
  color: #ff6ec7;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 100px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-h1 {
  color: var(--white);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-h1 em {
  color: #ff6ec7;
  font-style: normal;
}

.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 0.5px solid rgba(255,255,255,0.15);
}
.stat { text-align: center; }
.stat-num {
  color: #ff6ec7;
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 500;
}
.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 20px;
  height: 30px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60% { transform: translateX(-50%) translateY(8px); opacity: 0; }
}

/* =============================================
   SECTIONS — Shared
   ============================================= */
.section {
  padding: 96px 0;
}
.section-light { background: var(--white); }
.section-alt { background: var(--off-white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mg);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: #1a1f2e;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =============================================
   HOW IT WORKS — Steps
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--card-shadow);
}
.step-card:hover {
  box-shadow: 0 8px 32px rgba(26,60,158,0.14);
  transform: translateY(-3px);
}

.step-card--highlight {
  border-color: rgba(214,0,110,0.25);
  background: linear-gradient(135deg, #fff5fa 0%, #ffffff 60%);
}
.highlight-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(214,0,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
.tag-problem { background: #fff0f5; color: #b5005d; }
.tag-method  { background: #eaefff; color: var(--rb); }
.tag-result  { background: #eafaf2; color: #1a7a4a; }

.step-num {
  font-family: 'Roboto', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: rgba(26,60,158,0.1);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card--highlight .step-num { color: rgba(214,0,110,0.12); }

.step-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: #1a1f2e;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* =============================================
   COURSES
   ============================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card:hover {
  box-shadow: 0 8px 32px rgba(26,60,158,0.13);
  transform: translateY(-3px);
}

.course-thumb {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  user-select: none;
}
.thumb-bio  { background: #e3f8ef; }
.thumb-bot  { background: #fdf3e3; }
.thumb-chem { background: #ede8ff; }
.thumb-phys { background: #e6f0ff; }

.course-body { padding: 20px; }
.course-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--mg);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}
.course-body h3 {
  font-size: 15px;
  font-weight: 500;
  color: #1a1f2e;
  margin-bottom: 8px;
}
.course-body p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* =============================================
   BRAND SECTION
   ============================================= */
.brand-section {
  background: var(--rb);
  position: relative;
  overflow: hidden;
}
.brand-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.brand-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  margin: 0 auto 22px;
}
.brand-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 18px;
}
.brand-text {
  font-size: 15px;
  color: rgba(255,255,255,0.76);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.pillars {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.pillar {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px 22px;
  min-width: 150px;
  text-align: center;
  transition: background var(--transition);
}
.pillar:hover { background: rgba(255,255,255,0.13); }
.pillar-icon { font-size: 22px; margin-bottom: 10px; }
.pillar-label { color: var(--white); font-size: 13px; font-weight: 500; }
.pillar-sub { color: rgba(255,255,255,0.52); font-size: 11px; margin-top: 4px; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0f1623;
  padding: 30px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.footer-logo {
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.62s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .courses-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pillars { gap: 12px; }
  .pillar { min-width: 130px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .hero-stats { gap: 20px; }
  .section { padding: 64px 0; }
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-icon { width: 56px; height: 56px; }
}
