/* ============================================
   THE GOLDEN AGE COMPANION — Global Styles
   Aesthetic: Soft Kawaii Pastel, Warm & Friendly
   ============================================ */

:root {
    /* Pastel Palette */
    --pink-light: #ffe4f0;
    --pink-mid: #ffb8d9;
    --pink-deep: #ff8fbf;
    --lavender-light: #f0e6ff;
    --lavender-mid: #d4b8ff;
    --lavender-deep: #b088f9;
    --mint-light: #e6fff5;
    --mint-mid: #a8f0d4;
    --mint-deep: #6dd5b0;
    --cream: #fff9f0;
    --peach: #ffe8d6;
    --peach-deep: #ffcba4;
    --sky-light: #e6f4ff;
    --sky-mid: #a8d8ff;
    --yellow-light: #fff9e6;
    --yellow-mid: #ffe066;
    --coral: #ff9a9e;
    --white: #ffffff;
    --text-dark: #4a3f5c;
    --text-mid: #6b5f7d;
    --text-light: #9b8fb0;
    --shadow-soft: rgba(180, 136, 249, 0.12);
    --shadow-mid: rgba(180, 136, 249, 0.2);

    /* Typography */
    --font-display: 'Fredoka', sans-serif;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 249, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--pink-light);
    box-shadow: 0 2px 20px var(--shadow-soft);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-heart {
    color: var(--pink-deep);
    animation: heartbeat 2s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--lavender-deep);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--pink-deep);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pink-mid);
    border-radius: var(--radius-full);
}

.nav-cta {
    background: linear-gradient(135deg, var(--pink-mid), var(--lavender-mid));
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px var(--shadow-mid);
}

.nav-cta-alt {
    background: linear-gradient(135deg, var(--mint-mid), var(--sky-mid));
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.nav-cta-alt:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px var(--shadow-mid);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    padding: 120px var(--space-xl) var(--space-2xl);
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-light) 50%, var(--lavender-light) 100%);
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--pink-mid);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--lavender-mid);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--mint-mid);
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: var(--yellow-mid);
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: var(--peach-deep);
    bottom: 10%;
    right: 30%;
    animation-delay: 3s;
}

.hero-content {
    max-width: 550px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.title-heart {
    color: var(--pink-deep);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lavender-deep);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-mid);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-description em {
    color: var(--pink-deep);
    font-style: normal;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-mid), var(--coral));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 154, 158, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--mint-mid), var(--sky-mid));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(168, 240, 212, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 240, 212, 0.5);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Hero Illustration — The Frame Device */
.hero-illustration {
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.frame-device {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frame-border {
    width: 280px;
    height: 320px;
    background: linear-gradient(145deg, #c9956b, #a0714e);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(160, 113, 78, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
}

.frame-border::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.frame-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.frame-face {
    position: relative;
    width: 120px;
    height: 100px;
}

.face-eyes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.eye {
    width: 20px;
    height: 24px;
    background: var(--text-dark);
    border-radius: 50%;
    position: relative;
    animation: blink 4s ease-in-out infinite;
}

.eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 4px;
    right: 4px;
}

.face-blush {
    width: 24px;
    height: 16px;
    background: var(--pink-mid);
    border-radius: 50%;
    position: absolute;
    top: 55px;
    opacity: 0.6;
}

.left-blush { left: 10px; }
.right-blush { right: 10px; }

.face-mouth {
    width: 30px;
    height: 15px;
    border-bottom: 4px solid var(--text-dark);
    border-radius: 0 0 50% 50%;
    margin: 10px auto 0;
}

.frame-greeting {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.sos-button {
    margin-top: var(--space-md);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 
        0 6px 20px rgba(204, 0, 0, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sos-button:hover {
    transform: scale(1.05);
}

/* ============================================
   CHALLENGES SECTION
   ============================================ */
.challenges {
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(180deg, var(--lavender-light) 0%, var(--cream) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    color: var(--lavender-deep);
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1100px;
    margin: var(--space-xl) auto 0;
}

.challenge-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-soft);
    border: 2px solid var(--pink-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-mid);
}

.challenge-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.challenge-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.challenge-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   MEET SECTION
   ============================================ */
.meet-section {
    padding: var(--space-2xl) var(--space-xl);
    background: var(--cream);
}

.meet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
}

.meet-card {
    background: linear-gradient(145deg, var(--white), var(--peach));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-soft);
    border: 2px solid var(--peach);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meet-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 12px 40px var(--shadow-mid);
}

.meet-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.meet-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.meet-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.sos-card {
    background: linear-gradient(145deg, var(--white), var(--pink-light));
    border-color: var(--pink-mid);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(180deg, var(--cream) 0%, var(--mint-light) 50%, var(--sky-light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 8px 30px var(--shadow-soft);
    border-left: 5px solid var(--lavender-mid);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-vitals { border-left-color: var(--coral); }
.feature-routine { border-left-color: var(--lavender-mid); }
.feature-emotion { border-left-color: var(--pink-mid); }
.feature-games { border-left-color: var(--mint-deep); }
.feature-photos { border-left-color: var(--yellow-mid); }
.feature-chat { border-left-color: var(--sky-mid); }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light), var(--mint-light));
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-mid);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl);
    text-align: center;
    background: var(--text-dark);
    color: var(--pink-light);
}

.footer p {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.footer-sub {
    margin-top: var(--space-sm);
    font-size: 0.85rem !important;
    opacity: 0.7;
    font-weight: 400 !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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