/* ===== PGCET Study Landing Page — Design System ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #5B3FE4;
  --primary-dark: #4A2FD4;
  --primary-light: #7B63F0;
  --primary-glow: rgba(91, 63, 228, 0.25);
  --accent: #FF6B35;
  --accent-light: #FF8A5C;
  --bg-dark: #0B0B1A;
  --bg-dark-2: #12122A;
  --bg-light: #F8F7FF;
  --bg-white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-dark: #1A1A35;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #FFFFFF;
  --text-muted: rgba(255,255,255,0.7);
  --border: #E5E7EB;
  --border-light: rgba(255,255,255,0.1);
  --success: #10B981;
  --warning: #F59E0B;
  --gradient-hero: linear-gradient(135deg, #0B0B1A 0%, #1a1045 40%, #2d1b69 70%, #5B3FE4 100%);
  --gradient-cta: linear-gradient(135deg, #5B3FE4, #8B5CF6);
  --gradient-accent: linear-gradient(135deg, #FF6B35, #FF8A5C);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 30px var(--primary-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(91,63,228,0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-label-light {
  color: var(--primary-light);
  background: rgba(255,255,255,0.08);
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-dark {
  background: var(--gradient-cta);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--primary-glow);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 11, 26, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--gradient-cta);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91,63,228,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone {
  width: 280px;
  height: 560px;
  background: var(--surface-dark);
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), 0 0 60px var(--primary-glow);
  position: relative;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}

/* Floating cards around phone */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.float-card:nth-child(2) { animation-delay: 1s; }
.float-card:nth-child(3) { animation-delay: 2s; }

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

.float-card-icon {
  font-size: 22px;
}

.float-card-1 { top: 10%; right: -20px; }
.float-card-2 { bottom: 25%; left: -40px; }
.float-card-3 { bottom: 8%; right: -10px; }

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 12px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 250px;
  margin: 0 auto;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-dark);
  color: #fff;
}

.pricing .section-title { color: #fff; }
.pricing .section-subtitle { color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.price-card {
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.price-card.popular {
  background: linear-gradient(135deg, var(--surface-dark), #2a2060);
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
}

.price-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-duration {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 4px;
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-features {
  text-align: left;
  margin-bottom: 24px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

.price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.price-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.price-card.popular .price-btn {
  background: var(--gradient-cta);
  border-color: transparent;
}

/* Free tier comparison */
.free-comparison {
  margin-top: 48px;
  text-align: center;
}

.free-comparison p {
  font-size: 15px;
  color: var(--text-muted);
}

.free-comparison span {
  color: var(--success);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-light);
}

.faq-grid {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  font-size: 18px;
  transition: var(--transition);
  color: var(--text-secondary);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,63,228,0.2), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,11,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 32px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero h1 { font-size: 34px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-phone { width: 220px; height: 440px; }
  .float-card { display: none; }

  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta h2 { font-size: 30px; }
}

/* ===== PRIVACY & TERMS PAGES ===== */
.legal-page {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--primary);
  font-weight: 600;
}
.legal-page a:hover {
  text-decoration: underline;
}
