/* ============================================
   BabyDaily — Landing Page
   Design System : #F4F0FB bg, violet #7C3AED
   Fonts : DM Serif Display + Nunito
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #F4F0FB;
    --violet: #7C3AED;
    --violet-light: #C4B5FD;
    --violet-soft: #EDE9FE;
    --pink: #EC4899;
    --text: #1E1333;
    --text-secondary: #7B7494;
    --text-light: #B0A8CC;
    --white: #ffffff;
    --grad: linear-gradient(135deg, #7C3AED, #A855F7, #EC4899);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shadow-violet: 0 8px 32px rgba(124, 58, 237, 0.18);
    --shadow-soft: 0 4px 20px rgba(124, 58, 237, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.15;
}

h1 em, h2 em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAV
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(244, 240, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-img-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--text);
}

.btn-nav {
    background: var(--grad);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-nav:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-blob {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--violet-soft);
    color: var(--violet);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--text);
    line-height: 1.12;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    max-width: 440px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s, opacity 0.2s;
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-hero-secondary {
    color: var(--violet);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 14px 8px;
    border-bottom: 2px solid var(--violet-light);
    transition: border-color 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--violet);
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: white;
    padding: 12px 22px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 20px rgba(30, 19, 51, 0.3);
}

.btn-store:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-store div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-store span {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 600;
}

.btn-store strong {
    font-size: 1rem;
    font-weight: 800;
}

.btn-store-outline {
    background: white;
    color: var(--text);
    border: 2px solid rgba(30, 19, 51, 0.1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone-mockup {
    border-radius: 44px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(124, 58, 237, 0.28),
        0 10px 30px rgba(0, 0, 0, 0.12);
    border: 6px solid rgba(255, 255, 255, 0.9);
    background: #f0ebff;
    display: inline-block;
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
}

.phone-hero {
    width: min(320px, 100%);
    transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.phone-hero:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-featured {
    box-shadow:
        0 50px 100px rgba(124, 58, 237, 0.35),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--soft, #EDE9FE);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}

.feature-card-wide {
    grid-column: span 3;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon .material-symbols-rounded {
    font-size: 26px;
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots {
    padding: 100px 0;
    background: var(--bg);
}

.phones-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
}

.phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.phone-wrap .phone-mockup {
    width: 200px;
}

.phone-center-wrap .phone-mockup {
    width: 240px;
}

.phone-left .phone-mockup {
    transform: rotate(-4deg) translateY(20px);
}

.phone-right .phone-mockup {
    transform: rotate(4deg) translateY(20px);
}

.phone-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.step {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad);
    color: white;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.step h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.step-arrow {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ============================================
   FAMILY
   ============================================ */
.family {
    padding: 100px 0;
    background: var(--bg);
}

.family-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.family-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-violet {
    background: var(--violet-soft);
    color: var(--violet);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-indigo {
    background: #E0E7FF;
    color: #4338CA;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-mint {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.family-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.family-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.family-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.family-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--violet-soft);
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.check-indigo {
    background: #E0E7FF;
    color: #4338CA;
}

.family-phone {
    display: flex;
    justify-content: center;
}

.family-phone .phone-mockup {
    width: min(280px, 100%);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 100px 0;
    background: white;
}

.stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-phone {
    display: flex;
    justify-content: center;
}

.stats-phone .phone-mockup {
    width: min(280px, 100%);
}

.stats-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.stats-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   DOWNLOAD
   ============================================ */
.download {
    padding: 100px 0;
    background: var(--bg);
}

.download-card {
    background: var(--grad);
    border-radius: var(--radius-lg);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.download-badge {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.download-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 16px;
}

.download-card h2 em {
    font-style: italic;
    -webkit-text-fill-color: white;
    background: none;
    opacity: 0.85;
}

.download-card p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-store-dl {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--text);
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-store-dl div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.btn-store-dl span {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 600;
}

.btn-store-dl strong {
    font-size: 1rem;
    font-weight: 800;
}

.btn-store-dl:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.btn-store-dl-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: none;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px auto 28px;
    max-width: 320px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--violet);
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ============================================
   ANIMATIONS AU SCROLL
   ============================================ */
.animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate.visible {
    opacity: 1;
    transform: none;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 100px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.08);
    transition: box-shadow 0.2s;
}

.faq-item.open {
    box-shadow: var(--shadow-violet);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    gap: 12px;
}

.faq-question:hover {
    color: var(--violet);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--violet-light);
    transition: transform 0.3s ease;
    font-size: 22px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--violet);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.85);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .phone-hero {
        transform: none;
        width: min(280px, 70vw);
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card-wide {
        grid-column: span 2;
    }

    .phones-row {
        gap: 12px;
    }

    .phone-wrap .phone-mockup {
        width: 140px;
    }

    .phone-center-wrap .phone-mockup {
        width: 170px;
    }

    .family-inner,
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .family-inner {
        direction: rtl;
    }

    .family-text,
    .stats-text {
        direction: ltr;
        align-items: center;
    }

    .stats-inner {
        direction: ltr;
    }

    .family-list li {
        justify-content: center;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .download-card {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-wide {
        grid-column: span 1;
    }

    .phones-row {
        overflow-x: auto;
        padding-bottom: 16px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .phone-left .phone-mockup,
    .phone-right .phone-mockup {
        transform: none;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}
