/* ========================================
   HealthFace Website
   ======================================== */

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

:root {
    --bg: #000;
    --bg-subtle: #111;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #ffea00;
    --radius: 16px;
    --max-width: 1080px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---- Nav ---- */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.download-badge {
    display: inline-block;
}

.download-badge img {
    height: 54px;
    width: auto;
    transition: opacity 0.2s;
}

.download-badge:hover img {
    opacity: 0.85;
}

/* ---- Device Frames ---- */

.device-frame {
    position: relative;
    overflow: hidden;
    background: #000;
}

.iphone-frame {
    border-radius: 40px;
    border: 4px solid #333;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.5);
    max-width: 280px;
}

.iphone-frame img {
    border-radius: 36px;
    width: 100%;
}

.watch-frame {
    border-radius: 28px;
    border: 3px solid #333;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 12px 40px rgba(0,0,0,0.4);
    max-width: 180px;
}

.watch-frame img {
    border-radius: 25px;
    width: 100%;
}

.device-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ---- Showcase (hero devices) ---- */

.showcase {
    padding: 40px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.device-iphone {
    flex-shrink: 0;
}

.device-watch-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---- Features ---- */

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

.feature {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 420px;
}

.feature-device {
    flex-shrink: 0;
}

.feature-device .iphone-frame {
    max-width: 260px;
}

/* ---- Stats ---- */

.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 80px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ---- Watch Showcase ---- */

.watch-showcase {
    text-align: center;
    padding: 80px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-width);
    margin: 0 auto;
}

.watch-showcase h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.watch-showcase > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.watch-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ---- CTA ---- */

.cta {
    text-align: center;
    padding: 80px 24px 100px;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 8px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ---- Footer ---- */

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 32px 24px 40px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-content > p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-content > p a {
    color: var(--text-secondary);
}

.footer-content > p a:hover {
    color: var(--text);
}

/* ---- Privacy / Support pages ---- */

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.page h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page .page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1rem;
}

.page h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 40px 0 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.page p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px 24px;
}

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

.page a {
    color: var(--accent);
}

.page a:hover {
    color: #fff;
}

.support-options {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.support-card {
    background: var(--bg-subtle);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px;
}

.support-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.support-card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.support-card a.support-link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .device-row {
        flex-direction: column;
        gap: 40px;
    }

    .device-watch-group {
        flex-direction: row;
        justify-content: center;
    }

    .feature,
    .feature-reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-content p {
        max-width: 100%;
    }

    .feature-device .iphone-frame {
        margin: 0 auto;
    }

    .stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .hero {
        padding-top: 48px;
    }
}

@media (max-width: 480px) {
    .stats {
        flex-direction: column;
        gap: 24px;
    }

    .watch-row {
        gap: 20px;
    }

    .watch-frame {
        max-width: 140px;
    }

    .iphone-frame {
        max-width: 240px;
    }
}
