/* CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0e1a;
    --fg: #e2e8f0;
    --muted: #1a1f2e;
    --card: #1a1f2e;
    --line: #2d3748;
    --brand: #a855f7;
    --primary: #a855f7;
    --secondary: #14b8a6;
    --accent: #f59e0b;
    --pink: #ec4899;
    --shadow: 0 8px 24px rgba(0, 0, 0, .4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
    --glow-cyan: 0 0 20px rgba(20, 184, 166, 0.3);
    --glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
}

body {
    font-family: Inter, 'DM Sans', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1420 100%);
    background-attachment: fixed;
    color: var(--fg);
    line-height: 1.6;
    font-size: 16px;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px;
}

/* Typography */
h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Language Toggle */
.lang-toggle {
    position: absolute;
    top: 8px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.lang-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Section Spacing */
section {
    padding-top: 32px;
    padding-bottom: 32px;
}

section:first-of-type {
    padding-top: 36px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.3) 50%, transparent 100%);
    margin: 0;
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-header h2 {
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background-color: #000000;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3e 100%);
    border-radius: 16px;
    box-shadow: var(--shadow), var(--glow-purple);
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.hero h1 {
    color: #FFFFFF;
    margin-bottom: 12px;
}

.hero .subtitle {
    font-size: 17px;
    color: #E0E0E0;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 4px 16px rgba(168, 85, 247, 0.4);
    text-align: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b565ff 0%, #a855f7 100%);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 8px 24px rgba(168, 85, 247, 0.6);
    animation: none;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 4px 16px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 6px 20px rgba(168, 85, 247, 0.5);
    }
}

.hero .secondary-text {
    margin-top: 16px;
    color: #D0D0D0;
    font-size: 14px;
}

/* Video Demo Section */
.video-demo {
    padding-top: 32px;
    padding-bottom: 32px;
    display: none;
}

.video-demo.visible {
    display: block;
}

.video-tip {
    text-align: center;
    color: #000000;
    font-size: 15px;
    margin-top: -12px;
    margin-bottom: 24px;
    font-weight: 500;
}

.video-container {
    max-width: 960px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-color: #000000;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* How It Works Section (Stepper) */
.how-it-works {
    padding-top: 32px;
    padding-bottom: 32px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    list-style: none;
    padding: 0;
}

.step {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3e 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
    border-color: var(--primary);
}

.step:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: var(--glow-purple);
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.step-content {
    text-align: left;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
    color: #B0B0B0;
    line-height: 1.5;
}

/* Live Preview Section */
.live-preview {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Highlighted Live Preview */
.live-preview.highlighted {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    padding: 40px 32px;
    margin: 0 -16px;
    box-shadow: var(--glow-purple);
}

.live-preview.highlighted .section-header h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    background-color: #000000;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .8);
    border-color: #1a1a1a;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Mini Dashboard Section */
.mini-dashboard {
    padding-top: 32px;
    padding-bottom: 32px;
}

.last-updated {
    text-align: center;
    color: #888888;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.kpi-description {
    text-align: center;
    color: #FFFFFF;
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 24px;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.kpi-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #1e2535 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow);
    min-height: 140px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
    border-color: var(--primary);
    background: linear-gradient(135deg, #2d1f3e 0%, #1e2535 100%);
}

.kpi-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.kpi-tooltip {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    color: #666666;
    transition: color 0.3s ease;
    cursor: help;
}

.kpi-tooltip svg {
    width: 100%;
    height: 100%;
}

.kpi-tooltip:hover {
    color: var(--primary);
}

.kpi-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    right: 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3e 100%);
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 1px solid var(--primary);
    box-shadow: var(--glow-purple);
}

.kpi-tooltip:hover::after {
    opacity: 1;
}

.kpi-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    transition: color 0.3s ease;
}

.kpi-card:hover .kpi-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-delta {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: -4px;
}

.kpi-delta.positive {
    color: #4CAF50;
}

.kpi-delta.negative {
    color: #F44336;
}

.kpi-label {
    color: #B0B0B0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

.skeleton-text {
    display: inline-block;
    min-width: 80px;
    background: linear-gradient(90deg, #888888 25%, #999999 50%, #888888 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Top Cities List */
.top-cities-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.city-name {
    color: #FFFFFF;
    font-weight: 600;
    min-width: 80px;
}

.city-percent {
    color: var(--secondary);
    font-weight: 600;
    min-width: 35px;
}

.city-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.city-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Sparkline */
.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    margin: 4px 0;
}

.sparkline-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: 2px;
    min-width: 3px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.kpi-card:hover .sparkline-bar {
    opacity: 1;
    background: linear-gradient(180deg, var(--primary) 0%, var(--pink) 100%);
}

/* Development Notice Section */
.dev-notice {
    padding-top: 32px;
    padding-bottom: 32px;
}

.notice-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3e 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glow-gold);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.notice-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.notice-content h3 {
    color: #FFD700;
    margin-bottom: 12px;
    font-size: 20px;
}

.notice-content p {
    color: #E0E0E0;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.notice-progress {
    color: #FFD700;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Contact Us Section */
.contact-us {
    padding-top: 32px;
    padding-bottom: 32px;
}

.contact-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #1e2535 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.contact-info-section {
    text-align: left;
}

.contact-name {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.contact-title {
    color: #D0D0D0;
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-company {
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 16px;
}

.contact-address {
    color: #E0E0E0;
    margin-bottom: 4px;
    font-size: 15px;
}

.contact-info {
    color: #E0E0E0;
    margin-top: 4px;
    font-size: 15px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--secondary);
    padding: 10px 24px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d9488 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .hero {
        padding: 20px;
    }

    .stepper {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 20px 16px;
    }
    
    .step-icon {
        width: 44px;
        height: 44px;
    }
    
    .step-icon svg {
        width: 22px;
        height: 22px;
    }

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

    .kpi-cards {
        grid-template-columns: 1fr;
    }

    .kpi-tooltip::after {
        white-space: normal;
        max-width: 200px;
        right: auto;
        left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-section {
        text-align: center;
    }

    .lang-toggle {
        top: 8px;
        right: 12px;
        gap: 8px;
    }

    .notice-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .notice-icon {
        font-size: 28px;
    }

    .lang-btn {
        width: 36px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .hero {
        padding: 18px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-name {
        font-size: 20px;
    }
}
