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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    font-size: 16px;
}

/* ===================
   COLOR VARIABLES
   =================== */

:root {
    --primary: #06b6d4;
    --secondary: #f97316;
    --accent: #22d3ee;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --bg-light: #f3f4f6;
    --text-light: #6b7280;
    --dark-gray: #374151;
    --charcoal: #2d3748;
}

/* ===================
   TYPOGRAPHY - MOBILE FIRST
   =================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================
   LAYOUT - MOBILE FIRST
   =================== */

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

section {
    padding: 60px 20px;
    scroll-margin-top: 70px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.section-subheading {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* ===================
   BUTTONS - MOBILE FIRST
   =================== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

/* ===================
   NAVIGATION - MOBILE FIRST
   =================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: white;
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    list-style: none;
}

.nav-menu.active {
    left: 0;
}

.nav-item {
    margin: 1rem 0;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--secondary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ===================
   HERO SECTION - MOBILE FIRST
   =================== */

.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    color: white;
    padding: 80px 20px 60px;
}

.hero-content {
    max-width: 900px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.logo-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.subheadline {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.brand-plus {
    color: var(--secondary);
    font-weight: 700;
}

/* ===================
   PROBLEM SECTION - MOBILE FIRST
   =================== */

.problem-section {
    background: var(--bg-light);
    text-align: center;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.problem-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.problem-item p {
    font-size: 1rem;
    margin: 0;
}

/* ===================
   SOLUTION SECTION - MOBILE FIRST
   =================== */

.solution-section {
    background: var(--bg-white);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* ===================
   SCREENSHOTS SECTION - MOBILE FIRST
   =================== */

.screenshots-section {
    background: var(--bg-white);
    text-align: center;
}

.screenshots-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--text-light);
}

.screenshots-placeholder p {
    color: var(--text-light);
    font-size: 1rem;
    font-style: italic;
}

/* ===================
   DEMO SECTION - MOBILE FIRST
   =================== */

.demo-section {
    background: var(--bg-light);
    text-align: center;
}

.demo-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px dashed var(--text-light);
}

.demo-placeholder p {
    color: var(--text-light);
    font-size: 1rem;
    font-style: italic;
}

/* ===================
   TESTIMONIALS SECTION - MOBILE FIRST
   =================== */

.testimonials-section {
    background: var(--bg-light);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary);
    text-align: left;
}

.testimonial-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

blockquote {
    margin: 0;
}

.quote {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.context {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.attribution {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* ===================
   INJURY SUPPORT SECTION - MOBILE FIRST
   =================== */

.injury-section {
    background: var(--bg-light);
    text-align: center;
}

.injury-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.injury-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.injury-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.injury-feature .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.injury-feature h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.injury-feature p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.injury-note {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid var(--secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: left;
}

/* ===================
   RUNEQ SECTION - MOBILE FIRST
   =================== */

.runeq-section {
    background: var(--bg-white);
    text-align: center;
}

.runeq-content {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.runeq-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.runeq-features {
    text-align: left;
}

.runeq-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.runeq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.runeq-feature p {
    font-size: 1rem;
    margin: 0;
}

.runeq-technical {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.runeq-cta {
    margin-top: 2rem;
}

/* ===================
   GET STARTED SECTION - MOBILE FIRST
   =================== */

.get-started-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    text-align: center;
}

.get-started-content {
    max-width: 600px;
    margin: 0 auto;
}

.get-started-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.get-started-section .btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.get-started-section .btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pricing-note {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.pricing-note strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.get-started-note {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.get-started-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.get-started-note a:hover {
    text-decoration: underline;
}

/* ===================
   BETA SIGNUP SECTION - MOBILE FIRST (Legacy - keeping for reference)
   =================== */

.beta-signup-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    text-align: center;
}

.beta-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.benefit-item p {
    margin: 0;
    font-weight: 600;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 1rem;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    text-align: center;
}

.form-message {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background: #d1fae5;
    border: 2px solid var(--secondary);
}

.success-message h3 {
    color: var(--secondary);
}

.error-message {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.error-message h3 {
    color: #ef4444;
}

.error-message a {
    color: var(--primary);
}

/* ===================
   FOOTER - MOBILE FIRST
   =================== */

.footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-left h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-left p {
    line-height: 1.6;
}

.footer-right {
    text-align: left;
}

.footer-contact,
.footer-social {
    margin-bottom: 1rem;
}

.footer-contact a,
.footer-social a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-link {
    margin: 0 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

/* ===================
   TABLET BREAKPOINT (768px and up)
   =================== */

@media (min-width: 768px) {
    /* Typography */
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 2rem;
    }

    .logo-image {
        max-width: 280px;
    }

    .headline {
        font-size: 1.75rem;
    }

    .subheadline {
        font-size: 1.15rem;
    }

    .section-intro {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }

    .section-subheading {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    /* Buttons */
    .btn {
        width: auto;
        padding: 14px 32px;
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: row;
    }

    /* Navigation */
    .nav-logo {
        font-size: 1.5rem;
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        padding: 0;
        box-shadow: none;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-cta::after {
        display: none;
    }

    .nav-cta:hover {
        transform: translateY(-2px);
    }

    /* Sections */
    section {
        padding: 80px 20px;
    }

    /* Hero */
    .hero-section {
        min-height: 100vh;
        padding: 40px 20px;
    }

    /* Grids */
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .problem-item p {
        font-size: 1.1rem;
    }

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

    .feature-card {
        padding: 2rem;
    }

    .injury-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .injury-feature {
        padding: 2rem;
    }

    .injury-feature h3 {
        font-size: 1.5rem;
    }

    .injury-feature p {
        font-size: 1.1rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .quote {
        font-size: 1.25rem;
    }

    .context {
        font-size: 1rem;
    }

    .attribution {
        font-size: 0.9rem;
    }

    /* RunEQ */
    .runeq-content {
        max-width: 900px;
        margin: 0 auto 3rem;
    }

    .runeq-feature p {
        font-size: 1.1rem;
    }

    .runeq-technical {
        font-size: 0.95rem;
    }

    /* Beta section */
    .beta-benefits {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 3rem;
        padding: 0;
        align-items: center;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .btn-submit {
        font-size: 1.2rem;
    }

    /* Placeholders */
    .screenshots-placeholder {
        min-height: 300px;
    }

    .screenshots-placeholder p,
    .demo-placeholder p {
        font-size: 1.1rem;
    }

    .demo-placeholder {
        min-height: 400px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin: 0 auto 3rem;
    }

    .footer-right {
        text-align: right;
    }
}

/* ===================
   DESKTOP BREAKPOINT (1024px and up)
   =================== */

@media (min-width: 1024px) {
    /* Typography */
    h2 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 3rem;
    }

    .logo-image {
        max-width: 400px;
    }

    .headline {
        font-size: 2.5rem;
    }

    .subheadline {
        font-size: 1.5rem;
    }

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

    /* Form */
    .form-container {
        padding: 3rem;
    }
}
