/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #0066cc;
    --secondary-dark: #004a94;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --bg-light: #f5f5f5;
    --bg-white: #FFFFFF;
    --border: #e0e0e0;
    --success: #28A745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline-large,
.btn-large {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    background: var(--primary);
    color: white;
}

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

.btn-outline-large {
    padding: 16px 40px;
    font-size: 18px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8EEF2 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    border-radius: 28px;
    overflow: hidden;
    background-image: url('demo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 64px;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

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

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

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
}

.step-connector::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Available Tasks */
.available-tasks {
    padding: 30px 0;
    background: var(--bg-white);
}

.tasks-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.tasks-table thead {
    background: #f8f9fa;
}

.tasks-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.tasks-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    vertical-align: middle;
}

.tasks-table tbody tr:last-child td {
    border-bottom: none;
}

.tasks-table tbody tr:hover {
    background: #f8f9fb;
}

.tasks-table .task-type {
    font-weight: 600;
    color: var(--text-dark);
}

.task-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.task-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.task-tag-new {
    background: #e8f4fd;
    color: #0066cc;
    border: 1px solid #b3d4f5;
}

.task-tag-highpay {
    background: #eafaf1;
    color: #1a7a3c;
    border: 1px solid #a3e4b7;
}

.tasks-table .task-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
}

.tasks-table .task-location svg {
    flex-shrink: 0;
    color: var(--primary);
}

.tasks-table .task-fee {
    font-weight: 700;
    color: var(--success);
}

.tasks-table .task-date {
    color: var(--text-light);
    font-size: 14px;
}

.btn-apply {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tasks-loading {
    text-align: center;
    padding: 32px 0;
    color: var(--text-light);
    font-size: 15px;
}

.tasks-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 24px;
}

.tasks-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    transition: box-shadow 0.2s ease;
}

.task-card:hover {
    box-shadow: var(--shadow-sm);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.task-card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.task-card-fee {
    font-weight: 800;
    font-size: 18px;
    color: var(--success);
    white-space: nowrap;
    flex-shrink: 0;
}

.task-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.task-card-meta .task-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-card-meta .task-location svg {
    flex-shrink: 0;
    color: var(--primary);
}

.task-card-meta .task-date {
    color: var(--text-light);
    font-size: 13px;
}

.task-card-meta .task-tags {
    margin-top: 0;
}

.task-card-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.task-card-footer .btn-apply {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
}

@media (max-width: 700px) {
    .tasks-table-wrapper {
        display: none;
    }

    .tasks-cards {
        display: flex;
    }
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.testimonial-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stars {
    color: #FFB800;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    text-align: center;
}

.section-title-white {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.section-subtitle-white {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.download-btn.apple {
    background: #000;
    color: #fff;
    height: 58px;
    width: 195px;
    padding: 0px 6px;
    border: 1px solid rgb(166, 166, 166);
    justify-content: flex-start;
}

.download-btn.apple .download-label {
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    top: 4px;
}

.download-btn.apple .download-store {
    color: #fff;
    font-size: 21px;
    font-weight: 500;
    position: relative;
    top: -2px;
}

.download-btn.google-badge {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    line-height: 0;
    display: flex;
    justify-content: center;
}

.google-play-badge-img {
    height: 58px;
    width: auto;
    display: block;
    border-radius: 8px;
}

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

.download-btn.google-badge:hover {
    box-shadow: none;
}

.download-label {
    font-size: 12px;
    color: var(--text-light);
    text-align: left;
}

.download-store {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
}

.cta-footnote {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease;
}

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

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

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

.text-small {
    font-size: 14px;
    color: var(--text-light);
}

.contact-cta {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.contact-cta p {
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 40px;
    }

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

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

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-connector {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .section-title {
        font-size: 32px;
    }

    .section-title-white {
        font-size: 32px;
    }

    .nav {
        flex-direction: column;
        gap: 8px;
    }

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

    .modal-content {
        padding: 24px;
    }

    .contact-item {
        flex-direction: column;
    }
}
