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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    transition: opacity 0.5s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: #6366f1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* Real-time Stats */
.realtime-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.realtime-stats .stat-item {
    text-align: center;
    padding: 15px;
}

.realtime-stats .stat-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.realtime-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.realtime-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

/* Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.url-input {
    display: flex;
    gap: 10px;
}

.url-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.url-input button {
    padding: 12px 20px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.stats-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-preview .stat-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
}

.stats-preview .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
}

.stats-preview .stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Floating Country Indicators */
.floating-countries {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.country-indicator {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.country-indicator .flag {
    font-size: 20px;
    margin-bottom: 2px;
}

.country-indicator .user-count {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
}

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

.country-indicator:nth-child(1) { animation-delay: 0s; }
.country-indicator:nth-child(2) { animation-delay: 0.5s; }
.country-indicator:nth-child(3) { animation-delay: 1s; }
.country-indicator:nth-child(4) { animation-delay: 1.5s; }
.country-indicator:nth-child(5) { animation-delay: 2s; }
.country-indicator:nth-child(6) { animation-delay: 2.5s; }

/* Live Activity Feed */
.live-activity {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 100;
    max-height: 200px;
    overflow: hidden;
}

.activity-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #1f2937;
}

.live-dot {
    color: #10b981;
    font-size: 8px;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.activity-feed {
    max-height: 120px;
    overflow-y: auto;
    padding: 10px 0;
}

.activity-item {
    padding: 8px 20px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid transparent;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Real-time Dashboard */
.realtime-dashboard {
    padding: 100px 0;
    background: #f8fafc;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* World Map */
.map-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.world-map {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
}

.map-dot {
    position: absolute;
    width: 20px;
    height: 20px;
}

.pulse-ring {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: -5px;
    left: -5px;
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-dot {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Live Charts */
.live-charts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chart-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.line-chart {
    height: 100px;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: height 0.5s ease;
}

/* Country Leaderboard */
.country-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #e5e7eb;
    transform: translateX(5px);
}

.rank {
    font-weight: 700;
    color: #6366f1;
    min-width: 30px;
}

.country {
    flex: 1;
    margin-left: 15px;
    font-weight: 500;
    color: #1f2937;
}

.count {
    font-weight: 700;
    color: #10b981;
    transition: color 0.3s ease;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Analytics Section */
.analytics-preview {
    padding: 100px 0;
    background: white;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.analytics-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.analytics-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.analytics-features {
    list-style: none;
}

.analytics-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1f2937;
}

.analytics-features i {
    color: #10b981;
    margin-right: 15px;
    font-size: 16px;
}

.dashboard-mockup {
    background: #1f2937;
    border-radius: 20px;
    padding: 30px;
    color: white;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-period {
    font-size: 0.9rem;
    opacity: 0.7;
}

.chart-placeholder .chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100px;
}

.chart-placeholder .bar {
    flex: 1;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.country-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.country-stats h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-item:last-child {
    border-bottom: none;
}

.percentage {
    font-weight: 600;
    color: #10b981;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.download-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: white;
    color: #1f2937;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn i {
    font-size: 32px;
}

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

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-stats .stat {
    text-align: center;
}

.download-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.download-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 24px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    width: 16px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6366f1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .analytics-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .floating-countries {
        display: none;
    }
    
    .live-activity {
        position: relative;
        width: 100%;
        margin-top: 30px;
        bottom: auto;
        right: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-stats {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .realtime-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
