/* Design System - Deep Reflection */
:root {
    /* Colors HSL */
    --background: hsl(35, 25%, 97%);
    --foreground: hsl(30, 15%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(30, 15%, 15%);
    --primary: hsl(280, 85%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(35, 45%, 85%);
    --secondary-foreground: hsl(30, 15%, 15%);
    --muted: hsl(35, 25%, 92%);
    --muted-foreground: hsl(30, 10%, 45%);
    --accent: hsl(40, 85%, 65%);
    --accent-foreground: hsl(30, 15%, 15%);
    --border: hsl(35, 20%, 88%);
    --warm-100: hsl(35, 45%, 95%);
    --warm-50: hsl(35, 45%, 98%);
    
    /* Gradients & Shadows */
    --shadow-elegant: 0 20px 60px -15px hsla(280, 85%, 45%, 0.25);
    --shadow-soft: 0 4px 20px -2px hsla(30, 15%, 15%, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 0%, var(--warm-100) 50%, var(--secondary) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, hsla(280, 85%, 45%, 0.1), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.hero-logo {
    width: 12rem;
    height: auto;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--foreground);
    max-width: 64rem;
    margin: 0 auto 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--background), transparent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    background-color: hsl(280, 85%, 40%);
    transform: scale(1.05);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

.btn-cta-primary {
    background-color: var(--primary-foreground);
    color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary:hover {
    background-color: hsla(0, 0%, 100%, 0.9);
    transform: scale(1.05);
}

.btn-cta-primary .btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover .btn-arrow {
    transform: translateX(4px);
}

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

.btn-cta-outline:hover {
    background-color: var(--primary-foreground);
    color: var(--primary);
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 5rem 0;
    background-color: var(--background);
}

.section-gradient {
    background: linear-gradient(to bottom, var(--background), var(--muted));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Historical Figures */
.historical-image-container {
    max-width: 80rem;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    animation: fadeIn 0.8s ease-out;
}

.historical-image {
    width: 100%;
    height: auto;
    display: block;
}

.period-section {
    margin-bottom: 3rem;
}

.period-section:last-child {
    margin-bottom: 0;
}

.period-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding-top: 2rem;
}

.figure-card {
    position: relative;
    background: hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(280, 85%, 45%, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.figure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 30px -4px hsla(30, 15%, 15%, 0.15);
    border-color: hsla(280, 85%, 45%, 0.4);
}

.figure-card-disabled {
    background: hsla(0, 0%, 100%, 0.3);
    border-color: hsla(35, 20%, 88%, 0.5);
    opacity: 0.6;
    cursor: not-allowed;
}

.figure-card-disabled:hover {
    transform: none;
}

.figure-name {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.figure-card-disabled .figure-name {
    color: var(--muted-foreground);
}

.figure-action {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.figure-card-disabled .figure-action {
    color: hsla(30, 10%, 45%, 0.7);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.6s ease-out;
}

.benefit-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-8px);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: hsla(280, 85%, 45%, 0.1);
    border-radius: 0.75rem;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1rem;
    text-align: center;
}

.benefit-description {
    color: var(--muted-foreground);
    text-align: center;
    line-height: 1.6;
}

/* Experience */
.experience-icon {
    display: inline-flex;
    padding: 0.75rem;
    background-color: hsla(280, 85%, 45%, 0.1);
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 1rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.question-card {
    background: linear-gradient(to right, var(--card), var(--warm-50));
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.6s ease-out;
}

.question-card:hover {
    box-shadow: var(--shadow-elegant);
}

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

.question-context {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.experience-footer {
    text-align: center;
    padding-top: 2rem;
}

.experience-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--foreground);
    font-style: italic;
}

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

/* Call to Action */
.cta-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(290, 75%, 35%) 100%);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, hsla(40, 85%, 65%, 0.2), transparent, transparent);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-icon {
    display: inline-flex;
    padding: 1rem;
    background-color: hsla(0, 0%, 100%, 0.1);
    border-radius: 50%;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.cta-footer {
    padding-top: 2rem;
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: hsla(30, 15%, 15%, 0.05);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

/* Animation Delays */
.benefit-card[data-index="0"] { animation-delay: 0s; }
.benefit-card[data-index="1"] { animation-delay: 0.15s; }
.benefit-card[data-index="2"] { animation-delay: 0.3s; }

.question-card[data-index="0"] { animation-delay: 0s; }
.question-card[data-index="1"] { animation-delay: 0.1s; }
.question-card[data-index="2"] { animation-delay: 0.2s; }

.figure-card:nth-child(1) { animation-delay: 0s; }
.figure-card:nth-child(2) { animation-delay: 0.1s; }
.figure-card:nth-child(3) { animation-delay: 0.2s; }
.figure-card:nth-child(4) { animation-delay: 0.3s; }
.figure-card:nth-child(5) { animation-delay: 0.4s; }

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-logo {
        width: 16rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-subtitle {
        font-size: 1.5rem;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-copyright {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.75rem;
    }
    
    .cta-title {
        font-size: 3.75rem;
    }
}