:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #f72585;
    --accent: #ffd60a;
    --success: #06d6a0;
    --warning: #f77f00;
    --danger: #e63946;
    --info: #457b9d;

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --blue: #3b82f6;
    --green: #10b981;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
    --red: #ef4444;
    --orange: #f97316;
    --teal: #14b8a6;
    --indigo: #6366f1;
    --pink: #ec4899;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-family);

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

[data-theme="dark"] {
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    --white: #1e293b;
}

[data-theme="dark"] body {
    background-color: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f8fafc;
}

[data-theme="dark"] .hero-section,
[data-theme="dark"] .header-bg {
    background: linear-gradient(135deg, #1e3a8a, #4338ca);
}

[data-theme="dark"] .how-it-works-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .step-card,
[data-theme="dark"] .simulator-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .section-title {
    color: #f8fafc;
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .step-description {
    color: #94a3b8;
}

[data-theme="dark"] .simulators-section {
    background: #0f172a;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: #cbd5e1;
}

[data-theme="dark"] .blog-card,
[data-theme="dark"] .document-card,
[data-theme="dark"] .book-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .cta-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .card-content,
[data-theme="dark"] .blog-content,
[data-theme="dark"] .document-content {
    background: #1e293b;
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .blog-title,
[data-theme="dark"] .document-title,
[data-theme="dark"] .cta-title,
[data-theme="dark"] .documents-title {
    color: #f8fafc;
}

[data-theme="dark"] .card-description,
[data-theme="dark"] .blog-description,
[data-theme="dark"] .document-description,
[data-theme="dark"] .cta-description {
    color: #94a3b8;
}

[data-theme="dark"] .demo-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .demo-header {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .progress-text {
    color: #94a3b8;
}

[data-theme="dark"] .demo-question {
    color: #f8fafc;
}

[data-theme="dark"] .demo-option {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .demo-option:hover {
    background: #475569;
}

[data-theme="dark"] .demo-option.correct {
    background: rgba(6, 214, 160, 0.2);
}

[data-theme="dark"] .blog-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .blog-meta {
    color: #64748b;
}

[data-theme="dark"] .read-time {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

[data-theme="dark"] .study-section {
    background: #0f172a;
}

[data-theme="dark"] .tab-container {
    background: #1e293b;
}

[data-theme="dark"] .tab-button {
    color: #94a3b8;
}

[data-theme="dark"] .tab-button:hover {
    color: #f8fafc;
}

[data-theme="dark"] .faq-section {
    background: #0f172a;
}

[data-theme="dark"] .faq-item {
    background: #1e293b;
}

[data-theme="dark"] .faq-question span {
    color: #f8fafc;
}

[data-theme="dark"] .faq-icon {
    color: #64748b;
}

[data-theme="dark"] .faq-answer {
    color: #94a3b8;
}

[data-theme="dark"] .faq-footer {
    border-color: #334155;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
}

[data-theme="dark"] .modal-header {
    border-color: #334155;
}

[data-theme="dark"] .modal-title {
    color: #f8fafc;
}

[data-theme="dark"] .modal-close {
    color: #94a3b8;
}

[data-theme="dark"] .modal-close:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-secondary {
    background: #1e293b;
    border-color: #4361ee;
    color: #4895ef;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #4361ee;
    color: #ffffff;
}

[data-theme="dark"] .btn-ghost {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-ghost:hover {
    background: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .feature-item {
    color: #e2e8f0;
}

[data-theme="dark"] #feature-item {
    color: #e2e8f0;
}

[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] a {
    color: #4895ef;
}

[data-theme="dark"] a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .read-more {
    color: #4895ef;
}

[data-theme="dark"] .read-more:hover {
    color: #60a5fa;
    background: rgba(67, 97, 238, 0.1);
}

[data-theme="dark"] .contact-link {
    color: #4895ef;
}

[data-theme="dark"] .contact-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .document-badge {
    background: #334155;
    color: #4895ef;
}

[data-theme="dark"] .page-count {
    color: #64748b;
}

[data-theme="dark"] .spinner {
    border-color: #334155;
    border-top-color: #4895ef;
}

[data-theme="dark"] .stats-section {
    background: #0f172a;
}

[data-theme="dark"] .footer {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .footer-title,
[data-theme="dark"] .footer-brand-name {
    color: #f8fafc;
}

[data-theme="dark"] .footer-description,
[data-theme="dark"] .footer-text {
    color: #94a3b8;
}

[data-theme="dark"] .footer-link {
    color: #94a3b8;
}

[data-theme="dark"] .footer-link:hover {
    color: #f8fafc;
}

[data-theme="dark"] .footer-bottom {
    border-color: #334155;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
}

[data-theme="dark"] .nav-link {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-link:hover {
    color: #4895ef;
}

[data-theme="dark"] .mobile-menu {
    background: #1e293b;
}

[data-theme="dark"] .mobile-nav-link {
    color: #e2e8f0;
}

[data-theme="dark"] .mobile-nav-link:hover {
    background: #334155;
    color: #4895ef;
}

[data-theme="dark"] .trust-badges-section {
    background: #0f172a;
}

[data-theme="dark"] .trust-badge-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .testimonial-content {
    color: #e2e8f0;
}

[data-theme="dark"] .testimonial-author {
    color: #f8fafc;
}

[data-theme="dark"] .testimonial-role {
    color: #64748b;
}

[data-theme="dark"] .comparison-section {
    background: #0f172a;
}

[data-theme="dark"] .comparison-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .material-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .material-title {
    color: #f8fafc;
}

[data-theme="dark"] .material-description {
    color: #94a3b8;
}

[data-theme="dark"] .chapter-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .chapter-title {
    color: #f8fafc;
}

[data-theme="dark"] .chapter-description {
    color: #94a3b8;
}

[data-theme="dark"] .license-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .license-title {
    color: #f8fafc;
}

[data-theme="dark"] .license-description {
    color: #94a3b8;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #4895ef;
    box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
}

[data-theme="dark"] .chatbot-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .chatbot-header {
    background: linear-gradient(135deg, #1e3a8a, #4338ca);
}

[data-theme="dark"] .chatbot-messages {
    background: #0f172a;
}

[data-theme="dark"] .chat-message.user {
    background: #4361ee;
}

[data-theme="dark"] .chat-message.bot {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .chatbot-input-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .sidebar {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .sidebar-title {
    color: #f8fafc;
}

[data-theme="dark"] .sidebar-link {
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-link:hover {
    color: #4895ef;
}

[data-theme="dark"] .manga-reader {
    background: #0f172a;
}

[data-theme="dark"] .manga-controls {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .xp-progress-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .xp-level-text {
    color: #f8fafc;
}

[data-theme="dark"] .xp-progress-text {
    color: #94a3b8;
}

[data-theme="dark"] .streak-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .streak-title {
    color: #f8fafc;
}

[data-theme="dark"] .streak-day {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .streak-day.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

[data-theme="dark"] .beneficios-section {
    background: #0f172a;
}

[data-theme="dark"] .beneficio-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .beneficio-title {
    color: #f8fafc;
}

[data-theme="dark"] .beneficio-description {
    color: #94a3b8;
}

[data-theme="dark"] .preguntas-section {
    background: #0f172a;
}

[data-theme="dark"] .quienes-section {
    background: #0f172a;
}

[data-theme="dark"] .team-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .team-name {
    color: #f8fafc;
}

[data-theme="dark"] .team-role {
    color: #64748b;
}

[data-theme="dark"] .cost-table {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .cost-table th {
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .cost-table td {
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] .exam-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .exam-title {
    color: #f8fafc;
}

[data-theme="dark"] .exam-description {
    color: #94a3b8;
}

[data-theme="dark"] .radiante-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .speed-impact {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stats-grid {
    background: #0f172a;
}

[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stat-value {
    color: #f8fafc;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .streak-promo {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .tabs-container {
    background: #1e293b;
}

[data-theme="dark"] .tab-panel {
    background: #0f172a;
}

[data-theme="dark"] .update-banner {
    background: linear-gradient(135deg, #1e3a8a, #4338ca);
}

[data-theme="dark"] .container {
    color: #e2e8f0;
}

[data-theme="dark"] .highlight {
    color: #4895ef;
}

[data-theme="dark"] .section-background {
    opacity: 0.5;
}

[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e293b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

[data-theme="dark"] ::selection {
    background: rgba(67, 97, 238, 0.4);
    color: #f8fafc;
}

.xp-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.xp-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.xp-notification .xp-amount {
    font-size: 1.25rem;
    font-weight: 800;
}

.xp-notification .xp-reason {
    font-size: 0.8rem;
    opacity: 0.9;
}

.level-up-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.level-up-overlay.show {
    opacity: 1;
}

.level-up-modal {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.level-up-overlay.show .level-up-modal {
    transform: scale(1);
    animation: levelUpBounce 0.5s ease;
}

@keyframes levelUpBounce {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.level-up-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: iconPulse 1s ease infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.level-up-modal h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.level-up-title {
    font-size: 1.25rem;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.level-up-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-up-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.streak-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px) scale(0.9);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-width: 320px;
    max-width: 420px;
}

.streak-notification::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: streakShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes streakShine {
    0%, 100% { transform: translate(-30%, -30%) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(30%, 30%) rotate(180deg); opacity: 0.8; }
}

.streak-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.streak-notification.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.95);
    transition: all 0.3s ease-in;
}

.streak-notif-icon {
    position: relative;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    animation: fireGlow 1.5s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes fireGlow {
    0% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 2px 8px rgba(255,200,0,0.4)); }
    100% { transform: scale(1.1) rotate(3deg); filter: drop-shadow(0 4px 12px rgba(255,150,0,0.6)); }
}

.streak-notif-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 1;
}

.streak-notif-content strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.streak-notif-content span {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

.streak-notif-days {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.streak-day-pill {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.streak-day-pill.active {
    background: rgba(255,255,255,0.95);
    color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: dayPop 0.4s ease-out;
}

.streak-day-pill.future {
    opacity: 0.5;
}

@keyframes dayPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.streak-notif-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 2;
}

.streak-notif-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.streak-notification.record {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 
        0 20px 60px rgba(245, 158, 11, 0.5),
        0 0 40px rgba(251, 191, 36, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    animation: recordGlow 2s ease-in-out infinite;
}

.streak-notification.record::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 1s ease-in-out infinite;
}

.streak-notification.record::after {
    top: 10px;
    right: 40px;
}

@keyframes recordGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(245, 158, 11, 0.5), 0 0 40px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 20px 80px rgba(245, 158, 11, 0.6), 0 0 60px rgba(251, 191, 36, 0.5); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.2) rotate(15deg); }
}

.streak-notification.lost {
    background: linear-gradient(135deg, #64748b 0%, #475569 50%, #334155 100%);
    box-shadow: 
        0 20px 60px rgba(71, 85, 105, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.streak-notification.lost .streak-notif-icon {
    animation: none;
    opacity: 0.7;
}

.streak-notification.lost::before {
    display: none;
}

.streak-notification.milestone {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.streak-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.streak-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.streak-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.streak-particle:nth-child(2) { left: 20%; top: 70%; animation-delay: 0.5s; }
.streak-particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 1s; }
.streak-particle:nth-child(4) { left: 90%; top: 80%; animation-delay: 1.5s; }
.streak-particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.5); opacity: 1; }
}

.streak-notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.streak-notif-progress-bar {
    height: 100%;
    background: rgba(255,255,255,0.5);
    animation: progressShrink 4s linear forwards;
}

@keyframes progressShrink {
    from { width: 100%; }
    to { width: 0%; }
}

[data-theme="dark"] .streak-notification {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
    box-shadow: 
        0 20px 60px rgba(234, 88, 12, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

[data-theme="dark"] .streak-notification.record {
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
}

[data-theme="dark"] .streak-notification.lost {
    background: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
}

[data-theme="dark"] .streak-notification.milestone {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

[data-theme="dark"] .level-up-modal {
    background: #1e293b;
}

[data-theme="dark"] .level-up-modal h2 {
    color: white;
}


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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.demo-container img {
    max-width: 100%;
}

img {
    width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--primary-dark);
}

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

.skip-link {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: var(--transition-normal);
}



.highlight {
    color: var(--primary);
}

.highlights {
    color: #ffc700;
}


.hidden {
    display: none !important;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 5rem;
    height: 5rem;
    background: white;
    animation-delay: 0s;
}

.hero-decoration:nth-child(2) {
    top: 33%;
    right: 20%;
    width: 8rem;
    height: 8rem;
    background: white;
    animation-delay: 1s;
}

.hero-decoration:nth-child(3) {
    bottom: 20%;
    left: 25%;
    width: 4rem;
    height: 4rem;
    background: white;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: #ffc700;
    color: var(--gray-900);
}

.btn-primary:hover {
    background: #e6b400;
    color: var(--gray-900);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--gray-900);
}

.btn-accent:hover {
    background: var(--warning);
    color: var(--gray-900);
}

.btn-ghost {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-purple {
    background: var(--purple);
    color: var(--white);
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-indigo {
    background: var(--indigo);
    color: var(--white);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--white);
}

.btn-link {
    background: none;
    color: var(--primary);
    padding: var(--space-2) 0;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3366ff, #6366f1);
    overflow: hidden;
    padding: var(--space-20) 0;
    margin-top: 20px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: #707fe2;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: #18014e;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 30%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(6, 214, 160, 0.1);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.badge-icon {
    font-size: var(--text-lg);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: #fff;
}

.hero-description {
    font-size: var(--text-xl);
    color: white;
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    box-shadow: var(--shadow-sm);
}

.stat-icon-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
    color: var(--white);
}

.stat-icon-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--success) 100%);
    color: var(--white);
}

.stat-icon-yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--accent) 100%);
    color: var(--white);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
}

.hero-visual {
    position: relative;
}

.demo-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 5px solid var(--white);
}

.demo-container img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.demo-card {
    position: absolute;
    bottom: -70px;
    right: -30px;
    width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    transform: rotate(3deg);
    overflow: hidden;
    z-index: 10;
    border: 1px solid var(--gray-200);
    transition: var(--transition-slow);
}

.demo-card:hover {
    transform: rotate(0) translateY(-10px);
}

.demo-header {
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-indicators {
    display: flex;
    gap: 5px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
}

.progress-dot.active {
    background: var(--primary);
}

.progress-text {
    font-size: var(--text-xs);
    color: var(--gray-600);
    font-weight: 600;
}

.demo-content {
    padding: var(--space-4);
}

.demo-question {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    line-height: 1.4;
    font-weight: 600;
    color: var(--gray-900);
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.demo-option {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--gray-100);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: var(--text-sm);
}

.demo-option:hover {
    background: var(--gray-200);
}

.demo-option.correct {
    background: rgba(6, 214, 160, 0.1);
    border-left: 3px solid var(--success);
}

.option-indicator {
    color: var(--success);
    font-weight: 700;
    margin-right: var(--space-2);
}

.demo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-weight: 600;
    gap: var(--space-2);
}

.trust-badge {
    position: absolute;
    top: var(--space-4);
    left: -var(--space-4);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

.section-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.how-it-works-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e6f2ff 100%);
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8) var(--space-6) var(--space-6);
    text-align: center;
    position: relative;
    border: 1px solid var(--gray-100);
    transition: var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
    z-index: 2;
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--success) 100%);
}

.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) auto;
    font-size: var(--text-2xl);
    color: var(--primary);
    transition: var(--transition-normal);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-card:nth-child(2) .step-icon {
    background: rgba(76, 201, 240, 0.1);
    color: var(--primary-light);
}

.step-card:nth-child(3) .step-icon {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.step-description {
    color: var(--gray-600);
    line-height: 1.6;
}

.simulators-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.simulators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.simulator-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition-normal);
}

.simulator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-header {
    position: relative;
    overflow: hidden;
}

.card-header-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
}

.card-header-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
}

.header-background {
    position: absolute;
    inset: 0;
}

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.header-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-15px, 15px);
}

.card-header-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4);
    font-size: var(--text-2xl);
    color: var(--white);
    transition: var(--transition-normal);
}

.simulator-card:hover .card-icon {
    transform: scale(1.1);
}

.card-badges {
    color: var(--white);
}

.badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
}

.badge-white {
    background: var(--white);
    color: var(--primary);
}

.badge-info {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-top: var(--space-2);
    display: block;
}

[data-theme="dark"] .badge-white {
    background: #334155;
    color: #f3f4f6;
  }

.card-content {
    padding: var(--space-8);
}

.card-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.card-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--gray-700);
}

.feature-item i {
    color: white;
    font-size: 16px;
}

#feature-item {
    color: black;
    font-size: 16px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.blog-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e6f2ff 100%);
    position: relative;
    overflow: hidden;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    pointer-events: auto;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    pointer-events: none;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    pointer-events: none;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1;
}

.image-overlay .category-badge,
.image-overlay .read-time {
    pointer-events: auto;
}

.category-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    pointer-events: auto;
}

.category-badge:hover {
    transform: scale(1.05);
}

.category-blue {
    background: var(--blue);
}

.category-green {
    background: var(--green);
}

.category-yellow {
    background: var(--yellow);
}

.category-purple {
    background: var(--purple);
}

.category-red {
    background: var(--red);
}

.category-orange {
    background: var(--orange);
}

.category-teal {
    background: var(--teal);
}

.category-amber {
    background: var(--warning);
}

.category-gray {
    background: var(--gray-600);
}

.category-pink {
    background: var(--pink);
}

.read-time {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    pointer-events: none;
}

.blog-content {
    padding: var(--space-6);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

.meta-separator {
    margin: 0 var(--space-1);
}

.blog-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.blog-card:hover .blog-title,
.blog-title a:hover {
    color: var(--primary);
}

.blog-description {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-fast);
    text-decoration: none;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.read-more:hover {
    color: var(--primary-dark);
    background: rgba(67, 97, 238, 0.05);
    transform: translateX(4px);
}

.blog-icon {
    color: var(--gray-400);
    font-size: var(--text-xs);
    pointer-events: none;
}

.blog-cta {
    text-align: center;
    margin-top: var(--space-12);
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.blog-cta .btn {
    position: relative;
    z-index: 101;
    pointer-events: auto !important;
}

.blog-card>* {
    position: relative;
}

.blog-card a {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.study-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.study-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-12);
}

.tab-container {
    background: var(--gray-100);
    padding: var(--space-1);
    border-radius: var(--radius-2xl);
    display: inline-flex;
}

.tab-button {
    padding: var(--space-3) var(--space-8);
    border: none;
    background: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tab-button:hover {
    color: var(--gray-900);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
}

.study-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-book {
    margin-bottom: var(--space-16);
}

.book-card {
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.book-card-blue {
    background: #2563eb;
}

.book-card-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
}

.book-background {
    position: absolute;
    inset: 0;
}

.book-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    transform: translate(40px, -40px);
}

.book-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-25px, 25px);
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.book-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-900);
    font-size: var(--text-xl);
    flex-shrink: 0;
}



.badge-text {
    background: var(--accent);
    color: var(--gray-900);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.book-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    color: white;
}

.book-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    opacity: 0.9;
}

.book-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.book-features .feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-size: 16px;
}

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

.book-image {
    position: relative;
    text-align: center;
    max-width: 100%;
}

.book-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    transition: var(--transition-normal);
    border-radius: 8px;
    border: 4px solid white;
    object-fit: cover;
}

.book-image:hover img {
    transform: scale(1.05);
}

.free-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--success);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .book-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

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

    .book-title {
        font-size: var(--text-2xl);
    }

    .book-description {
        font-size: var(--text-base);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .book-features {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-6);
    }

    .book-image img {
        max-width: 400px;
    }

    .book-background::before {
        width: 120px;
        height: 120px;
        transform: translate(30px, -30px);
    }

    .book-background::after {
        width: 100px;
        height: 100px;
        transform: translate(-20px, 20px);
    }
}

@media (max-width: 768px) {
    .book-card {
        padding: var(--space-6);
        margin: 0 var(--space-4);
    }

    .book-content {
        gap: var(--space-6);
    }

    .book-badge {
        justify-content: center;
        gap: var(--space-3);
    }

    .badge-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .badge-text {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }

    .book-title {
        font-size: 36px;
        margin-bottom: var(--space-3);
    }

    .book-description {
        font-size: 20px;
        margin-bottom: var(--space-4);
    }

    .book-features {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .book-features .feature-item {
        justify-content: center;
        font-size: var(--text-xs);
    }

    .book-image img {
        max-width: 320px;
        border: 3px solid white;
    }

    .free-badge {
        bottom: -12px;
        right: -12px;
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }

    .book-background::before {
        width: 100px;
        height: 100px;
        transform: translate(25px, -25px);
    }

    .book-background::after {
        width: 80px;
        height: 80px;
        transform: translate(-15px, 15px);
    }
}

@media (max-width: 576px) {
    .featured-book {
        margin-bottom: var(--space-12);
    }

    .book-card {
        padding: var(--space-4);
        margin: 0 var(--space-2);
        border-radius: var(--radius-xl);
    }

    .book-content {
        gap: var(--space-4);
    }

    .book-badge {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .badge-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }

    .book-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }

    .book-description {
        font-size: var(--text-xs);
        margin-bottom: var(--space-3);
        line-height: 1.5;
    }

    .book-features {
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .book-features .feature-item {
        font-size: 11px;
        gap: var(--space-1);
    }

    .book-image img {
        max-width: 280px;
        border: 2px solid white;
        border-radius: 6px;
    }

    .free-badge {
        bottom: -8px;
        right: -8px;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: var(--radius-md);
    }

    .book-background::before {
        width: 80px;
        height: 80px;
        transform: translate(20px, -20px);
    }

    .book-background::after {
        width: 60px;
        height: 60px;
        transform: translate(-10px, 10px);
    }
}

@media (max-width: 480px) {
    .book-card {
        padding: var(--space-3);
        margin: 0 var(--space-1);
    }

    .book-title {
        font-size: var(--text-base);
        line-height: 1.3;
    }

    .book-description {
        font-size: 11px;
    }

    .book-features .feature-item {
        font-size: 10px;
    }

    .book-image img {
        max-width: 240px;
    }

    .book-background::before {
        width: 60px;
        height: 60px;
        transform: translate(15px, -15px);
    }

    .book-background::after {
        width: 50px;
        height: 50px;
        transform: translate(-8px, 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-image img {
        transition: none;
    }

    .book-image:hover img {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .book-card {
        border: 2px solid var(--white);
    }

    .free-badge {
        border: 1px solid var(--white);
    }
}

.book-image img {
    will-change: transform;
    backface-visibility: hidden;
}

.book-background::before,
.book-background::after {
    will-change: auto;
}

@media print {
    .book-card {
        background: none !important;
        color: black !important;
        border: 1px solid black;
    }

    .book-background::before,
    .book-background::after {
        display: none;
    }

    .free-badge {
        background: black !important;
        color: white !important;
    }
}

.documents-section {
    margin-top: var(--space-16);
}

.documents-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--gray-900);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.document-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition-normal);
}

.document-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.document-header {
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-header-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--success) 100%);
}

.document-header-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--indigo) 100%);
}

.document-header-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
}

.document-header-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--pink) 100%);
}

.document-header-teal {
    background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
}

.document-header-indigo {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
}

.document-header-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
}

.document-header-yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
}

.document-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.document-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.document-meta {
    color: var(--white);
}

.file-type {
    font-size: var(--text-sm);
    font-weight: 500;
}

.file-size {
    font-size: var(--text-xs);
    opacity: 0.8;
}

.document-badge {
    background: var(--white);
    color: var(--primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.document-content {
    padding: var(--space-6);
}

.document-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.document-description {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.document-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: var(--space-2);
}

.page-count {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.study-cta {
    margin-top: var(--space-16);
}

.cta-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, #e6f2ff 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
}

.cta-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.cta-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: 70vh;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.faq-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.faq-button {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-8) var(--space-8);
    cursor: pointer;
    text-align: left;
}



.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.faq-icon {
    color: var(--gray-400);
    transition: var(--transition-normal);
}

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

.faq-answer {
    padding: 0 var(--space-8) var(--space-6);
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-footer {
    text-align: center;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

.contact-link {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

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

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


    .book-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding: var(--space-16) 0;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-subtitle {
        font-size: var(--text-lg);
    }

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


    .tab-container {
        flex-direction: column;
        width: 100%;
    }

    .tab-button {
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .demo-card {
        position: static;
        transform: none;
        margin-top: var(--space-8);
        width: 100%;
    }

    .demo-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-2xl);
    }

    .document-card {
        margin: 0;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    .modal-content {
        margin: var(--space-4);
        max-height: calc(100vh - 2rem);
    }
}

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 var(--radius-lg) 0;
    z-index: 10000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}