/* ── LunaCare Landing Page ── */

:root {
    --primary: #FDA9B9;
    --primary-dark: #E8939F;
    --primary-light: #FCCAD6;
    --accent: #FDE8EC;
    --accent-light: #FFF4F6;
    --bg: #FFFAFB;
    --bg-dark: #2D2D2D;
    --text: #2D2D2D;
    --text-secondary: #7B7B8E;
    --text-hint: #A8A8B8;
    --white: #FFFFFF;
    --border: #F5EAEE;
    --gradient: linear-gradient(135deg, #FDA9B9 0%, #FCCAD6 100%);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--primary-light);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 250, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(253, 169, 185, 0.4);
}

.navbar-cta svg { flex-shrink: 0; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(160deg, var(--bg) 0%, var(--accent-light) 30%, var(--accent) 60%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253,169,185,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252,202,214,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(253, 169, 185, 0.12);
    border: 1px solid rgba(253, 169, 185, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(253, 169, 185, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(253, 169, 185, 0.45);
}

.hero-cta:active {
    transform: translateY(0);
}

.hero-trust {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-hint);
    font-weight: 500;
}

.hero-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* ── Phone Mockup ── */
.phone-mockup {
    width: 280px;
    height: 560px;
    border: 8px solid #1a1a1a;
    border-radius: 44px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        -8px 0 20px rgba(0,0,0,0.04);
    transform: rotate(3deg);
    animation: float 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mock-header {
    background: linear-gradient(135deg, #FDA9B9 0%, #FCCAD6 100%);
    padding: 42px 16px 16px;
    color: white;
}

.mock-greeting {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mock-tip {
    font-size: 9px;
    opacity: 0.85;
    line-height: 1.3;
    background: rgba(255,255,255,0.18);
    padding: 6px 8px;
    border-radius: 6px;
}

.mock-body {
    flex: 1;
    padding: 12px;
}

.mock-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.mock-cards {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mock-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.mock-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.mock-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.mock-card-label {
    font-size: 8px;
    color: var(--text-hint);
    font-weight: 500;
}

.mock-reminder {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.mock-reminder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.mock-dot-green { background: #4CAF50; }

.mock-reminder-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
}

.mock-reminder-sub {
    font-size: 8px;
    color: var(--text-hint);
}

.mock-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.mock-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-hint);
    opacity: 0.3;
}

.mock-nav-dot.active {
    background: var(--primary);
    opacity: 1;
}

/* ── Features ── */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    color: var(--text);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.7;
}

/* ── How It Works ── */
.how-it-works {
    padding: 100px 0;
    background: var(--accent-light);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon {
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

.step-connector {
    width: 60px;
    height: 2px;
    border-top: 2px dashed var(--primary);
    align-self: center;
    margin-top: -80px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ── Security ── */
.security {
    padding: 100px 0;
    background: var(--white);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.security-item {
    text-align: center;
}

.security-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.security-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Final CTA ── */
.cta-final {
    padding: 100px 0;
    background: linear-gradient(135deg, #FDA9B9 0%, #FCCAD6 50%, #FDE8EC 100%);
}

.cta-final-inner {
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    background: var(--white);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ── Footer ── */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 32px;
}

.footer-top {
    text-align: center;
    margin-bottom: 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 13px;
}

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-12px); }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.feature-card.animate-in:nth-child(2) { transition-delay: 0.1s; }
.feature-card.animate-in:nth-child(3) { transition-delay: 0.2s; }
.feature-card.animate-in:nth-child(4) { transition-delay: 0.1s; }
.feature-card.animate-in:nth-child(5) { transition-delay: 0.2s; }
.feature-card.animate-in:nth-child(6) { transition-delay: 0.3s; }

.step.animate-in:nth-child(3) { transition-delay: 0.15s; }
.step.animate-in:nth-child(5) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .hero-inner { gap: 40px; }
    .phone-mockup { width: 250px; height: 500px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; margin-bottom: 40px; }

    .navbar-cta span { display: none; }
    .navbar-cta { padding: 10px; border-radius: 50%; }

    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 34px; }
    .hero-subtitle {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-badge { margin-bottom: 20px; }
    .hero-visual { margin-top: 20px; }
    .phone-mockup {
        width: 220px;
        height: 440px;
        transform: rotate(0deg);
    }
    @keyframes float {
        0%, 100% { transform: rotate(0deg) translateY(0); }
        50% { transform: rotate(0deg) translateY(-8px); }
    }

    .features { padding: 70px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feature-card { padding: 24px; }

    .how-it-works { padding: 70px 0; }
    .steps { flex-direction: column; align-items: center; gap: 24px; }
    .step-connector {
        width: 2px;
        height: 30px;
        border-top: none;
        border-left: 2px dashed var(--primary);
        margin-top: 0;
    }

    .security { padding: 70px 0; }
    .security-grid { grid-template-columns: 1fr; gap: 32px; }

    .cta-final { padding: 70px 0; }
    .cta-title { font-size: 28px; }
    .cta-subtitle { font-size: 16px; }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-cta { padding: 14px 28px; font-size: 15px; }
    .phone-mockup { width: 200px; height: 400px; }
    .mock-greeting { font-size: 14px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 20px; }
    .cta-title { font-size: 24px; }
    .cta-button { padding: 14px 32px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
