/* Melbet APK - Main Styles */

:root {
    /* Black tones */
    --primary-black: #0a0a0a;
    --dark-black: #000000;
    --light-black: #1c1c1c;
    --medium-black: #2a2a2a;
    
    /* Yellow/Gold accents */
    --primary-yellow: #FFD700;
    --dark-yellow: #FFC107;
    --light-yellow: #FFED4E;
    --orange-yellow: #FFB800;
    
    /* Additional colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #999999;
    --dark-gray: #666666;
    
    /* Gradients */
    --gradient-black: linear-gradient(135deg, var(--primary-black) 0%, var(--light-black) 100%);
    --gradient-yellow: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 193, 7, 0.1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-yellow: 0 4px 16px rgba(255, 215, 0, 0.4);
    
    /* Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--white);
    background-color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.section-description {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Header */
.header {
    background: var(--gradient-black);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--primary-yellow);
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-yellow);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--light-black);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 2000;
    border-left: 3px solid var(--primary-yellow);
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--primary-yellow);
    font-size: 2rem;
    cursor: pointer;
    float: right;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-yellow);
    color: var(--dark-black);
    box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--dark-black);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-copy {
    background: var(--gradient-yellow);
    color: var(--dark-black);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--light-black) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-yellow);
    text-align: center;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    color: var(--light-gray);
    line-height: 1.8;
}

.intro-text strong {
    color: var(--primary-yellow);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-yellow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.feature-item span {
    display: block;
    font-weight: 600;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.promo-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--light-black);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-yellow);
    margin-top: 2rem;
    box-shadow: var(--shadow-yellow);
}

.promo-code p {
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
}

.promo-code strong {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Mobile App Preview Section */
.mobile-preview-section {
    background: var(--gradient-black);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.mobile-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.mobile-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.mobile-preview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.mobile-preview-content .highlight {
    color: var(--primary-yellow);
    font-weight: 900;
}

.mobile-preview-content p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mobile-preview-features {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(28, 28, 28, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--primary-yellow);
    transition: all 0.3s;
}

.preview-feature:hover {
    background: rgba(28, 28, 28, 0.8);
    transform: translateX(5px);
}

.preview-feature i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    width: 30px;
    text-align: center;
}

.preview-feature span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 2px #333,
        0 0 0 8px #1a1a1a,
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Download Section */
.download-section {
    background: var(--light-black);
}

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

.download-card {
    background: var(--primary-black);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

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

.download-card i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.download-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    background: var(--primary-black);
}

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

.feature-card {
    background: var(--light-black);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-yellow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Steps Section */
.steps-section {
    background: var(--light-black);
}

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

.step-item {
    background: var(--primary-black);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s;
}

.step-item:hover {
    border-color: var(--primary-yellow);
    transform: scale(1.02);
}

.step-number {
    background: var(--gradient-yellow);
    color: var(--dark-black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-yellow);
}

.step-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Info Table */
.table-responsive {
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-black);
    border-radius: 12px;
    overflow: hidden;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 1.25rem 1.5rem;
    color: var(--white);
}

.info-table td:first-child {
    font-weight: 700;
    color: var(--primary-yellow);
    width: 35%;
}

.info-table td:last-child {
    color: var(--light-gray);
}

/* FAQ Section */
.faq-section {
    background: var(--primary-black);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-black);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: var(--primary-yellow);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
}

.faq-question i {
    color: var(--primary-yellow);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--light-black);
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--primary-yellow);
}

.footer-content {
    display: flex;
    justify-content: center;
}

.footer-single {
    text-align: center;
    max-width: 800px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--light-yellow);
    text-decoration: underline;
}

/* ===== MOBILE OPTIMIZATION ===== */

/* Tablet (768px - 968px) */
@media (max-width: 968px) {
    .nav, .header-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-preview-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-frame {
        width: 280px;
        height: 570px;
    }
    
    .mobile-preview-content h2 {
        font-size: 2rem;
    }
}

/* Mobile (480px - 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    /* Header */
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .mobile-menu-btn {
        font-size: 1.75rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        width: 100%;
    }
    
    .mobile-menu-content {
        padding: 2rem 1.5rem;
    }
    
    .mobile-nav-link {
        padding: 1rem;
        font-size: 1.125rem;
        min-height: 48px;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .feature-item i {
        font-size: 1.75rem;
    }
    
    /* Mobile Preview on Mobile */
    .mobile-preview-section {
        padding: 2.5rem 0;
    }
    
    .mobile-preview-container {
        padding: 0 1rem;
    }
    
    .mobile-preview-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-preview-content p {
        font-size: 1rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 490px;
        border-radius: 35px;
        padding: 12px;
    }
    
    .phone-screen {
        border-radius: 25px;
    }
    
    .mobile-phone-mockup {
        order: -1;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        min-height: 52px;
    }
    
    /* Promo Code */
    .promo-code {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .promo-code p {
        font-size: 1rem;
    }
    
    .promo-code strong {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-small {
        min-height: 40px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-block {
        width: 100%;
        min-height: 48px;
    }
    
    /* Cards */
    .download-card,
    .feature-card,
    .step-item {
        padding: 1.5rem;
    }
    
    .download-card h3,
    .feature-card h3 {
        font-size: 1.125rem;
    }
    
    /* Grids */
    .download-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Info Table */
    .info-table {
        font-size: 0.9rem;
    }
    
    .info-table td {
        padding: 1rem 0.75rem;
        word-break: break-word;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.05rem;
        line-height: 1.4;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .feature-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        font-size: 1.05rem;
        padding: 0.875rem 1.25rem;
    }
    
    .info-table {
        font-size: 0.85rem;
    }
    
    .info-table td {
        padding: 0.875rem 0.5rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .download-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.96);
        opacity: 0.9;
    }
    
    .download-card:active,
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .btn,
    .faq-question,
    .nav-link,
    .mobile-nav-link {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.1);
    }
}

/* Landscape Phone Optimization */
@media (max-width: 968px) and (orientation: landscape) {
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}