/* ========================================
   PACEO LANDING PAGE - STYLES
   Mobile-first responsive design
   ======================================== */

/* ----------------
   CSS VARIABLES
   ---------------- */
:root {
    /* Primary colors */
    --primary-green: #10B981;
    --primary-teal: #14B8A6;
    --primary-blue: #0EA5E9;

    /* Backgrounds */
    --bg-dark: #0F172A;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;

    /* Texts */
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-light: #94A3B8;
    --text-white: #F8FAFC;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    --gradient-cta: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ----------------
   UTILITIES
   ---------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    line-height: 1.3;
}

.section-title-center {
    text-align: center;
}

.section-title-light {
    color: var(--text-white);
}

/* ----------------
   BUTTONS
   ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* ----------------
   HERO SECTION
   ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    padding: var(--spacing-lg);
    overflow: hidden;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-2xl);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--primary-green);
    color: var(--text-white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Phone Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    background: #1E293B;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #0F172A;
    border-radius: 0 0 16px 16px;
    margin: 0 auto var(--spacing-sm);
}

.phone-screen {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    border-radius: 24px;
    padding: var(--spacing-md);
    min-height: 400px;
}

.app-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.week-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-full);
}

.day.active {
    background: var(--primary-green);
    color: var(--text-white);
}

.sessions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.session {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.session-easy {
    border-left: 3px solid var(--primary-green);
}

.session-intervals {
    border-left: 3px solid #F59E0B;
}

.session-recovery {
    border-left: 3px solid var(--primary-blue);
}

.session-long {
    border-left: 3px solid var(--primary-green);
}

.session-icon {
    font-size: 1.25rem;
}

.session-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.session-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
}

.session-duration {
    font-size: 0.75rem;
    color: var(--text-light);
}

.session-day {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.session-badge {
    position: absolute;
    top: -6px;
    right: 8px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(16, 185, 129, 0.2);
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.app-footer {
    display: flex;
    justify-content: space-around;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.625rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Hero background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    bottom: 10%;
    left: -150px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-teal);
    bottom: 30%;
    right: 10%;
}

.hero > *:not(.hero-bg-shapes) {
    position: relative;
    z-index: 1;
}

/* ----------------
   PROBLEM SECTION
   ---------------- */
.problem-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.problem-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.problem-list,
.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.problem-item,
.solution-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.5;
}

.icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.icon-x {
    background: #FEE2E2;
    color: #DC2626;
}

.icon-check {
    background: #D1FAE5;
    color: var(--primary-green);
}

/* ----------------
   FEATURES SECTION
   ---------------- */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-radius: var(--radius-lg);
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* ----------------
   SPORTS SECTION
   ---------------- */
.sports-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.sport-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.sport-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.sport-icon {
    color: var(--primary-green);
}

.sport-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sports-footer {
    text-align: center;
    color: var(--text-body);
}

.coming-soon {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ----------------
   BETA SECTION
   ---------------- */
.beta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-hero);
}

.beta-content {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.beta-subtitle {
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.beta-form {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-white);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--text-white);
    cursor: pointer;
}

.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

/* Button loading state */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form messages */
.form-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.form-message[hidden] {
    display: none;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.form-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #DC2626;
    color: #FCA5A5;
}

/* ----------------
   FOOTER
   ---------------- */
.footer {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.footer-contact {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-contact a {
    color: var(--primary-green);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-teal);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
}

.footer-nav a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--text-white);
}

.footer-separator {
    color: var(--text-light);
    opacity: 0.3;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-disclaimer {
    font-size: 0.6875rem;
    color: var(--text-light);
    opacity: 0.7;
    max-width: 400px;
    line-height: 1.5;
}

/* ----------------
   ANIMATIONS
   ---------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------
   RESPONSIVE - TABLET
   ---------------- */
@media (min-width: 640px) {
    .section-title {
        font-size: 2rem;
    }

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

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

    .sports-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----------------
   RESPONSIVE - DESKTOP
   ---------------- */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }

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

    /* Hero */
    .hero {
        padding: var(--spacing-xl) var(--spacing-2xl);
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-3xl);
        min-height: calc(100vh - 200px);
    }

    .hero-text {
        text-align: left;
        flex: 1;
        max-width: 550px;
    }

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

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-mockup {
        flex-shrink: 0;
    }

    .phone-frame {
        width: 320px;
    }

    /* Problem section */
    .problem-section {
        padding: var(--spacing-3xl) 0 var(--spacing-3xl);
    }

    .problem-grid {
        flex-direction: row;
        gap: var(--spacing-3xl);
    }

    .problem-column,
    .solution-column {
        flex: 1;
    }

    /* Features */
    .features-section {
        padding: var(--spacing-3xl) 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Sports */
    .sport-card {
        padding: var(--spacing-2xl);
    }

    /* Beta */
    .beta-section {
        padding: var(--spacing-3xl) 0;
    }

    .beta-form {
        padding: var(--spacing-2xl);
    }
}

/* ----------------
   ACCESSIBILITY
   ---------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: var(--text-white);
    padding: 8px;
    z-index: 100;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}
