/* ============================================
   RunCorp Landing Page Styles
   Mobile-First Responsive Design
   ============================================ */

/* ------------------------------------ */
/* 1. CSS Variables */
/* ------------------------------------ */
:root {
    /* Colors */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-section-alt: #0d0d0d;
    --bg-section-light: #1a1a1a;
    --text-main: #eaeaea;
    --text-muted: #a0a0a0;
    --accent-gold: #ffc300;
    --accent-blue: #0077b6;
    --border-color: #333;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* ------------------------------------ */
/* 2. Global Reset & Base Styles */
/* ------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* ------------------------------------ */
/* 3. Typography */
/* ------------------------------------ */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
}

.sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
    padding: 0 10px;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.section-note,
.coming-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
    font-size: 0.95rem;
    font-style: italic;
}

/* ------------------------------------ */
/* 4. Section Background Alternation */
/* ------------------------------------ */
.dashboard-section,
.progression-section,
.achievements-section,
.profile-section,
.strava-section {
    background: var(--bg-section-alt);
}

.how-it-works,
.kpi-section,
.analytics-section,
.consistency-section,
.coming-soon {
    background: var(--bg-section-light);
}

/* ------------------------------------ */
/* 5. Top Navigation */
/* ------------------------------------ */
.top-nav {
    width: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.top-nav-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 14px;
    min-height: 48px;
}

.top-links {
    display: flex;
    gap: 12px;
}

.top-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-links a:hover {
    color: var(--accent-gold);
}

/* ------------------------------------ */
/* 6. Hero Section */
/* ------------------------------------ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 16px;
    padding: 0 10px;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
}

.hero-image {
    width: 100%;
    max-width: 300px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------ */
/* 7. Download Buttons */
/* ------------------------------------ */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.store-btn {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn img {
    height: 50px;
    width: auto;
}

.store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.download-buttons-large {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 40px 0;
}

.hero .download-buttons-large {
    margin-top: 30px;
    margin-bottom: 0;
}

.store-btn-large {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn-large img {
    height: 60px;
    width: auto;
}

.store-btn-large:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ------------------------------------ */
/* 8. Dashboard Section */
/* ------------------------------------ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.dashboard-visual img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: start;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #6DB3D9;
}

.feature-icon i {
    color: #6DB3D9;
}

.feature-list h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dashboard-tagline {
    margin-top: 30px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 9. How It Works (Steps) */
/* ------------------------------------ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    padding: 30px 24px;
    border-radius: 12px;
    border-top: 4px solid var(--accent-gold);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 10. Progression Section */
/* ------------------------------------ */
.progression-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.progression-card {
    background: var(--bg-card);
    padding: 26px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
}

.progression-card.highlight {
    border-left-color: var(--accent-gold);
    background: #252525;
}

.progression-card h3 {
    margin-bottom: 12px;
}

.progression-card h3 i {
    color: #6DB3D9;
    margin-right: 8px;
}

.progression-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.progression-card p:last-child {
    margin-bottom: 0;
}

.card-detail {
    font-size: 0.9rem;
}

.card-note {
    margin-top: 16px;
    font-style: italic;
    font-size: 0.9rem;
}

.rank-progression {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 12px;
}

.rank-badge {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rank-badge.gold {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.rank-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ------------------------------------ */
/* 11. KPI Section */
/* ------------------------------------ */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.kpi-visual img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.kpi-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kpi-feature h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.kpi-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.kpi-tagline {
    margin-top: 30px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 12. Achievements Section */
/* ------------------------------------ */
.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.achievements-visual img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.achievement-categories {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achievement-categories li {
    padding: 16px;
    background: rgba(255, 195, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.achievement-categories h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.achievement-categories p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ------------------------------------ */
/* 13. Analytics Section */
/* ------------------------------------ */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.analytics-visual img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.analytics-content h3 {
    color: var(--accent-blue);
    margin-top: 24px;
    margin-bottom: 12px;
}

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

.kpi-list {
    list-style: none;
    margin-bottom: 20px;
}

.kpi-list li {
    padding: 10px 0;
    color: var(--text-muted);
}

.kpi-list li i {
    color: #6DB3D9;
    margin-right: 8px;
}

.analytics-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.analytics-note {
    margin-top: 24px;
    font-weight: 600;
    font-style: italic;
}

/* ------------------------------------ */
/* 14. Consistency Section */
/* ------------------------------------ */
.consistency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.consistency-visual img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.consistency-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.consistency-feature h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.consistency-feature h3 i {
    color: #6DB3D9;
    margin-right: 8px;
}

.consistency-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.consistency-tagline {
    margin-top: 30px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 15. Profile Section */
/* ------------------------------------ */
.profile-showcase {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.profile-showcase img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.profile-stats {
    text-align: left;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat h3 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ------------------------------------ */
/* 16. Training Projects Section */
/* ------------------------------------ */
.projects-section {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.projects-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.projects-content {
    flex: 1;
}

.projects-visual {
    text-align: center;
}

.projects-visual img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.project-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border-top: 3px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-card.beginner {
    border-top-color: #ffc300;
}

.project-card.intermediate {
    border-top-color: #0077b6;
}

.project-card.advanced {
    border-top-color: #e63946;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-header h3 {
    margin: 0;
    flex: 1 1 100%;
    font-size: 1.2rem;
}

.project-header h3 i {
    margin-right: 8px;
    color: var(--text-muted);
}

.project-card.beginner .project-header h3 i {
    color: #ffc300;
}

.project-card.intermediate .project-header h3 i {
    color: #0077b6;
}

.project-card.advanced .project-header h3 i {
    color: #e63946;
}

.project-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-badge.featured {
    background: rgba(255, 195, 0, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.project-badge.beginner {
    background: rgba(255, 195, 0, 0.15);
    color: #ffc300;
}

.project-badge.intermediate {
    background: rgba(0, 119, 182, 0.15);
    color: #0077b6;
}

.project-badge.advanced {
    background: rgba(230, 57, 70, 0.15);
    color: #e63946;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-stats .stat {
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-stats .stat i {
    font-size: 0.9rem;
}

.project-stats .stat.xp {
    background: var(--accent-gold);
    color: #121212;
    font-weight: 700;
}

.project-stats .stat.xp i {
    color: #121212;
}

/* ------------------------------------ */
/* 17. Coming Soon Section */
/* ------------------------------------ */
.coming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.coming-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border-top: 3px solid var(--accent-blue);
}

.coming-card h3 {
    margin-bottom: 10px;
}

.coming-card h3 i {
    color: #6DB3D9;
    margin-right: 8px;
}

.coming-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 17. Strava Section */
/* ------------------------------------ */
.strava-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.strava-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
}

.strava-card h3 {
    margin-bottom: 10px;
}

.strava-card h3 i {
    color: #6DB3D9;
    margin-right: 8px;
}

.strava-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ------------------------------------ */
/* 18. Final CTA */
/* ------------------------------------ */
.final-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    text-align: center;
    padding: 80px 0;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    margin-top: 30px;
}

.waitlist-form {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
}

.waitlist-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.waitlist-form input[type="email"],
.waitlist-form select {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #2a2a2a;
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
}

.waitlist-form input::placeholder {
    color: #888888;
}

.waitlist-form select {
    cursor: pointer;
}

.waitlist-form button {
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.waitlist-form button:hover {
    background: #e6b800;
}

/* ------------------------------------ */
/* 19. Footer */
/* ------------------------------------ */
footer {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 40px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links span {
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (>= 600px)
   ============================================ */
@media (min-width: 600px) {
    /* Global adjustments */
    section {
        padding: 80px 0;
    }

    h2 {
        font-size: 2.4rem;
    }

    .sub {
        font-size: 1.15rem;
    }

    /* Hero */
    .hero {
        padding-top: 0;
        min-height: 85vh;
        text-align: left;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
        text-align: left;
    }

    .hero-image {
        max-width: none;
    }

    .logo {
        font-size: 3.6rem;
    }

    .tagline {
        font-size: 1.8rem;
    }

    .hero-description,
    .hero-subtext {
        font-size: 1.05rem;
        padding: 0;
    }

    /* Download buttons */
    .download-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .download-buttons-large {
        flex-direction: row;
        gap: 24px;
    }

    .hero .download-buttons-large {
        justify-content: flex-start;
        align-items: flex-start;
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .dashboard-visual img {
        max-width: 400px;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .step-card {
        text-align: left;
    }

    /* Progression */
    .progression-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* KPI, Achievements, Analytics, Consistency */
    .kpi-grid,
    .achievements-grid,
    .analytics-grid,
    .consistency-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .kpi-visual img,
    .achievements-visual img,
    .analytics-visual img,
    .consistency-visual img {
        max-width: 400px;
    }

    /* Profile */
    .profile-showcase {
        max-width: 900px;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Training Projects */
    .projects-layout {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
        align-items: center;
    }

    .projects-visual img {
        max-width: 350px;
    }

    /* Coming Soon & Strava */
    .coming-grid,
    .strava-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP (>= 1100px)
   ============================================ */
@media (min-width: 1100px) {
    .container {
        max-width: 1100px;
    }

    section {
        padding: 100px 0;
    }

    h2 {
        font-size: 2.8rem;
    }

    .logo {
        font-size: 4rem;
    }

    .tagline {
        font-size: 2rem;
    }

    /* Larger screenshots on desktop */
    .dashboard-visual img,
    .kpi-visual img,
    .achievements-visual img,
    .analytics-visual img,
    .consistency-visual img,
    .projects-visual img {
        max-width: 450px;
    }

    /* Coming Soon: 3 columns (was 4, now 3 items) */
    .coming-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Strava: 3 columns */
    .strava-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
