/* Modern CSS Variables and Reset */
:root {
    /* Updated Color Palette to match presentation */
    --primary: #4a7c59;
    --secondary: #8bc34a;
    --light: #e8f5e2;
    --dark: #333;
    --white: #fff;
    
    /* 4-Level Pyramid Colors matching presentation */
    --level1-color: #6b5bc6;  /* Purple for Served Content */
    --level2-color: #7fa33f;  /* Olive green for Connection Building */
    --level3-color: #a6cf98;  /* Light green for Integrated Activities */
    --level4-color: #5fb548;  /* Green for Sought Content */
    
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-icon {
    width: 50px;
    height: 40px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo-subtext {
    font-weight: 300;
    font-size: var(--font-size-base);
    color: var(--light);
    letter-spacing: 2px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light);
    transition: width var(--transition-base);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
}

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

.btn-primary:hover {
    background: #3d6b4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #7fc474 100%);
    color: var(--dark);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--white);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-md);
    border-radius: var(--radius);
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
}

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

/* Sections */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

/* 4-Level Pyramid Design - Matching presentation */
.pyramid-section {
    background: var(--light);
    padding: var(--space-3xl) 0;
}

.pyramid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.pyramid {
    width: 400px;
    height: 320px;
    position: relative;
}

.pyramid-level {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: var(--font-size-base);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pyramid-level:hover {
    transform: translateX(-50%) scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 4-Level Pyramid Structure */
.level1 {
    height: 60px;
    width: 120px;
    top: 0;
    background-color: var(--level1-color);
}

.level2 {
    height: 80px;
    width: 200px;
    top: 60px;
    background-color: var(--level2-color);
}

.level3 {
    height: 80px;
    width: 300px;
    top: 140px;
    background-color: var(--level3-color);
}

.level4 {
    height: 100px;
    width: 400px;
    top: 220px;
    background-color: var(--level4-color);
}

/* Pyramid Info Cards */
.pyramid-info {
    max-width: 900px;
    margin: 0 auto;
}

.level-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
    opacity: 0.9;
}

.level-card.active,
.level-card:hover {
    opacity: 1;
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.level-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
}

.level-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.level1-color { background-color: var(--level1-color); }
.level2-color { background-color: var(--level2-color); }
.level3-color { background-color: var(--level3-color); }
.level4-color { background-color: var(--level4-color); }

.level-card p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.level-card strong {
    color: var(--primary);
}

/* Research Grid */
.research-section {
    background: var(--white);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.research-card {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
}

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

.research-icon {
    margin-bottom: var(--space-md);
}

.research-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.research-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-style: italic;
}

/* Calculator Section */
.calculator-section {
    background: var(--secondary);
    background: linear-gradient(135deg, var(--secondary) 0%, #7fc474 100%);
    padding: 60px 0;
}

.calculator-wrapper,
.calculator-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-intro {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.calculator-intro p {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
}

.assessment-form,
form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: 20px;
}

.question-group,
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.question-label,
label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-900);
    display: block;
    margin-bottom: 8px;
}

select, input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.slider-container {
    display: flex;
    align-items: center;
}

.slider {
    flex-grow: 1;
}

.slider-value {
    width: 50px;
    text-align: center;
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary);
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: var(--font-size-base);
}

.submit-btn:hover {
    background-color: #3d6b4a;
}

/* Checklist Section */
.checklist-section {
    background: var(--white);
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.checklist-item {
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checklist-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.checklist-item ul {
    list-style-position: inside;
}

.checklist-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--white);
    padding: var(--space-3xl) 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-md);
}

.about-content ul {
    list-style-position: inside;
    color: var(--gray-600);
    margin: var(--space-sm) 0;
}

.about-content ul li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.about-content p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright a {
    color: var(--light);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        margin: 0 10px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .pyramid {
        width: 300px;
        height: 240px;
    }
    
    .level1 {
        height: 45px;
        width: 90px;
        top: 0;
    }
    
    .level2 {
        height: 60px;
        width: 150px;
        top: 45px;
    }
    
    .level3 {
        height: 60px;
        width: 225px;
        top: 105px;
    }
    
    .level4 {
        height: 75px;
        width: 300px;
        top: 165px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .research-grid,
    .checklist-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* AI Coming Soon Section Styles */
.ai-coming-soon-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eff8 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.ai-coming-soon-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(92, 42, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--level1-color) 0%, var(--primary) 100%);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ai-system-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.ai-main-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.ai-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.ai-main-icon {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.ai-main-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.ai-description {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Framework Cards */
.framework-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.framework-card {
    background: linear-gradient(135deg, var(--light) 0%, rgba(139, 195, 74, 0.1) 100%);
    padding: var(--space-lg);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

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

.framework-icon {
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: center;
}

.framework-card h4 {
    font-size: var(--font-size-lg);
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.framework-card p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

/* AI Features Grid */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.ai-feature-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--level1-color), var(--level2-color), var(--level3-color), var(--level4-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.ai-feature-card:hover::before {
    transform: scaleX(1);
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    margin-bottom: var(--space-sm);
}

.ai-feature-card h4 {
    font-size: var(--font-size-lg);
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.ai-feature-card p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

/* Platform Badges */
.ai-platforms {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.ai-platforms h3 {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.platform-badge:hover {
    transform: scale(1.1);
}

.platform-badge span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
}

/* AI CTA Section */
.ai-cta {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    margin-top: var(--space-xl);
    position: relative;
}

.ai-cta h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.ai-cta p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.launch-date {
    font-size: var(--font-size-base);
    color: var(--gray-500);
    font-weight: 600;
    padding-top: var(--space-md);
    border-top: 2px solid var(--light);
    display: inline-block;
    margin: 0;
}

/* Responsive for AI Section */
@media (max-width: 768px) {
    .framework-cards {
        grid-template-columns: 1fr;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo-text-wrapper {
        display: none;
    }
}