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

:root {
    --primary: #1a4d3a;
    --primary-light: #2a5d4a;
    --secondary: #f5f2ed;
    --text-dark: #1e1e1e;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --bg-white: #ffffff;
    --bg-light: #fafaf9;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
header {
    background: var(--bg-white);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 58, 0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 5rem;
    text-align: center;
    background: var(--secondary);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.email-capture {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.email-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.1);
}

/* Focus styles for accessibility */
.btn:focus,
.toggle-btn:focus,
.slider-btn:focus,
.close-modal:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.feature-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.success-message {
    display: none;
    color: var(--success);
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}



/* Live Demo Button */
.demo-trigger {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.demo-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Live Demo Modal */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

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

/* Gamification Preview */
.game-preview {
    text-align: center;
    padding: 2rem;
}

.xp-bar {
    background: var(--border);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.xp-progress {
    background: var(--primary);
    height: 100%;
    width: 0;
    border-radius: 15px;
    transition: width 2s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.level-up {
    display: none;
    animation: pulse 0.5s ease-out 3 alternate;
    color: var(--success);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }
.stat-item:nth-child(4) { animation-delay: 0.6s; }

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: inline-block;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Interactive Comparison */
.comparison {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.comparison-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

tr:hover td {
    background: var(--bg-light);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

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

.check {
    color: var(--success);
    font-size: 1.25rem;
    animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(45deg); }
    50% { transform: scale(1.3) rotate(45deg); }
    100% { transform: scale(1) rotate(0); }
}

.cross {
    color: var(--error);
    font-size: 1.25rem;
}

/* Feature Cards with Hover */
.features {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

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

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 77, 58, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

.learn-more {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.learn-more:hover {
    transform: translateX(5px);
}

/* Interactive Testimonials */
.testimonials {
    padding: 5rem 2rem;
    background: var(--secondary);
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 0 0 100%;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-info h4 {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.rating {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.slider-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Interactive CTA */
.cta {
    padding: 5rem 2rem;
    background: var(--bg-white);
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

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

/* Calculator */
.roi-calculator {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.calculator-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.calculator-results {
    display: none;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.result-value {
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 2rem 2rem;
    background: var(--secondary);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .email-capture {
        flex-direction: column;
    }

    .email-input {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .comparison-toggle {
        flex-wrap: wrap;
    }

    th, td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--error);
}

.notification.success {
    background: var(--success);
}

.notification.warning {
    background: var(--warning);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(26, 77, 58, 0.3);
    transition: all 0.3s ease;
    z-index: 50;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.4);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0;
    transition: width 0.3s ease;
    z-index: 101;
}

/* Resources Page Styles */
.resources-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.sidebar {
    width: 280px;
    background-color: #2d3748;
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid #4a5568;
}

.sidebar-nav {
    padding: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e2e8f0;
}

.nav-item:hover {
    background-color: #4a5568;
}

.nav-item.active {
    background-color: #1a202c;
    color: white;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-resource-btn {
    background-color: white;
    color: #2d3748;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    width: 100%;
}

.add-resource-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background-color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.resource-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.resource-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.resource-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background-color: #667eea;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.resource-description {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.made-in-framer {
    background-color: #1a202c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.75rem;
}

/* Mobile responsive for resources page */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

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