/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Educational, trustworthy colors */
    --primary: #1e4a6b;
    --primary-light: #2c6b8f;
    --primary-dark: #12344d;
    --accent: #8b5cf6;
    --success: #0f766e;
    --warning: #b45309;
    
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    
    /* Word part colors - educational and clear */
    --prefix: #1e4a6b;
    --root: #0f766e;
    --suffix: #b45309;
    
    /* Spacing */
    --xs: 0.5rem;
    --sm: 1rem;
    --md: 2rem;
    --lg: 4rem;
    --xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sm);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--sm);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: var(--sm);
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--xs);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: var(--lg);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sm) var(--md);
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-button {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
}

.nav-button:hover {
    background: var(--primary-dark);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: calc(var(--xl) + 2rem) 0 var(--lg);
    background: linear-gradient(to bottom, #f0f7ff, white);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--lg);
}

.hero-text {
    flex: 1;
}

.gradient-text {
    color: var(--primary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--md);
}

.hero-badges {
    display: flex;
    gap: var(--xs);
    margin-top: var(--sm);
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: var(--sm);
    margin: var(--md) 0;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.cta-primary {
    background: var(--primary);
    color: white;
}

.cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cta-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-secondary:hover {
    background: #f0f7ff;
}

/* Origins Section */
.origins {
    padding: var(--xl) 0;
    background: white;
}

.origins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--md);
    margin: var(--md) 0 var(--lg);
}

.origin-card {
    background: var(--light);
    padding: var(--md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.origin-icon {
    font-size: 3rem;
    margin-bottom: var(--xs);
}

.origin-era {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: var(--xs);
}

.origin-examples {
    margin: var(--sm) 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.origin-examples .example {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.origins-summary {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--md);
    border-top: 1px solid var(--light-gray);
}

/* The Secret Section */
.the-secret {
    padding: var(--xl) 0;
    background: var(--light);
}

.building-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--md);
    margin-bottom: var(--lg);
}

.block {
    background: white;
    padding: var(--md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.block.prefix { border-bottom: 4px solid var(--prefix); }
.block.root { border-bottom: 4px solid var(--root); }
.block.suffix { border-bottom: 4px solid var(--suffix); }

.block-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--xs);
}

.block-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: var(--sm);
}

.block-examples {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.formula-box {
    background: white;
    padding: var(--lg);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.formula {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: var(--md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formula-example {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--sm);
}

.example-prefix { color: var(--prefix); }
.example-root { color: var(--root); }
.example-suffix { color: var(--suffix); }
.example-plus, .example-equals { color: var(--gray); }
.example-result { color: var(--dark); }

.example-meaning {
    color: var(--gray);
    font-style: italic;
}

.secret-note {
    text-align: center;
    max-width: 700px;
    margin: var(--lg) auto 0;
    color: var(--gray);
    font-style: italic;
}

/* How it Works */
.how-it-works {
    padding: var(--xl) 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--md);
}

.step-card {
    background: var(--light);
    padding: var(--md);
    border-radius: var(--radius-lg);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--sm);
}

.step-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--sm);
}

.pill {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    background: white;
}

.pill-prefix { color: var(--prefix); border: 1px solid var(--prefix); }
.pill-root { color: var(--root); border: 1px solid var(--root); }
.pill-suffix { color: var(--suffix); border: 1px solid var(--suffix); }

.step-pattern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-top: var(--sm);
    font-size: 0.95rem;
}

.pattern { color: var(--gray); }
.pattern-arrow { color: var(--gray); }
.pattern-plus { color: var(--gray); }
.pattern-equals { color: var(--gray); }
.pattern-result { color: var(--dark); font-weight: 600; }

.step-example {
    margin-top: var(--sm);
    padding: var(--sm);
    background: white;
    border-radius: var(--radius-md);
}

.example-term {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--xs);
}

.example-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: var(--xs);
}

/* Samples Section */
.samples {
    padding: var(--xl) 0;
    background: var(--light);
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--md);
    max-width: 900px;
    margin: 0 auto;
}

.sample-card {
    background: white;
    padding: var(--md);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sample-word {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--sm);
    text-align: center;
}

.sample-parts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--sm);
}

.part {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.part-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
}

.sample-meaning {
    text-align: center;
    font-style: italic;
    color: var(--gray);
    padding-top: var(--xs);
    border-top: 1px solid var(--light-gray);
}

/* Community Section */
.community {
    padding: var(--xl) 0;
    background: white;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--md);
    margin: var(--lg) 0;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.community-invite {
    text-align: center;
    max-width: 600px;
    margin: var(--lg) auto 0;
    padding: var(--md);
    background: var(--light);
    border-radius: var(--radius-lg);
}

/* Partners Section */
.partners {
    padding: var(--xl) 0;
    background: var(--light);
}

.partner-intro {
    max-width: 700px;
    margin: 0 auto var(--lg);
    text-align: center;
    color: var(--gray);
}

.partner-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--md);
    margin-bottom: var(--lg);
}

.partner-area {
    background: white;
    padding: var(--md);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.partner-area h3 {
    margin-bottom: var(--xs);
    color: var(--primary);
}

.partner-cta {
    text-align: center;
}

/* Ambassadors Section */
.ambassadors {
    padding: var(--xl) 0;
    background: white;
}

.ambassadors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--md);
    margin: var(--lg) 0;
}

.ambassador-card {
    background: var(--light);
    padding: var(--md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.ambassador-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--sm);
}

.ambassador-title {
    color: var(--gray);
    font-size: 0.9rem;
    margin: var(--xs) 0;
}

.ambassador-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--dark);
}

.ambassador-invite {
    text-align: center;
    margin-top: var(--lg);
    padding: var(--md);
    background: var(--light);
    border-radius: var(--radius-lg);
}

/* Get Involved Section */
.get-involved {
    padding: var(--xl) 0;
    background: var(--light);
}

.involve-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--md);
    max-width: 800px;
    margin: 0 auto;
}

.involve-card {
    background: white;
    padding: var(--md);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.simple-form {
    margin-top: var(--sm);
}

.simple-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.simple-form .submit-button {
    width: 100%;
}

/* Contact Section */
.contact {
    padding: var(--xl) 0;
    background: white;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto var(--lg);
    padding: var(--md);
    background: var(--light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--xs);
}

.contact-email {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin: var(--xs) 0;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin: var(--xs) 0;
}

.contact-prefixes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--xs);
}

.prefix {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.contact-form-container {
    max-width: 600px;
    margin: var(--lg) auto;
}

.contact-form {
    background: var(--light);
    padding: var(--md);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--xs);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--sm);
    margin-top: var(--lg);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.2s;
    border: 1px solid var(--light-gray);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--lg) 0 var(--sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--md);
    margin-bottom: var(--lg);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--sm);
    font-size: 1rem;
}

.footer-section p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--md);
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-handle {
    margin-top: var(--xs);
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: var(--lg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: var(--sm);
    right: var(--sm);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
}

.close-modal:hover {
    background: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: var(--md);
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .building-blocks {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .samples-grid {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-areas {
        grid-template-columns: 1fr;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .involve-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ambassadors-grid {
        grid-template-columns: 1fr;
    }
}