/* Saafino — Marketing site
   Palette : navy (#163257) / cream (#F3E2C9) / orange (#CA944D)
   Typo : Inter sans-serif
   Inspiration : minimaliste / beaucoup d'air / belarebia.com
*/

:root {
    --cream: #F3E2C9;
    --cream-light: #FAF1DD;
    --cream-deep: #E8D4B5;
    --navy: #163257;
    --navy-deep: #0E2240;
    --navy-light: #2A4A75;
    --orange: #CA944D;
    --orange-bright: #E0A85F;
    --orange-deep: #A87538;
    --text-on-cream: var(--navy);
    --text-secondary: #5A6B82;

    --maxw: 1100px;
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-on-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--navy); }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ======== Header ======== */
.site-header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(243, 226, 201, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--navy);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--navy);
    font-weight: 500;
    font-size: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--cream);
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 50, 87, 0.25);
    color: var(--cream);
}
.btn-orange {
    background: var(--orange);
    color: var(--navy-deep);
}
.btn-orange:hover {
    background: var(--orange-deep);
    color: var(--cream);
    box-shadow: 0 12px 24px rgba(202, 148, 77, 0.4);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-ghost:hover {
    background: var(--navy);
    color: var(--cream);
}

/* ======== Hero ======== */
.hero {
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    margin-bottom: 32px;
    box-shadow: 0 30px 80px rgba(22, 50, 87, 0.2);
    /* Apparition : reste centré, scale + fade + halo qui pulse */
    animation:
        appearCenter 1s cubic-bezier(0.16, 1, 0.3, 1) both,
        floatBird 4s ease-in-out 1s infinite,
        glowPulse 3s ease-in-out 1s infinite;
}

@keyframes appearCenter {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatBird {
    0%, 100% { transform: translateY(0) rotate(0); }
    25%      { transform: translateY(-10px) rotate(-1.5deg); }
    50%      { transform: translateY(-14px) rotate(0); }
    75%      { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 30px 80px rgba(22, 50, 87, 0.2), 0 0 0 0 rgba(202, 148, 77, 0); }
    50%      { box-shadow: 0 36px 100px rgba(22, 50, 87, 0.28), 0 0 60px 12px rgba(202, 148, 77, 0.18); }
}

.hero h1 {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero p.tagline {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--orange-deep);
    font-weight: 500;
    margin-bottom: 40px;
    font-style: italic;
}

.hero p.lede {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ======== Sections ======== */
section {
    padding: 96px 0;
    position: relative;
}

section.alt {
    background: var(--cream-light);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange-deep);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
}

.section-lead {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 48px;
}

/* ======== Feature grid ======== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--cream-light);
    border: 1px solid rgba(22, 50, 87, 0.08);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

section.alt .feature-card {
    background: var(--cream);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(22, 50, 87, 0.1);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--navy);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ======== Principles ======== */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 56px;
    margin-top: 48px;
}

.principle {
    border-left: 3px solid var(--orange);
    padding-left: 20px;
}

.principle h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.principle p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ======== Story (touchante, fond gradient doux + halos) ======== */
.story {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
    color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.story::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0.18;
    pointer-events: none;
}

.story::after {
    content: '';
    position: absolute;
    bottom: -240px;
    left: -200px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, var(--orange-deep) 0%, transparent 70%);
    opacity: 0.12;
    pointer-events: none;
}

.story h2 {
    color: var(--cream);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    position: relative;
}

.story p {
    color: var(--cream);
    opacity: 0.92;
    font-size: 18px;
    line-height: 1.75;
    max-width: 640px;
    margin: 18px auto 0;
    position: relative;
    text-align: left;
}

.story p em {
    color: var(--orange-bright);
    font-weight: 600;
    font-style: italic;
}

.story p strong {
    color: var(--orange-bright);
    font-weight: 700;
    font-style: normal;
}

.story .signature {
    margin-top: 48px;
    color: var(--orange-bright);
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
}

/* ======== Final CTA ======== */
.final-cta {
    padding: 96px 0;
    text-align: center;
    background: var(--cream-light);
}

.final-cta h2 {
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn {
    margin-top: 32px;
}

.final-cta .small {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ======== Footer ======== */
footer {
    background: var(--navy-deep);
    color: var(--cream);
    padding: 64px 0 32px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

footer h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange-bright);
    margin-bottom: 16px;
}

footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--cream); opacity: 0.8; }
footer a:hover { opacity: 1; color: var(--orange-bright); }

.footer-brand p {
    margin-top: 16px;
    color: var(--cream);
    opacity: 0.65;
    font-size: 14px;
    max-width: 320px;
}

.footer-bottom {
    border-top: 1px solid rgba(243, 226, 201, 0.15);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    color: var(--cream);
    opacity: 0.5;
    font-size: 13px;
}

/* ======== Animations ======== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== Responsive ======== */
@media (max-width: 720px) {
    .nav a:not(.btn) { display: none; }
    .hero { padding: 56px 0 80px; }
    .hero-logo { width: 120px; height: 120px; }
    section { padding: 64px 0; }
    footer .container { grid-template-columns: 1fr 1fr; }
}

/* ======== Pages legales (privacy, terms) ======== */
.legal-page {
    padding: 80px 0 120px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--navy);
}

.legal-page .meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-deep);
}

.legal-page h2 {
    font-size: 26px;
    margin-top: 48px;
    margin-bottom: 12px;
    color: var(--navy);
}

.legal-page h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 8px;
    color: var(--navy);
}

.legal-page p, .legal-page ul {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 16px;
}

.legal-page ul { padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }

.legal-page strong { color: var(--navy); }

/* ======== Waitlist form ======== */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 32px auto 12px;
    padding: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.waitlist-form input[type="email"] {
    flex: 1 1 280px;
    min-width: 0;
    padding: 14px 22px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.waitlist-form input[type="email"]::placeholder {
    color: rgba(22, 50, 87, 0.45);
}

.waitlist-form input[type="email"]:hover {
    background: #fffdf9;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(202, 148, 77, 0.25);
}

.waitlist-form .btn {
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding: 14px 26px;
    font-size: 16px;
}

.waitlist-form button[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.waitlist-status {
    min-height: 1.4em;
    font-size: 14px;
    margin: 4px 0 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.waitlist-status.success {
    color: #2d7a4f;
    font-weight: 600;
}

.waitlist-status.error {
    color: #c0392b;
}

@media (max-width: 520px) {
    .waitlist-form {
        flex-direction: column;
        gap: 10px;
    }
    .waitlist-form input[type="email"],
    .waitlist-form .btn {
        width: 100%;
    }
}
