/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette sombre exacte de l'app */
    --bg: #0C1730;
    --surface: #122348;
    --elev: #1A2F5E;
    --border: rgba(255, 255, 255, 0.08);
    --text: #EAF1FF;
    --muted: #A6B3D5;

    /* Dégradé accent orange → rose */
    --grad-start: #FF8A00;
    --grad-end: #FF3D81;

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 138, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 1rem;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header sticky */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 23, 48, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.cta-button {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-button-large {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.2s ease;
    background: transparent;
}

.cta-button-secondary:hover {
    border-color: var(--grad-start);
    background: rgba(255, 138, 0, 0.1);
    transform: translateY(-1px);
}

/* Hero section */
.hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(26, 47, 94, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: var(--space-2xl);
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Features section */
.features {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text);
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    background: var(--elev);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--grad-start);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
    letter-spacing: -0.02em;
}

.feature-description {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
}

.feature-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Promise section */
.promise {
    padding: var(--space-2xl) 0;
    background: var(--surface);
    text-align: center;
}

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

.promise-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--text);
}

.promise-quote {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    position: relative;
    padding: var(--space-xl);
}

.promise-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--grad-start);
    position: absolute;
    top: 0;
    left: var(--space-md);
    font-family: Georgia, serif;
}

.promise-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--grad-start);
    position: absolute;
    bottom: -40px;
    right: var(--space-md);
    font-family: Georgia, serif;
}

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

.about-content {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.about-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-card-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.about-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.founder-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    padding: 3px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg);
}

.about-info {
    flex: 1;
}

.about-info .section-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    text-align: left;
}

.founder-credit {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
}

.founder-credit strong {
    color: var(--grad-start);
    font-weight: 600;
}

.about-description {
    text-align: left;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.about-vision {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
    padding-left: var(--space-lg);
    border-left: 3px solid var(--grad-start);
    margin: 0;
}

/* CTA final section */
.cta-final {
    padding: var(--space-3xl) 0;
    background: var(--surface);
    text-align: center;
}

.cta-final-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--elev);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.footer-section p,
.footer-section a {
    color: var(--muted);
    text-decoration: none;
    line-height: 1.6;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button-large,
    .cta-button-secondary {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .feature-card {
        padding: var(--space-lg);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .about-info .section-title {
        text-align: center;
    }

    .about-description {
        text-align: center;
    }

    .founder-photo {
        width: 64px;
        height: 64px;
    }
}

/* SVG Icons */
.icon-share {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-connect {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-habits {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-simple {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}