/* CSS Variables for Light / Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #eef2ff;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05);
    --badge-bg: #f8fafc;
    --navbar-bg: rgba(255,255,255,0.92);
    --testimonial-bg: #f8fafc;
}

body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-hover: #475569;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3);
    --badge-bg: #334155;
    --navbar-bg: rgba(15,23,42,0.92);
    --testimonial-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

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

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary {
    background: #4F46E5;
    color: white;
    border: none;
}
.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(79,70,229,0.4);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: #4F46E5;
    background: rgba(79,70,229,0.05);
    transform: translateY(-2px);
}
.btn-sm { padding: 6px 18px; font-size: 0.85rem; }
.btn-large { padding: 14px 32px; font-size: 1rem; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo-img {
    height: 38px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.2s;
}
.nav-links a:hover {
    color: #4F46E5;
}
.theme-toggle-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}
.theme-toggle-nav:hover {
    background: #4F46E5;
    color: white;
    transform: rotate(15deg);
}
.theme-toggle-nav .fa-sun { display: none; }
body.dark .theme-toggle-nav .fa-moon { display: none; }
body.dark .theme-toggle-nav .fa-sun { display: inline-block; }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 12px; text-decoration: none; color: var(--text-primary); font-weight: 500; }

/* Hero Section */
.hero {
    padding: 60px 0 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-left .hero-badge {
    background: #eef2ff;
    color: #4F46E5;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.trust-badges p { margin-bottom: 12px; font-weight: 500; }
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.badge {
    background: var(--badge-bg);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.hero-right .testimonial-card {
    background: var(--testimonial-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 32px;
    text-align: center;
}
.testimonial-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 2px solid #4F46E5;
}
.stars { color: #fbbf24; margin: 12px 0; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    text-align: center;
}
.hero-stats div strong { font-size: 1.5rem; display: block; color: #4F46E5; }
.hero-stats div span { font-size: 0.85rem; color: var(--text-muted); }

/* Section Common */
.section { padding: 80px 0; }
.alt-bg { background: var(--bg-secondary); }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); }

/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.two-col-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    transition: all 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}
.card-icon {
    background: rgba(79,70,229,0.1);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
    color: #4F46E5;
    margin-bottom: 20px;
}
.card i { font-size: 1.8rem; color: #4F46E5; margin-bottom: 16px; }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Exam Grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}
.exam-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    transition: 0.2s;
    cursor: default;
}
.exam-card:hover {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
    transform: translateY(-2px);
}

/* Testimonials (global) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
}
.testimonial-author { margin-top: 16px; font-weight: 600; color: #4F46E5; }

/* Comparison Table */
.table-wrapper { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}
.comparison-table th, .comparison-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table th { background: var(--bg-secondary); font-weight: 700; }
.check { color: #10b981; font-size: 1.2rem; }
.cross { color: #ef4444; font-size: 1.2rem; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; margin-bottom: 40px; color: var(--text-secondary); }
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stats-row div { text-align: center; }
.stats-row i { font-size: 2rem; color: #4F46E5; display: block; margin-bottom: 6px; }
.stats-row span { font-size: 1.8rem; font-weight: 800; display: block; }

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.screenshot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 12px;
    text-align: center;
    transition: 0.2s;
}
.screenshot:hover { transform: translateY(-4px); background: var(--bg-secondary); }
.screenshot i { color: #4F46E5; margin-bottom: 12px; }

/* Trial CTA */
.trial-card {
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border-radius: 48px;
    padding: 56px 40px;
    text-align: center;
}
body.dark .trial-card {
    background: linear-gradient(135deg, #1e1b4b, #1e293b);
}
.trial-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.trial-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 24px 0;
    list-style: none;
}
.trial-features li i { color: #10b981; margin-right: 8px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}
.footer-grid a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 8px 0;
}
.footer-grid a:hover { color: #4F46E5; }
.social-icons i {
    font-size: 1.3rem;
    margin-right: 16px;
    color: var(--text-secondary);
    transition: 0.2s;
}
.social-icons i:hover { color: #4F46E5; transform: translateY(-2px); }
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .btn-group, .badge-group { justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .trial-card { padding: 36px 20px; }
    .stats-row { gap: 24px; }
}