/* WattShare Landing Page - Professional Styling */
/* Theme Colors: Orange #F5A623, Blue #4A90D9, Dark #1A1A2E */

:root {
    --brand-orange: #F5A623;
    --brand-blue: #4A90D9;
    --brand-dark: #1A1A2E;
    --brand-darker: #0D0D1A;
    --brand-light: #F5F5F7;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --gradient-orange: linear-gradient(135deg, #F5A623 0%, #E09515 100%);
    --gradient-blue: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

body.rtl {
    direction: rtl;
}

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

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 20px;
}

body.rtl .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--brand-orange);
    color: var(--brand-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 24px;
    text-align: center;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(26, 26, 46, 0.85) 50%,
        rgba(26, 26, 46, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.app-icon-container {
    margin-bottom: 32px;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow:
        0 20px 60px rgba(245, 166, 35, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

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

.app-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-orange);
    margin-bottom: 12px;
}

.app-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: var(--brand-dark);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.store-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.store-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.store-icon {
    width: 32px;
    height: 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

body.rtl .store-text {
    align-items: flex-end;
    text-align: right;
}

.store-label {
    font-size: 11px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: bounce 2s infinite;
}

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

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

/* Section Styling */
section {
    padding: 100px 0;
}

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

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

/* Features Section */
.features {
    background: var(--brand-darker);
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px rgba(245, 166, 35, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--brand-dark);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

body.rtl .step {
    flex-direction: row-reverse;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Screenshots Section */
.screenshots {
    background: var(--brand-darker);
    overflow: hidden;
}

.screenshots-carousel {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.phone-mockup {
    text-align: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2A2A3E 0%, #1A1A2E 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--brand-dark);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-label {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Download CTA */
.download-cta {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #252538 100%);
    text-align: center;
}

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

.cta-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.3);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--brand-darker);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--card-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

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

.footer-links a:hover {
    color: var(--brand-orange);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--brand-orange);
    color: var(--brand-dark);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
    .app-title {
        font-size: 40px;
    }

    .app-subtitle {
        font-size: 20px;
    }

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

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

    .store-btn {
        width: 100%;
        max-width: 280px;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Hide placeholder when image exists */
.phone-screen {
    position: relative;
}

.screenshot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}
