/* -----------------------------------------------------------
   1. CORE VARIABLES & RESET
----------------------------------------------------------- */
:root {
    /* Palette */
    --primary: #38B75E;       /* Leaf Green */
    --secondary: #FFC800;     /* Sunny Gold */
    --accent: #4A90E2;        /* Sky Blue */
    --walk-accent: #FFA500;   /* Walk Mode Orange */
    --text: #2D3436;          /* Dark Charcoal */
    --bg: #F8F9FA;            /* Off-White */
    --card-bg: #FFFFFF;
    
    /* UI System */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(45, 52, 54, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(56, 183, 94, 0.25);
    --font-main: 'Nunito', sans-serif;
}

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

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

/* -----------------------------------------------------------
   2. UTILITIES & ANIMATIONS
----------------------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    font-weight: 800;
    padding: 18px 36px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(56, 183, 94, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

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

/* Animation: Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entry {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Start hidden */
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* -----------------------------------------------------------
   3. HERO SECTION
----------------------------------------------------------- */
header {
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 60px;
    display: block;
    text-decoration: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

p.sub-headline {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* CSS-Only iPhone Mockup Placeholder */
.phone-mockup-container {
    position: relative;
    width: 280px;
    height: 550px;
    background: #fff;
    border: 12px solid #2D3436;
    border-radius: 40px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 1;
}

/* The Notch */
.phone-mockup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2D3436;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 2;
}

/* Mockup Screen Content (Map representation) */
.mockup-screen {
    width: 100%;
    height: 100%;
    background: #eef;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

/* Abstract Map Paths */
.map-path {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: rotate(-15deg);
}
.map-pin {
    position: absolute;
    top: 25%;
    left: 60%;
    font-size: 2rem;
}

/* Floating UI Card inside phone */
.mockup-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.mockup-card h4 { color: var(--primary); font-size: 0.9rem; margin-bottom: 4px; }
.mockup-card div { font-size: 0.8rem; color: #636e72; }

/* -----------------------------------------------------------
   4. DUAL MODE SECTION
----------------------------------------------------------- */
.dual-mode {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.section-header p {
    color: #636e72;
}

.mode-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mode-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.mode-card:hover {
    transform: scale(1.02);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Mode Specific Styles */
.mode-walk {
    background: #FFF8E6; /* Light orange tint */
    border-color: rgba(255, 165, 0, 0.2);
}
.mode-walk h3 { color: var(--walk-accent); }

.mode-run {
    background: #E8F7EC; /* Light green tint */
    border-color: rgba(56, 183, 94, 0.2);
}
.mode-run h3 { color: var(--primary); }

/* -----------------------------------------------------------
   5. GAMIFICATION GRID
----------------------------------------------------------- */
.gamification {
    padding: 80px 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px); /* Glassmorphism */
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    background: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-blue { background: var(--accent); color: white; }
.icon-green { background: var(--primary); color: white; }

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #636e72;
    font-size: 0.95rem;
}

/* -----------------------------------------------------------
   6. FOOTER
----------------------------------------------------------- */
footer {
    background: var(--card-bg);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.copyright {
    color: #b2bec3;
    font-size: 0.85rem;
}

/* -----------------------------------------------------------
   7. MEDIA QUERIES (Desktop)
----------------------------------------------------------- */
@media (min-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 60px;
    }

    p.sub-headline {
        margin-left: 0;
    }

    .mode-toggle-container {
        flex-direction: row;
    }
    
    .mode-card {
        flex: 1;
    }

    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 {
        font-size: 3.5rem;
    }
}