/* MainGain Website Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav-container {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0891B2;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0891B2;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #374151;
    font-weight: 500;
}

.hero-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #0891B2;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.app-store-button {
    display: block;
    transition: transform 0.2s;
}

.app-store-button:hover {
    transform: translateY(-2px);
}

.app-store-button img {
    height: 60px;
    width: auto;
}

.trial-text {
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border-radius: 42px;
    padding: 40px 24px 24px;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #000;
    border-radius: 15px;
}

.app-demo {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.app-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.calories-display {
    text-align: center;
    margin: 2rem 0;
}

.calories-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0891B2;
}

.calories-label {
    color: #6B7280;
    font-weight: 500;
}

.macro-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-bar {
    background: #E5E7EB;
    border-radius: 8px;
    height: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.macro-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.macro-bar.protein .macro-progress {
    background: #0891B2;
}

.macro-bar.carbs .macro-progress {
    background: #06B6D4;
}

.macro-bar.fats .macro-progress {
    background: #0E7490;
}

.macro-bar span {
    position: relative;
    z-index: 1;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0891B2;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: #0891B2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    grid-column: span 1;
}

.step-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #0891B2;
    font-weight: 600;
    grid-column: span 1;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: #0891B2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.step p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: #FFFFFF;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 2rem;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.faq-item p {
    color: #6B7280;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #06B6D4;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.legal-date {
    color: #6B7280;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-intro {
    font-size: 1.125rem;
    font-weight: 500;
    color: #0891B2;
}

.legal-note {
    font-style: italic;
    color: #6B7280;
}

.legal-section a {
    color: #0891B2;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Support Page */
.support-content {
    padding: 4rem 0;
}

.support-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #111827;
    text-align: center;
}

.support-section {
    margin-bottom: 4rem;
}

.support-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #111827;
}

.getting-started {
    background: #F9FAFB;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.step-num {
    width: 2rem;
    height: 2rem;
    background: #0891B2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.support-faq {
    display: grid;
    gap: 1.5rem;
}

.support-faq-item {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.support-faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.support-faq-item p {
    color: #6B7280;
    line-height: 1.7;
}

.contact-section {
    background: #F9FAFB;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.contact-info p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.contact-info a {
    color: #0891B2;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.report-guidelines {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.report-guidelines p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.report-guidelines ul {
    padding-left: 1.5rem;
}

.report-guidelines li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.support-tips {
    margin-top: 4rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    text-align: center;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tip-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .calories-number {
        font-size: 2rem;
    }

    .app-demo {
        padding-top: 0.5rem;
        gap: 1rem;
    }

    .macro-bar {
        height: 30px;
    }

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

    .feature-card {
        padding: 2rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}