/**
 * VTNEexam.com — Public Pages Stylesheet
 * Pink + Blue color scheme
 */

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

:root {
  --blue-dark: #1A3C6B;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: #EFF6FF;
  --pink: #E91E8C;
  --pink-hover: #C41574;
  --pink-light: #FDF0F7;
  --bg: #F8F9FF;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--text); margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.btn-primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
}
.navbar-content {
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 2rem;
}
.logo { font-size: 1.375rem; font-weight: 800; color: var(--blue-dark); text-decoration: none; flex-shrink: 0; }
.logo .logo-pink { color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  padding: 0.5rem 0.875rem; color: var(--text-muted);
  font-weight: 500; font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--pink); background: var(--pink-light); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* Mobile overlay nav */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.5); }
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--white); padding: 2rem 1.5rem; overflow-y: auto;
}
.mobile-nav-close { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.mobile-nav-panel a { display: block; padding: 0.75rem 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-panel .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0f2547 0%, var(--blue-dark) 50%, #1e4d8a 100%);
  color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(233,30,140,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(233,30,140,0.2); border: 1px solid rgba(233,30,140,0.4);
  color: #fbb6d4; padding: 0.375rem 1rem; border-radius: 99px;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero-accent {
  background: linear-gradient(90deg, var(--pink) 0%, #ff6eb4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: rgba(255,255,255,0.82); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat .number { font-size: 1.75rem; font-weight: 800; color: white; }
.hero-stat .label { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.hero-visual {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 2rem; color: white;
}
.hero-visual-title { font-weight: 700; margin-bottom: 1.25rem; font-size: 1rem; color: rgba(255,255,255,0.9); }
.mini-question { background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.mini-question p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 0.75rem; }
.mini-options { display: flex; flex-direction: column; gap: 0.5rem; }
.mini-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); font-size: 0.85rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: background 0.15s; }
.mini-option:hover { background: rgba(255,255,255,0.15); }
.mini-option.correct { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.mini-option-letter { width: 22px; height: 22px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* Stats Bar */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stat-item .value { font-size: 1.875rem; font-weight: 800; color: var(--pink); }
.stat-item .label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--pink-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--pink); font-size: 1.5rem;
}
.feature-card h3 { color: var(--text); margin-bottom: 0.5rem; }

/* Topics */
.topics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.topic-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.topic-card:hover { border-color: var(--pink); box-shadow: var(--shadow); }
.topic-percent { font-size: 2rem; font-weight: 800; color: var(--pink); line-height: 1; margin-bottom: 0.25rem; }
.topic-card h4 { color: var(--text); margin-bottom: 0.375rem; }
.topic-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 1rem; overflow: hidden; }
.topic-bar-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--blue)); border-radius: 2px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.pricing-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--pink); transform: scale(1.03); box-shadow: 0 8px 30px rgba(233,30,140,0.2); }
.pricing-header { padding: 1.75rem 1.75rem 1.25rem; border-bottom: 1px solid var(--border); }
.pricing-card.featured .pricing-header { background: linear-gradient(135deg, var(--pink) 0%, #c41574 100%); border-bottom: none; }
.pricing-card.featured .pricing-header h3,
.pricing-card.featured .pricing-header .price,
.pricing-card.featured .pricing-header .period,
.pricing-card.featured .pricing-header .savings { color: white; }
.pricing-badge { display: inline-block; background: rgba(255,255,255,0.25); color: white; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.pricing-header h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 0.5rem; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.period { color: var(--text-muted); font-size: 0.9rem; }
.savings { color: var(--success); font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; }
.pricing-body { padding: 1.75rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-features li:last-child { border-bottom: none; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.stars { color: #FBBF24; margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card blockquote { color: var(--text); font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-author { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.85rem; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0f2547 0%, var(--blue-dark) 100%);
  color: white; padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(233,30,140,0.2) 0%, transparent 70%);
}
.cta-section h2 { color: white; margin-bottom: 1rem; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-section .cta-actions { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { background: #0F172A; color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: white; font-size: 1.25rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.7; }
footer h5 { color: white; font-size: 0.9375rem; font-weight: 600; margin-bottom: 1.25rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.625rem; }
footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.15s; }
footer ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.4); }

/* Alerts */
.alert { padding: 0.875rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: var(--blue-light); color: #1E40AF; border: 1px solid #BFDBFE; }

/* Auth */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0f2547 0%, var(--blue-dark) 60%, var(--bg) 100%);
}
.auth-card { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo a { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); }
.auth-logo .logo-pink { color: var(--pink); }
.auth-card h2 { text-align: center; color: var(--text); margin-bottom: 0.375rem; }
.auth-subtitle { text-align: center; margin-bottom: 2rem; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--pink); font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.375rem; }
.form-control {
  width: 100%; padding: 0.6875rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.9375rem; color: var(--text);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-control.error { border-color: var(--error); }
.form-error { color: var(--error); font-size: 0.8375rem; margin-top: 0.375rem; }
.form-hint { color: var(--text-muted); font-size: 0.8375rem; margin-top: 0.375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }
.form-check label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700; }
.badge-pink { background: var(--pink-light); color: var(--pink); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-error { background: #FEF2F2; color: #991B1B; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: var(--white); border: none; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; font-family: inherit; transition: background 0.15s; }
.faq-question:hover { background: var(--bg); }
.faq-icon { color: var(--pink); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; font-style: normal; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; background: var(--white); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* Misc */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { max-width: 100%; }
}
