/* Design System - Inspired by guia.fr */
:root {
    /* Colors - HSL format */
    --primary: hsl(256, 95%, 57%);
    --primary-dark: hsl(247, 70%, 39%);
    --primary-light: hsl(256, 95%, 70%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 10%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(256, 95%, 57%), hsl(247, 70%, 39%));
    --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(256, 95%, 97%));

    /* Shadows */
    --shadow-elegant: 0 10px 40px -10px hsla(270, 93%, 57%, 0.2);
    --shadow-glow: 0 0 60px hsla(270, 93%, 57%, 0.15);
    --shadow-xl: 0 20px 50px -15px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

#app {
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.hero-logo {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.animated-word {
    display: inline-block;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    color: white;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Example Section */
.example-section {
    padding: 6rem 2rem;
    background: var(--gradient-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .example-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.example-mockup {
    position: relative;
}

.browser-frame {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-elegant);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.browser-frame:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-elegant);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: hsl(0, 0%, 98%);
    border-bottom: 1px solid var(--border);
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(0, 0%, 85%);
}

.browser-content {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, hsl(256, 95%, 97%), white);
}

.slide-preview {
    text-align: center;
}

.slide-preview h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.slide-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.point {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.point:nth-child(1) { animation-delay: 0.1s; }
.point:nth-child(2) { animation-delay: 0.2s; }
.point:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-footer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
}

.example-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Generator Section */
.generator-section {
    padding: 6rem 2rem;
    background: white;
}

.generator-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-elegant);
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.label-icon {
    font-size: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-smooth);
    background: white;
    resize: vertical;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(256, 95%, 57%, 0.1);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.btn-generate {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-hero);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-elegant);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-elegant);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading Message */
.loading-message {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--muted);
    border-radius: 16px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.loading-step.active {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 1.5rem;
}

.step-text {
    font-weight: 600;
    color: var(--foreground);
}

/* Error Message */
.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: hsl(0, 84%, 97%);
    color: hsl(0, 84%, 40%);
    border-radius: 12px;
    border-left: 4px solid hsl(0, 84%, 60%);
}

/* Email Capture */
.email-capture-section {
    margin-top: 3rem;
}

.email-card {
    background: linear-gradient(135deg, hsla(256, 95%, 57%, 0.05), hsla(300, 100%, 70%, 0.05));
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.email-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.email-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.email-card p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

@media (max-width: 640px) {
    .email-form {
        flex-direction: column;
    }
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(256, 95%, 57%, 0.1);
}

.btn-email {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-hero);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

.email-privacy {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    font-family: var(--font-family);
}

.btn-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

.btn-action.btn-primary {
    background: var(--gradient-hero);
    border-color: var(--primary);
    color: white;
}

.btn-icon {
    font-size: 2rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-hero);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

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

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cta-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: var(--font-family);
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-learn {
    background: linear-gradient(135deg, hsl(220, 90%, 56%), hsl(240, 100%, 66%));
    color: white;
}

.btn-cta-buy {
    background: linear-gradient(135deg, hsl(280, 90%, 56%), hsl(300, 100%, 66%));
    color: white;
}

.cta-icon {
    font-size: 2.5rem;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.cta-text strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.cta-text small {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: hsl(0, 0%, 10%);
    color: hsl(0, 0%, 60%);
    padding: 3rem 2rem;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .generator-card {
        padding: 2rem 1.5rem;
    }
}

/* Demo Iframe */
.iframe-container {
    width: 100%;
    height: 500px;
    background: white;
    position: relative;
}

.demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.demo-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
}

@media (min-width: 1024px) {
    .iframe-container {
        height: 600px;
    }
}

/* Example Section - New Layout */
.example-content {
    max-width: 1200px;
    margin: 0 auto;
}

.presentation-slideshow {
    margin-bottom: 3rem;
}

.presentation-slideshow .browser-frame {
    max-width: 100%;
}

/* Features Row - 3 columns on one line */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.feature-item .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .features-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.25rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}
