/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #fbbf24;
    --accent-red: #ef4444;
    --accent-orange: #ff6b35;
    --accent-yellow: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --bg-white: #1a1a1a;
    --bg-light: #2a2a2a;
    --bg-dark: #0a0a0a;
    --bg-card: #252525;
    --border-color: #404040;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a !important;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #ff6b35, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #ff6b35, #ef4444);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.7);
    background: linear-gradient(135deg, #ff6b35, #ef4444);
}

.btn-secondary {
    background: transparent;
    color: #fbbf24;
    border: 2px solid #fbbf24;
}

.btn-secondary:hover {
    background: #fbbf24;
    color: #0a0a0a;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    width: 100%;
    max-width: 100vw;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.5);
    transform: scale(1.05);
    max-width: 100vw;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(255, 107, 53, 0.6), rgba(239, 68, 68, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #0a0a0a !important;
}

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

.feature-card {
    background: #252525 !important;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #404040;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-placeholder {
    font-size: 4rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: #0a0a0a !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #252525 !important;
    border: 2px solid #404040;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    border-color: #ff6b35;
    background: linear-gradient(135deg, #252525, rgba(255, 107, 53, 0.2));
}

.pricing-card.featured {
    border-color: #ff6b35;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
    transform: scale(1.02);
    background: linear-gradient(135deg, #252525, rgba(255, 107, 53, 0.15));
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #ff6b35);
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-badge.basic {
    background: var(--border-color);
    color: var(--text-primary);
}

.pricing-period {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    display: block;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-total {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.check-icon {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Test Section */
.test {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ff6b35, #ef4444);
    color: white;
    text-align: center;
}

.test-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.test-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.test-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Countries Section */
.countries {
    padding: 6rem 0;
    background: #0a0a0a !important;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.countries-map-container {
    margin-top: 3rem;
    width: 100%;
}

.country-item {
    background: #252525 !important;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #404040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.country-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
    background: linear-gradient(135deg, #252525, rgba(255, 107, 53, 0.15));
}

.country-flag {
    font-size: 2rem;
}

.country-name {
    font-size: 0.9rem;
}

.countries-map {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    display: block;
}

/* Apps Section */
.apps {
    padding: 6rem 0;
    background: #0a0a0a !important;
}

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

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-card {
    background: #252525 !important;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #404040;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

.app-image-placeholder {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
}

.router-section {
    text-align: center;
    padding: 3rem;
    background: #252525 !important;
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid #404040;
}

.router-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.router-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #0a0a0a !important;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 1.5rem;
        border-left: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-large {
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 2rem 15px;
    }
    
    .hero-bg-image {
        transform: scale(1.02);
    }

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

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

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .countries-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 100%;
        gap: 0.5rem;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .countries-map {
        width: 100%;
        height: auto;
        margin-top: 2rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .countries-map-container {
        margin-top: 2rem;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pricing-grid {
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }
    
    .countries-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.4rem;
        padding: 0 8px;
    }
    
    .country-flag {
        font-size: 1.1rem;
    }
    
    .country-name {
        font-size: 0.65rem;
    }
    
    .hero-content {
        padding: 2rem 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .countries-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
        padding: 0 5px;
    }
    
    .country-item {
        padding: 0.5rem 0.25rem;
        min-width: 0;
    }
    
    .country-flag {
        font-size: 1rem;
    }
    
    .country-name {
        font-size: 0.6rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-content {
        padding: 2rem 10px;
    }
    
    .hero-bg-image {
        transform: scale(1.01);
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.countries-map {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .country-item {
        min-height: 80px;
        cursor: pointer;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
}

