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

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

:root {
    --primary-color: #fa4256;
    --primary-dark: #e02d41;
    --primary-light: #ff5a6c;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-white: #ffffff;
    --text-gray: #b4b4b8;
    --text-light-gray: #e0e0e3;
    --border-gray: rgba(255, 255, 255, 0.1);
    --shadow-primary: 0 20px 60px rgba(250, 66, 86, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .step-arrow {
    transform: scaleX(-1);
}

/* ===================================
   LANGUAGE TOGGLE
   =================================== */

.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

[dir="rtl"] .language-toggle {
    right: auto;
    left: 30px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

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

/* ===================================
   CONTAINER
   =================================== */

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

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff3366, transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(250, 66, 86, 0.4));
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

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

.apple-btn {
    border-color: var(--border-gray);
}

.apple-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.google-btn {
    border-color: var(--border-gray);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

[dir="rtl"] .btn-text {
    align-items: flex-end;
}

.download-on {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.store-name {
    font-size: 16px;
    font-weight: 600;
}

.hero-visual {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--bg-dark);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wheel-icon {
    width: 200px;
    height: 200px;
    animation: spinWheel 8s linear infinite;
}

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

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-light-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid var(--border-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(250, 66, 86, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.feature-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */

.how-it-works {
    padding: 120px 0;
    background: var(--bg-dark);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.step:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-primary);
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

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

.step-arrow {
    font-size: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 66, 86, 0.2), transparent);
    filter: blur(100px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 48px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 60px 0 40px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-separator {
    color: var(--text-gray);
    opacity: 0.5;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: var(--text-gray);
    font-size: 13px;
    opacity: 0.7;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

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

    .section-title,
    .cta-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
        font-size: 32px;
    }

    [dir="rtl"] .step-arrow {
        transform: rotate(90deg) scaleX(-1);
    }

    .step {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .language-toggle {
        top: 20px;
        right: 20px;
    }

    [dir="rtl"] .language-toggle {
        right: auto;
        left: 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .logo {
        height: 60px;
    }

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

    .hero-description {
        font-size: 16px;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .wheel-icon {
        width: 160px;
        height: 160px;
    }

    .section-title,
    .cta-title {
        font-size: 28px;
    }

    .features,
    .how-it-works,
    .cta {
        padding: 80px 0;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .cta-description {
        font-size: 16px;
    }
}

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

    .download-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

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