/* ===== Design Tokens (from CutePetDiary) ===== */
:root {
    --pet-primary: #FF9BAE;
    --pet-secondary: #FFD199;
    --pet-accent: #FFD966;
    --pet-warning: #FFB877;
    --pet-danger: #FF8A8A;
    --pet-heart: #FF7B92;
    --pet-success: #8DD7B0;
    --pet-bubble: #A8D8EA;
    --pet-play: #C4A8E0;
    --pet-paw-print: #FFB5C5;
    --pet-mint: #8DD7B0;

    --pet-text-primary: #4A3636;
    --pet-text-secondary: #A89494;
    --pet-text-placeholder: #CFC0C0;

    --pet-background: #FFF9F5;
    --pet-card-background: #FFFFFF;
    --pet-group-background: #FFFBFA;
    --pet-input-border: #EADCDC;
    --pet-divider: #F0E5E5;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-card: 0 4px 24px rgba(255, 155, 174, 0.1);
    --shadow-soft: 0 2px 12px rgba(74, 54, 54, 0.06);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
    color: var(--pet-text-primary);
    background: var(--pet-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 249, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pet-divider);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.logo-icon {
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--pet-primary);
}

.nav-links a.active {
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pet-text-primary);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--pet-primary), var(--pet-heart));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    margin-top: 20px;
    font-size: 17px;
    color: var(--pet-text-secondary);
    line-height: 1.7;
    max-width: 440px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 28px;
    background: var(--pet-text-primary);
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 54, 54, 0.2);
}

.btn-download svg {
    flex-shrink: 0;
}

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

.phone-mockup {
    width: 240px;
    height: 480px;
    background: var(--pet-card-background);
    border-radius: 36px;
    border: 4px solid var(--pet-divider);
    box-shadow: var(--shadow-card), 0 20px 60px rgba(255, 155, 174, 0.15);
    overflow: hidden;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        var(--pet-paw-print) 0%,
        var(--pet-background) 40%,
        var(--pet-card-background) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen::after {
    content: "🐾";
    font-size: 64px;
    opacity: 0.3;
}

.hero-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.paw {
    position: absolute;
    font-size: 40px;
    opacity: 0.06;
}

.paw-1 { top: 15%; right: 8%; transform: rotate(-20deg); font-size: 60px; }
.paw-2 { bottom: 20%; left: 5%; transform: rotate(15deg); font-size: 48px; }
.paw-3 { top: 40%; left: 50%; transform: rotate(-45deg); font-size: 36px; }

/* ===== Features ===== */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--pet-card-background);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ===== Page Layout (sub pages) ===== */
.page-main {
    padding: 120px 0 60px;
    min-height: calc(100vh - 120px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
}

.page-updated {
    color: var(--pet-text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.page-subtitle {
    color: var(--pet-text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

/* ===== Legal (Privacy & Terms) ===== */

.legal-content {
    background: var(--pet-card-background);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--pet-text-primary);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 15px;
    color: var(--pet-text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content ul {
    margin-bottom: 8px;
    padding-left: 20px;
}

.legal-content li {
    font-size: 15px;
    color: var(--pet-text-secondary);
    line-height: 1.8;
    position: relative;
    padding-left: 8px;
    list-style: disc;
}

.legal-content a {
    color: var(--pet-primary);
    font-weight: 500;
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.8;
}

/* ===== Changelog ===== */
.changelog {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.changelog-item {
    background: var(--pet-card-background);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.changelog-latest {
    border: 1.5px solid var(--pet-primary);
}

.changelog-badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: linear-gradient(135deg, var(--pet-primary), var(--pet-heart));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 10px;
}

.changelog-version {
    font-size: 22px;
    font-weight: 700;
    color: var(--pet-text-primary);
}

.changelog-date {
    font-size: 13px;
    color: var(--pet-text-secondary);
    margin-top: 2px;
    margin-bottom: 16px;
}

.changelog-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--pet-text-primary);
    margin-bottom: 8px;
    margin-top: 16px;
}

.changelog-body h4:first-child {
    margin-top: 0;
}

.changelog-body ul {
    padding-left: 20px;
    margin-bottom: 4px;
}

.changelog-body li {
    font-size: 14px;
    color: var(--pet-text-secondary);
    line-height: 1.8;
    list-style: disc;
    padding-left: 4px;
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
}

.contact-desc {
    text-align: center;
    color: var(--pet-text-secondary);
    font-size: 16px;
    margin-top: -36px;
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--pet-card-background);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    box-shadow: var(--shadow-soft);
    min-width: 220px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-icon {
    font-size: 32px;
}

.contact-label {
    font-size: 16px;
    font-weight: 600;
}

.contact-info {
    font-size: 14px;
    color: var(--pet-text-secondary);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--pet-divider);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--pet-text-secondary);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--pet-text-placeholder);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 249, 245, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--pet-divider);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        flex: none;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

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

    .section-title {
        font-size: 26px;
    }

    .legal-content {
        padding: 24px 20px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
}
