/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimization for hover animations */
.feature-card,
.garmin-feature,
.analytics-feature,
.family-benefit,
.platform-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.nav-brand h1 {
    color: #00A650;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00A650;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.app-store-badge img,
.connect-iq-badge img {
    height: 60px;
    width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.app-store-badge:hover img,
.connect-iq-badge:hover img {
    transform: scale(1.05);
}

.hero-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 30px;
}

.device-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.phone-carousel-container {
    position: relative;
    width: 450px;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup-image {
    position: absolute;
    max-width: 400px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: transparent;
}

.phone-mockup-image.active {
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #00A650;
}

.indicator:hover {
    background-color: rgba(0, 166, 80, 0.7);
}

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

.watch-item {
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.watch-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.watch-mockup-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.watch-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    background: #333;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.app-preview {
    text-align: center;
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background: #00A650;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.qr-code-placeholder::after {
    content: "QR";
    font-weight: bold;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.qr-code-img {
    width: 100%;
    max-width: 220px;
    min-width: 120px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
}

@media (max-width: 600px) {
    .qr-code-img {
        max-width: 140px;
        min-width: 80px;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #ffffff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.featured {
    background: linear-gradient(135deg, #00A650 0%, #00B85A 100%);
    color: white;
    border: 2px solid #00A650;
}

.feature-card.featured h3 {
    color: white;
}

.feature-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Garmin Integration Section */
.garmin-integration {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.garmin-integration h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.garmin-integration .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.garmin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.garmin-feature {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.garmin-feature:hover {
    transform: translateY(-5px);
}

.garmin-feature .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.garmin-feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.garmin-feature p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Journey Analytics Section */
.journey-analytics {
    padding: 100px 0;
    background: #ffffff;
}

.journey-analytics h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.journey-analytics .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.analytics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.analytics-feature {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.analytics-feature .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.analytics-feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.analytics-feature p {
    color: #666;
    line-height: 1.6;
}

/* Family Features Section */
.family-features {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.family-features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.family-features .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.family-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.family-benefit {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.family-benefit:hover {
    transform: translateY(-5px);
}

.family-benefit .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.family-benefit h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.family-benefit p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #f8f9fa;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #00A650;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background: #ffffff;
}

.platforms h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.platform-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #00A650 0%, #008a42 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #00A650;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00A650;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Page Styles */
.page-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section ul li {
    color: #666;
    margin-bottom: 10px;
    text-decoration: none;
}

.content-section h3 {
    text-decoration: none;
}

.content-section p {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-images {
        gap: 20px;
    }
    
    .watch-showcase {
        gap: 20px;
    }
    
    .phone-carousel-container {
        width: 350px;
        height: 550px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .phone-mockup-image {
        max-width: 300px;
        max-height: 500px;
        background: transparent;
    }
    
    .watch-mockup-image {
        width: 100px;
        height: 100px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .garmin-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .analytics-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .family-benefits {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .garmin-integration h2,
    .journey-analytics h2,
    .family-features h2 {
        font-size: 2rem;
    }
    
    .garmin-integration .section-subtitle,
    .journey-analytics .section-subtitle,
    .family-features .section-subtitle {
        font-size: 1.1rem;
    }
    
    .garmin-feature,
    .analytics-feature,
    .family-benefit {
        padding: 30px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Apply ordered list styles globally */
ol {
    padding-left: 1.5em;
    margin-left: 1.5em;
    list-style-position: outside;
}
