/* ===== Variables & Reset ===== */
:root {
    --bg-primary: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

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

/* ===== Gradient Orbs ===== */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -150px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    bottom: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* ===== Left Section ===== */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: #8b5cf6;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feature svg {
    width: 16px;
    height: 16px;
    color: #8b5cf6;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-github svg {
    width: 20px;
    height: 20px;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-support:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-support svg {
    width: 20px;
    height: 20px;
}

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

/* ===== Right Section: Screenshots & Support ===== */
.hero-right {
    animation: fadeInUp 0.8s ease 0.2s both;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== Screenshots Section ===== */
.screenshots-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    width: 600px;
}

.screenshots-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.screenshot-container {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.screenshot-container:first-child {
    display: flex;
}

.screenshot {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gradient);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== Support Panel ===== */
.support-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0, 69, 124, 0.2);
    border: 1px solid rgba(0, 69, 124, 0.4);
    border-radius: 12px;
    color: #4aa3df;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: rgba(0, 69, 124, 0.3);
    transform: translateY(-2px);
}

.support-btn svg {
    width: 22px;
    height: 22px;
}

.upi-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upi-qr {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.qr-tooltip {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qr-tooltip img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.upi-qr:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    top: -240px;
}

.upi-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upi-qr span {
    color: #666;
    font-size: 0.75rem;
    text-align: center;
}

.upi-id {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    width: 100%;
}

.upi-id code {
    flex: 1;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-btn {
    padding: 6px 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 40px;
        padding: 40px 24px;
        min-height: auto;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    .features,
    .buttons {
        justify-content: center;
    }

    .support-panel {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 2rem;
    }

    .features {
        gap: 8px;
    }

    .feature {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-download,
    .btn-github {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .support-panel {
        padding: 20px;
    }

    .upi-qr {
        width: 140px;
        height: 140px;
    }
}

/* ===== QR Modal ===== */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.qr-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-modal.active .qr-modal-content {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.qr-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.qr-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.qr-modal-body {
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-modal-body img {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    background: white;
    border-radius: 12px;
    padding: 16px;
}

@media (max-width: 600px) {
    .qr-modal-body img {
        max-width: 300px;
        max-height: 300px;
    }
    
    .qr-modal-header {
        padding: 16px 20px;
    }
    
    .qr-modal-body {
        padding: 20px;
    }
}

/* ===== Support Modal ===== */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.support-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.support-modal.active .support-modal-content {
    transform: scale(1);
}

.support-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.support-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.support-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.support-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.support-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}