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

:root {
    --primary: #fcc547;
    --primary-dark: #d45a2a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --background: #fef9f0;
    --surface: #fef7e6;
    --border: #e2e8f0;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #fcc547 0%, #fcc547 65%, #f26633 100%);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    padding: 32px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 72px;
    font-weight: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 70px;
    width: auto;
    border-radius: 25%;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(circle at 20% 50%, rgba(252, 197, 71, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(242, 102, 51, 0.05) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 1000;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 32px;
    max-width: 900px;
    animation: fadeInUp 0.8s ease;
}

.primary-period {
    color: var(--primary);
}

.mission-statement {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.1s backwards;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.typing-text {
    display: inline-block;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cta-container {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* App Preview Section */
.app-preview {
    padding: 120px 24px;
    background: white;
}

.preview-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.phone-mockup {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    max-width: 450px;
}

.phone-mockup-large {
    max-width: 600px;
}

.phone-mockup:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
}

.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 1000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(252, 197, 71, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(252, 197, 71, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-large {
    padding: 22px 56px;
    font-size: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    max-height: 95vh;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    margin: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 197, 71, 0.3) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(252, 197, 71, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 197, 71, 0.5);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    margin: -8px -8px 0 0;
}

.close-button:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.modal-body {
    text-align: center;
}

.emoji {
    font-size: 64px;
    margin-bottom: 24px;
}

.modal-body h2 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.email-input {
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(252, 197, 71, 0.1);
}

.submit-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 1000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 197, 71, 0.4);
}

.social-proof {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.waitlist-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.count-number {
    font-size: 48px;
    font-weight: 1000;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.count-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.success-message {
    display: none;
}

.success-message.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.success-emoji {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-message h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--success);
}

.success-message p {
    color: var(--text-secondary);
    font-size: 18px;
}

.survey-cta {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.survey-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.survey-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 197, 71, 0.3);
}

.survey-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 197, 71, 0.4);
}

.survey-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Features */
.features {
    padding: 120px 0;
    background: var(--background);
}

.features .section-title {
    text-align: center;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 1000;
    margin-bottom: 80px;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-statement {
    padding: 120px 0;
    background: var(--surface);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.mission-statement .section-title {
    text-align: center;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 1000;
    margin-bottom: 80px;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-text {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    justify-items: center;
}

.feature-card {
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(252, 197, 71, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(252, 197, 71, 0.4);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

/* Feature content styling */
.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    background: var(--surface);
}

.testimonials .section-title {
    text-align: center;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 1000;
    margin-bottom: 80px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial::before {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: rgba(252, 197, 71, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(252, 197, 71, 0.2);
}

.testimonial p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Strava Link Styles - Following Strava Brand Guidelines */
.strava-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.strava-link {
    display: inline-block;
    color: #FC5200;
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.strava-link:link,
.strava-link:visited {
    color: #FC5200;
}

.strava-link:hover {
    color: #E04A00;
    text-decoration: underline;
}

.strava-link:active {
    color: #C94000;
}

/* Final CTA */
.final-cta {
    background: var(--surface);
    padding: 120px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 1000;
    margin-bottom: 32px;
}

/* Community Section */
.community-section {
    padding: 120px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background);
    width: 100%;
}

.community-section .section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 1000;
    margin-bottom: 20px;
    text-align: center;
}

.community-section .strava-description {
    text-align: center;
    margin: 0 auto 40px;
}

.cta-strava {
    margin-bottom: 60px;
}

.cta-strava .section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 1000;
    margin-bottom: 20px;
}

.cta-divider {
    margin: 40px 0;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border);
}

.cta-divider::before {
    left: 0;
}

.cta-divider::after {
    right: 0;
}

.cta-divider span {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-app {
    margin-top: 20px;
}

.cta-app h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer p {
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-attribution {
    font-size: 13px;
    opacity: 0.7;
}

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

.footer-attribution a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .phone-mockup {
        max-width: 350px;
    }
    
    .phone-mockup-large {
        max-width: 480px;
    }
}

@media (max-width: 968px) {
    .preview-images {
        gap: 40px;
    }
    
    .phone-mockup {
        max-width: 280px;
    }
    
    .phone-mockup-large {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 24px 80px;
    }
    
    .app-preview {
        padding: 80px 16px;
    }
    
    .preview-images {
        gap: 20px;
    }
    
    .phone-mockup {
        max-width: 90vw;
    }
    
    .phone-mockup-large {
        max-width: 90vw;
    }
    
    .cta-strava {
        margin-bottom: 40px;
    }
    
    .strava-description {
        font-size: 18px;
    }
    
    .strava-link {
        font-size: 18px;
    }
    
    .cta-divider {
        margin: 30px 0;
    }
    
    .cta-divider span {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .final-cta {
        padding: 80px 20px;
    }
    
    .modal {
        align-items: flex-start;
        padding: 10px;
    }
    
    .modal-content {
        padding: 32px 24px;
        max-height: 98vh;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .features,
    .testimonials,
    .final-cta,
    .community-section,
    .mission-statement {
        padding: 80px 20px;
    }
    
    /* Mobile feature cards - SVG icons as bullet points with stacked content */
    .feature-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }
    
    .feature-card {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding: 24px 20px;
        background: white;
        border-radius: 16px;
        border: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-color: rgba(252, 197, 71, 0.3);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin: 0 16px 0 0;
        background: var(--gradient);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        flex-shrink: 0;
        align-self: center;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .feature-content h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .feature-content p {
        font-size: 15px;
        line-height: 1.4;
        margin: 0;
    }
}

