/* ============================================
   Built To Run — Landing Page Styles
   Neon green on dark, performance aesthetic
   ============================================ */

:root {
    --neon: #00E676;
    --neon-bright: #39FF14;
    --neon-dim: #00C853;
    --dark-bg: #0A0A0A;
    --card-bg: #141414;
    --card-border: #1E1E1E;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-muted: #666;
    --glow-sm: 0 0 10px rgba(0, 230, 118, 0.3);
    --glow-md: 0 0 30px rgba(0, 230, 118, 0.2), 0 0 60px rgba(0, 230, 118, 0.1);
    --glow-lg: 0 0 40px rgba(0, 230, 118, 0.3), 0 0 80px rgba(0, 230, 118, 0.15), 0 0 120px rgba(0, 230, 118, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1100px;
}

/* ===== RESET & BASE ===== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== TYPOGRAPHY ===== */

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.highlight {
    color: var(--neon);
}

/* ===== HERO ===== */

.hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon-wrapper {
    margin-bottom: 24px;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: var(--glow-lg);
    transition: box-shadow 0.3s ease;
}

.hero-icon:hover {
    box-shadow: 0 0 60px rgba(0, 230, 118, 0.4), 0 0 120px rgba(0, 230, 118, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-bright), var(--neon), var(--neon-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-tagline em {
    color: var(--neon);
    font-style: normal;
    font-weight: 700;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.app-store-badge img {
    height: 54px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-badge:hover img {
    opacity: 0.85;
    transform: scale(1.03);
}

/* ===== ADAPTIVE SECTION ===== */

.adaptive {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark-bg), #0D0D0D);
}

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

.adaptive-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.adaptive-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: var(--glow-sm);
}

.adaptive-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.adaptive-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.adaptive-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== INTEGRATIONS SECTION ===== */

.integrations {
    padding: 80px 0;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.integration-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.integration-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: var(--glow-sm);
}

.integration-logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.integration-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== GOALS SECTION ===== */

.goals {
    padding: 80px 0;
}

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

.goal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.goal-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: var(--glow-sm);
    transform: translateY(-4px);
}

.goal-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.goal-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--neon);
}

.goal-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */

.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark-bg), #0D0D0D);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--neon);
    color: var(--dark-bg);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--glow-md);
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step p em {
    color: var(--neon);
    font-style: normal;
    font-weight: 600;
}

.step-arrow {
    color: var(--neon);
    font-size: 1.8rem;
    font-weight: 700;
    padding-top: 12px;
    opacity: 0.5;
}

/* ===== SCREENSHOTS ===== */

.screenshots {
    padding: 80px 0;
}

.screenshot-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-track {
    background: var(--card-border);
    border-radius: 3px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.phone-frame {
    flex-shrink: 0;
    width: 220px;
    height: 440px;
    background: #1A1A1A;
    border: 2px solid #2A2A2A;
    border-radius: 28px;
    padding: 8px;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow-sm);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #0D0D0D;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D1A0D, #0A0A0A);
    border: 1px dashed rgba(0, 230, 118, 0.2);
}

.placeholder-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ===== CTA ===== */

.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg), #0D0D0D);
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-icon {
    border-radius: 8px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .goals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .adaptive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero-icon {
        width: 110px;
        height: 110px;
        border-radius: 24px;
    }

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

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

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .step {
        max-width: 400px;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

    .hero-tagline br {
        display: none;
    }
}
