:root {
    --primary: #2878FF;
    --primary-hover: #1a5cd6;
    --dark-bg: #091B36;
    --dark-card: #1a3a5c;
    --text-main: #12141D;
    --text-sub: #6B6D70;
    --bg-light: #F6F7F9;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.5; 
    background: #fff; 
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Animation Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(40, 120, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 120, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 120, 255, 0); }
}

/* Utility Classes for Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Header */
.header { 
    position: fixed; top: 0; left: 0; right: 0; height: 80px; 
    background: rgba(246, 247, 249, 0.95); 
    backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center; 
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header-inner { width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 24px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.logo img { width: 172px; }

.nav { display: flex; gap: 32px; margin-left: 60px; }

/* Dropdown Styles */
.nav-item { 
    display: flex; align-items: center; color: var(--text-sub); 
    font-size: 15px; font-weight: 500; cursor: pointer; position: relative;
    height: 80px; /* Full height for hover stability */
}
.nav-item:hover { color: var(--primary); }
.nav-item svg { margin-left: 6px; width: 10px; height: 10px; transition: transform 0.2s; }
.nav-item:hover svg { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1100;
    border: 1px solid #f1f5f9;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
}
.dropdown-item:hover {
    background: #F1F5F9;
    color: var(--primary);
}

.price-badge { 
    margin-left: 8px; padding: 2px 6px; 
    background: url('data:image/svg+xml;utf8,<svg width="100" height="30" xmlns="http://www.w3.org/2000/svg"><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="%23FF6B35"/><stop offset="100%" stop-color="%23F7418F"/></linearGradient><rect width="100" height="30" fill="url(%23g)"/></svg>');
    background-size: cover;
    color: white; font-size: 10px; border-radius: 4px; font-weight: 600; 
}

.header-right { display: flex; align-items: center; gap: 24px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer; position: relative; }
.lang-switch .dropdown-menu { top: 28px; min-width: 160px; }
.lang-switch:hover .dropdown-menu,
.lang-switch:focus-within .dropdown-menu,
.lang-switch.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.divider { width: 1px; height: 20px; background: #E5E5E5; }

.auth-nav { display: flex; align-items: center; gap: 20px; }
.btn-login { font-size: 14px; font-weight: 500; color: var(--text-main); }
.btn-login:hover { color: var(--primary); }

.btn-signup { 
    padding: 8px 24px; background: #192942; color: white; 
    border-radius: 20px; font-size: 14px; font-weight: 500; 
    transition: var(--transition);
}
.btn-signup:hover { background: #2a3f5f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(25, 41, 66, 0.2); }

/* Hero Section */
.hero { 
    padding: 160px 0 100px; 
    text-align: center; 
    background: 
        radial-gradient(circle at 20% 20%, rgba(40, 120, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(40, 120, 255, 0.05) 0%, transparent 40%),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9IiJlMmU4ZjAiLz48L3N2Zz4='); /* Dotted pattern */
    background-color: #fff;
}

.hero h1 { 
    font-size: 64px; font-weight: 600; color: #0F172A; 
    line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero h2 { 
    font-size: 40px; font-weight: 400; color: #334155; 
    margin-bottom: 32px; letter-spacing: -0.5px; 
}
.hero p { 
    font-size: 18px; color: #64748B; max-width: 700px; margin: 0 auto 48px; 
}

.hero-actions { display: flex; justify-content: center; gap: 16px; }

.btn-primary { 
    height: 56px; padding: 0 32px; border-radius: 28px; 
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 500; cursor: pointer; transition: var(--transition);
}

.btn-white { 
    background: white; border: 1px solid #000; color: #091B36; 
}
.btn-white:hover { background: #f8fafc; border-color: var(--primary); color: var(--primary); }

.btn-dark { 
    background: #192942; color: white; min-width: 270px;
}
.btn-dark:hover { background: #2a3f5f; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(25, 41, 66, 0.2); }

.google-icon { background: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }

.integrations { margin-top: 120px; }
.integrations p { font-size: 16px; margin-bottom: 40px; }
.tech-stack { display: flex; justify-content: center; gap: 40px; opacity: 0.6; filter: grayscale(100%); transition: var(--transition); }
.tech-stack:hover { opacity: 1; filter: grayscale(0%); }
.tech-icon { font-size: 24px; font-weight: 600; color: #64748B; display: flex; align-items: center; gap: 8px; }

/* Products Section */
.products { padding: 120px 0; background: white; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 40px; font-weight: 600; color: #12141D; letter-spacing: -1px; }

.product-grid { display: flex; gap: 24px; }

.card { 
    border-radius: 16px; overflow: hidden; position: relative;
    transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.card-residential {
    flex: 2; height: 550px; background: var(--dark-bg); padding: 48px; color: white;
    box-shadow: 0 10px 30px rgba(9, 27, 54, 0.3);
}

.card-isp {
    flex: 1; height: 550px; background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FF 100%); 
    padding: 48px; border: 1px solid #E2E8F0;
}

.card-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.card-desc { font-size: 16px; opacity: 0.7; margin-bottom: 32px; line-height: 1.6; }

.price-display { font-size: 36px; font-weight: 800; margin-bottom: 24px; }
.price-unit { font-size: 20px; font-weight: 500; opacity: 0.8; margin-left: 4px; }

.divider-line { height: 1px; background: rgba(255,255,255,0.15); width: 100%; margin-bottom: 32px; }
.card-isp .divider-line { background: #E2E8F0; }

.feature-list { list-style: none; margin-bottom: 48px; }
.feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; background: #22C55E; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; }

.card-actions { display: flex; gap: 16px; }
.btn-card { 
    flex: 1; height: 56px; border-radius: 8px; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-card.white { background: white; color: var(--dark-bg); }
.btn-card.white:hover { background: #f1f5f9; }
.btn-card.outline { border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-card.outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Map Animation placeholder */
.map-visual {
    position: absolute; right: 0; top: 60px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(40,120,255,0.2) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.map-dot {
    position: absolute; width: 8px; height: 8px; background: #3B82F6; border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

/* Features Tabs */
.features-tabs { padding-bottom: 100px; }
.tabs-nav { 
    background: #F6F7F9; padding: 6px; border-radius: 12px; display: flex; 
    max-width: 1200px; margin: 0 auto 60px;
}
.tab-btn { 
    flex: 1; padding: 14px; text-align: center; border-radius: 8px; 
    font-size: 16px; font-weight: 500; color: #64748B; cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active { background: white; color: var(--dark-bg); box-shadow: 0 4px 6px rgba(0,0,0,0.05); font-weight: 600; }

.tab-content { display: flex; align-items: center; gap: 60px; }
.tab-info { flex: 1; }
.tab-info h3 { font-size: 36px; font-weight: 700; margin-bottom: 24px; color: var(--dark-bg); }
.tab-info p { font-size: 18px; color: #64748B; line-height: 1.7; margin-bottom: 40px; }
.tab-visual { 
    flex: 0 0 400px; height: 320px; background: #EEF3FF; border-radius: 20px; 
    display: flex; align-items: center; justify-content: center;
}
.tab-visual svg { width: 150px; height: 150px; color: var(--primary); filter: drop-shadow(0 10px 20px rgba(40,120,255,0.3)); }

/* Use Cases */
.cases { padding: 100px 0; background: white; }
.cases-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.case-item { 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition); border: 1px solid #f1f5f9;
}
.case-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    border-color: var(--primary);
}
.case-icon-box { 
    height: 140px; background: #F8FAFC; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.case-item:hover .case-icon-box { background: #EEF3FF; }
.case-body { padding: 20px; text-align: center; }
.case-name { font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--dark-bg); }
.case-desc { font-size: 13px; color: #64748B; line-height: 1.4; }

/* Code Integration */
.integration { padding: 100px 0; background: #fff; }
.code-container { 
    display: flex; gap: 60px; align-items: center; 
    background: linear-gradient(to right, #fff 40%, #fff 40%); /* Visual separation */
}
.code-info { flex: 1; }
.code-info h2 { font-size: 36px; font-weight: 700; margin-bottom: 24px; line-height: 1.2; }
.code-window { 
    width: 560px; background: #1E293B; border-radius: 16px; padding: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.window-header { display: flex; gap: 8px; margin-bottom: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #EF4444; } .dot-yellow { background: #F59E0B; } .dot-green { background: #22C55E; }

.code-content { font-family: 'Monaco', monospace; font-size: 13px; color: #E2E8F0; line-height: 1.6; }
.kwd { color: #C678DD; } .str { color: #98C379; } .fn { color: #61AFEF; } .var { color: #E06C75; }

.lang-pills { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; }
.lang-pill { 
    padding: 6px 16px; background: rgba(255,255,255,0.1); border-radius: 20px; 
    color: #94A3B8; font-size: 12px; cursor: pointer; transition: 0.2s;
}
.lang-pill.active { background: rgba(255,255,255,0.2); color: white; }

/* Locations */
.locations { padding: 120px 0; background: var(--dark-bg); color: white; text-align: center; }
.flag-grid { 
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; 
    max-width: 1000px; margin: 60px auto 0;
}
.flag-card { 
    background: rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; 
    display: flex; align-items: center; gap: 16px; font-weight: 500;
    transition: var(--transition); cursor: pointer; border: 1px solid transparent;
}
.flag-card:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); border-color: rgba(255,255,255,0.2); }
.flag-emoji { font-size: 28px; }

/* FAQ */
.faq { padding: 120px 0; background: var(--bg-light); }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.faq-item { 
    background: white; padding: 24px 32px; border-radius: 12px; 
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 500; cursor: pointer; transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.faq-item:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); color: var(--primary); }

/* Footer */
.footer { background: #051024; color: white; font-size: 14px; }
.footer-cta { 
    padding: 80px 0; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); 
    background: linear-gradient(180deg, var(--dark-bg) 0%, #051024 100%);
}
.footer-main { padding: 80px 0; display: flex; gap: 100px; }
.footer-col h4 { font-size: 14px; color: #94A3B8; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; margin-bottom: 12px; color: #E2E8F0; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--primary); }

.footer-bottom { 
    padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.1); 
    display: flex; justify-content: space-between; align-items: center; color: #64748B;
}

/* Fixed Widget */
.floating-widget { 
    position: fixed; bottom: 40px; right: 40px; z-index: 999;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn { 
    width: 60px; height: 60px; border-radius: 50%; background: white; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center;
    transition: var(--transition); cursor: pointer; color: var(--primary);
}
.float-btn:hover { transform: scale(1.1); }
.float-cta { 
    background: var(--primary); color: white; width: 64px; height: 64px; 
    border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; line-height: 1.2;
    box-shadow: 0 4px 12px rgba(40, 120, 255, 0.4); animation: float 3s ease-in-out infinite;
}
