/* PetDiet — Landing Page Styles */

:root {
    --coral: #FF6B47;
    --coral-light: #FF8A6A;
    --coral-glow: rgba(255, 107, 71, 0.25);
    --violet: #8B6CC1;
    --violet-light: #A78BDA;
    --violet-glow: rgba(139, 108, 193, 0.25);
    --warm-gray: #F7F5F3;
    --text: #1C1917;
    --text-secondary: #78716C;
    --text-tertiary: #A8A29E;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --font: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);
    --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --warm-gray: #0C0A09;
        --text: #FAFAF9;
        --text-secondary: #A8A29E;
        --text-tertiary: #78716C;
        --bg: #0C0A09;
        --card-bg: #1C1917;
        --card-border: rgba(255, 255, 255, 0.06);
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }

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

/* ─── Nav ─── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s;
}

@media (prefers-color-scheme: dark) {
    .nav { background: rgba(12,10,9,0.72); }
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    box-shadow: 0 2px 8px var(--coral-glow);
}

.nav-links {
    display: flex; gap: 28px; list-style: none;
}

.nav-links a {
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ─── Hero ─── */

.hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%; left: -20%; right: -20%;
    height: 140%;
    background:
        radial-gradient(ellipse 60% 50% at 30% 20%, var(--coral-glow), transparent),
        radial-gradient(ellipse 50% 40% at 70% 30%, var(--violet-glow), transparent),
        radial-gradient(ellipse 80% 60% at 50% 80%, rgba(255,107,71,0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 6px 18px 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--coral) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* App Store Button */

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    border: none; cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .btn-appstore { background: #FAFAF9; color: #0C0A09; }
}

.btn-appstore:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--bg);
}

@media (prefers-color-scheme: dark) {
    .btn-appstore:hover { color: #0C0A09; }
}

.btn-appstore svg { width: 20px; height: 20px; fill: currentColor; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-tertiary);
    background: var(--card-bg);
}

/* Phone Mockup */

.hero-phone {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-notch {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-screen {
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(160deg, #FFF5F2 0%, #F3EEFF 40%, #F7F5F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.phone-screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-align: center;
    padding: 24px;
}

.phone-screen-placeholder .mock-icon {
    font-size: 48px;
    opacity: 0.4;
}

/* Floating badges around phone */

.hero-float-badges {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.float-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

.float-badge:nth-child(1) { top: 15%; left: -60px; animation-delay: 0s; }
.float-badge:nth-child(2) { top: 40%; right: -70px; animation-delay: 1s; }
.float-badge:nth-child(3) { bottom: 20%; left: -50px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Stats Bar ─── */

.stats-bar {
    padding: 48px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-item h3 .gradient-text { font-size: inherit; }

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ─── Features ─── */

.features {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--coral-glow), var(--violet-glow));
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--violet);
    margin-bottom: 16px;
}

.features .section-header {
    text-align: center;
    margin-bottom: 56px;
}

.features .section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.features .section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--violet));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.feature-card:hover::before { opacity: 1; }

.feature-emoji {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

/* Large feature (AI) */

.feature-card.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg) 100%);
    border: 1px solid var(--card-border);
}

.feature-large-content { padding: 8px 0; }

.feature-large-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-large-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-pill {
    background: linear-gradient(135deg, var(--coral-glow), var(--violet-glow));
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.feature-large-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.9;
}

/* ─── Screenshots ─── */

.screenshots {
    padding: 100px 0;
    background: var(--warm-gray);
    overflow: hidden;
}

.screenshots .section-header {
    text-align: center;
    margin-bottom: 56px;
}

.screenshots .section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.screenshots .section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.screenshots-scroll {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-device {
    flex: 0 0 200px;
    transition: transform 0.3s;
}

.screenshot-device:hover {
    transform: translateY(-8px) scale(1.02);
}

.screenshot-phone {
    background: #000;
    border-radius: 28px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.screenshot-inner {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(160deg, #FFF5F2 0%, #F3EEFF 40%, #F7F5F3 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}

.screenshot-inner img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.screenshot-device .label {
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ─── Languages ─── */

.languages {
    padding: 80px 0;
    text-align: center;
}

.languages h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

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

.lang-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.lang-chip:hover {
    border-color: var(--violet);
    color: var(--text);
    transform: translateY(-1px);
}

.lang-chip .flag { font-size: 1.1rem; }

/* ─── CTA ─── */

.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 100%, var(--coral-glow), transparent),
        radial-gradient(ellipse 40% 40% at 50% 50%, var(--violet-glow), transparent);
    pointer-events: none;
}

.cta .container { position: relative; z-index: 1; }

.cta h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ─── Footer ─── */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--card-border);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex; gap: 24px; list-style: none;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover { color: var(--coral); }

/* ─── Legal Pages ─── */

.legal {
    padding: 120px 0 80px;
    max-width: 720px;
    margin: 0 auto;
}

.legal h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.legal .updated {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal ul, .legal ol {
    margin-bottom: 14px;
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal li { margin-bottom: 6px; }
.legal a { color: var(--coral); font-weight: 500; }
.legal strong { color: var(--text); font-weight: 600; }

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .hero { padding: 120px 0 64px; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.feature-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-large-visual {
        font-size: 3rem;
        padding: 16px 0 0;
    }

    .float-badge { display: none; }

    .screenshots-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 24px 20px;
        margin: 0 -24px;
    }

    .screenshot-device {
        flex: 0 0 170px;
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.82rem; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn-appstore, .btn-secondary { width: 100%; justify-content: center; max-width: 300px; }

    .hero-phone { max-width: 240px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-item h3 { font-size: 1.4rem; }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .legal { padding: 100px 24px 60px; }
}
