/* ============================================================
   MATH MASTERY — Premium EdTech Landing Page
   Design: Modern, Clean, High-Converting
   Colors: Blue (#3B82F6) | White | Yellow (#F59E0B)
   Font: Poppins
   ============================================================ */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #DBEAFE;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FEF3C7;
    --bg-dark: #0F172A;
    --bg-section: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --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;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.2rem 3.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-full { width: 100%; }

.btn-icon { font-size: 1.1rem; }

/* ========== SECTION COMMONS ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-body);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-cta {
    color: var(--text-dark);
}

.navbar.scrolled .nav-cta {
    background: var(--primary);
    color: white;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: white;
}

.navbar:not(.scrolled) .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar:not(.scrolled) .nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-toggle span {
    background: var(--text-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
}

.logo-icon {
    font-size: 1.6rem;
    font-weight: 800;
}

.logo-accent {
    color: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #60A5FA 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-icon { font-size: 1.1rem; }

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

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), #FCD34D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Hero Illustration */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 380px;
    height: 380px;
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-element {
    position: absolute;
    font-size: 3rem;
    animation: floatElement 4s ease-in-out infinite;
}

.element-1 { top: 10%; left: 5%; animation-delay: 0s; }
.element-2 { top: 5%; right: 10%; animation-delay: 0.5s; }
.element-3 { bottom: 15%; left: 8%; animation-delay: 1s; }
.element-4 { bottom: 10%; right: 5%; animation-delay: 1.5s; }
.element-5 { top: 50%; left: -5%; animation-delay: 2s; }
.element-6 { top: 50%; right: -5%; animation-delay: 2.5s; }

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

.illustration-center {
    z-index: 2;
}

.illustration-card {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.illustration-math {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ========== PROBLEMS SECTION ========== */
.problems-section {
    padding: 6rem 0;
    background: white;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.problem-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.problem-card:hover::before {
    height: 100%;
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ========== HOW WE HELP SECTION ========== */
.how-we-help {
    padding: 6rem 0;
    background: var(--bg-section);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.help-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.help-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.help-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.help-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.stats-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: inline;
    line-height: 1;
}

.stat-plus, .stat-percent {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 500;
}

.stat-icon-large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ========== BENEFITS SECTION ========== */
.benefits-section {
    padding: 6rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--bg-section);
}

.benefit-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 2px;
}

.benefit-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.benefit-text p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== CURRICULUM SECTION ========== */
.curriculum-section {
    padding: 6rem 0;
    background: var(--bg-section);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.curriculum-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.curriculum-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.curriculum-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.curriculum-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.curriculum-age {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.curriculum-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.curriculum-card ul li {
    padding: 0.4rem 0;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.curriculum-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ========== DEMO HIGHLIGHT ========== */
.demo-highlight {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1E293B, #0F172A);
}

.demo-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin: 0 auto;
}

.demo-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.demo-badge {
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-limit { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.badge-free { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.badge-no { background: rgba(245, 158, 11, 0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }

.demo-card h2 {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo-card p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.demo-note {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ========== REGISTRATION SECTION ========== */
.register-section {
    padding: 6rem 0;
    background: white;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-title-left {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.register-perks {
    margin-top: 2rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.perk-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.register-urgency {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--accent-light);
    border-radius: var(--radius);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.urgency-icon { font-size: 1.5rem; }

.register-urgency strong { color: var(--accent-dark); }
.register-urgency p { color: var(--text-body); font-size: 0.9rem; margin-top: 0.25rem; }

/* Form */
.register-form-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.form-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.required { color: #EF4444; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.loading .btn-loader { display: inline-block; }
.btn.loading span:not(.btn-loader) { opacity: 0.7; }
.btn.loading { pointer-events: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== PAYMENT SECTION ========== */
.price-display {
    background: linear-gradient(135deg, var(--primary-light), white);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.price-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.payment-summary {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

.payment-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.payment-row.total span:last-child {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 400;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-dark);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== FINAL CTA ========== */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), #60A5FA);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta h2 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.final-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.final-cta-note {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-section);
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-dark);
}

.modal-success-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-highlight {
    color: var(--success);
    font-weight: 500;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ========== ANIMATIONS (Scroll-triggered) ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .register-wrapper { grid-template-columns: 1fr; gap: 2rem; }

    .register-form-wrapper { position: static; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .nav-links.mobile-open a {
        color: var(--text-dark) !important;
        font-size: 1rem;
    }

    .navbar.scrolled .nav-cta-mobile {
        display: inline-flex;
    }

    .hero { padding: 7rem 0 3rem; }

    .form-row { grid-template-columns: 1fr; }

    .testimonials-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }

    .hero-trust { flex-direction: column; align-items: center; gap: 0.75rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .help-grid { grid-template-columns: 1fr; }

    .problems-grid { grid-template-columns: 1fr; }

    .curriculum-grid { grid-template-columns: 1fr; }

    .demo-badges { flex-direction: column; align-items: center; }

    .register-form-wrapper { padding: 1.5rem; }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

/* ========== UTILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
