/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
    --primary: #6C63FF;
    --primary-dark: #5a52d5;
    --primary-light: #8B7FFF;
    --secondary: #A599FF;
    --accent: #FF6B9D;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;

    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(165, 153, 255, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(165, 153, 255, 0.05) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    top: -400px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
    animation: spin 3s linear infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: slideUp 0.6s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Phone Mockup */
.hero-image {
    position: relative;
    animation: slideLeft 0.8s ease-out;
}

.phone-mockup {
    position: relative;
    perspective: 1000px;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #1F2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #1F2937;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    padding: 2rem 1.5rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
}

.request-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.5s ease-out;
}

.card-1 {
    animation-delay: 1s;
}

.card-2 {
    animation-delay: 1.2s;
}

.card-3 {
    animation-delay: 1.4s;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-emoji {
    font-size: 1.5rem;
}

.card-category {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.card-price {
    color: var(--success);
    font-weight: 700;
}

.card-distance {
    color: var(--text-secondary);
}

.phone-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    filter: blur(20px);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    animation: floatElement 4s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: -80px;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: -100px;
    animation-delay: 1s;
}

.element-3 {
    bottom: 10%;
    right: -60px;
    animation-delay: 2s;
}

.float-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    white-space: nowrap;
}

.float-icon {
    font-size: 1.5rem;
}

.float-text {
    color: var(--text-primary);
}

/* ===========================
   EARNINGS SECTION
   =========================== */
.earnings-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.03) 0%, rgba(165, 153, 255, 0.03) 100%);
}

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

.earnings-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.earnings-circle {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.earnings-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.earnings-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.25rem;
    animation: countUp 2s ease-out;
}

.earnings-period {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.circle-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    animation: drawCircle 2s ease-out forwards;
}

.earnings-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.earning-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(165, 153, 255, 0.1) 100%);
    border-radius: var(--radius-md);
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.earnings-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-list {
    margin-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 2;
}

.info-list li {
    margin-bottom: 0.5rem;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features {
    padding: 120px 0;
}

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

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

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

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

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* ===========================
   HOW IT WORKS SECTION
   =========================== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-bottom: 4rem;
}

.step:last-child {
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(108, 99, 255, 0.3);
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-line {
    position: absolute;
    left: 32px;
    top: 64px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

/* ===========================
   DOWNLOAD SECTION
   =========================== */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

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

.download-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.download-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 1rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.store-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.store-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.download-phone {
    width: 300px;
    height: 600px;
    background: white;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.phone-screen-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(165, 153, 255, 0.1) 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    text-align: center;
    padding: 2rem;
}

.preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.preview-text {
    color: var(--text-secondary);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

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

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(-10px);
    }
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawCircle {
    from {
        stroke-dashoffset: 565.48;
    }
    to {
        stroke-dashoffset: 141.37;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .hero-content,
    .earnings-demo,
    .download-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        text-align: center;
    }

    .phone-mockup {
        margin: 0 auto;
    }

    .floating-element {
        display: none;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

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

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

    .section-subtitle {
        font-size: 1.1rem;
    }

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

    .earnings-circle {
        width: 280px;
        height: 280px;
    }

    .earnings-amount {
        font-size: 2.5rem;
    }

    .earnings-stats {
        grid-template-columns: 1fr;
    }

    .download-text h2 {
        font-size: 2.5rem;
    }

    .download-buttons {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .phone-frame {
        width: 280px;
        height: 560px;
    }

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