/* ==========================
   Luxury Fluid Glassmorphism
   ========================== */

:root {
    --bg-color: #f4f6fa;
    --text-main: #1a1e29;
    --text-muted: #6b7280;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    
    --aurora-1: rgba(59, 130, 246, 0.2);
    --aurora-2: rgba(147, 51, 234, 0.15);
    --aurora-3: rgba(236, 72, 153, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
    --bg-color: #080b16; /* Deep obsidian-navy */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #60a5fa;
    --primary-glow: rgba(96, 165, 250, 0.6);
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --aurora-1: rgba(37, 99, 235, 0.4); /* Cobalt blue */
    --aurora-2: rgba(79, 70, 229, 0.4); /* Royal indigo */
    --aurora-3: rgba(219, 39, 119, 0.3); /* Soft magenta */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==========================
   Fluid Aurora Background
   ========================== */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    transition: background-color var(--transition);
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    transition: background 1s ease;
    will-change: transform;
}

.blob-1 { width: 60vw; height: 60vw; background: var(--aurora-1); top: -20vh; left: -10vw; animation: float1 15s infinite alternate ease-in-out; }
.blob-2 { width: 50vw; height: 50vw; background: var(--aurora-2); bottom: -10vh; right: -10vw; animation: float2 18s infinite alternate ease-in-out; }
#cursor-blob { width: 400px; height: 400px; background: var(--aurora-3); top: 0; left: 0; transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.2, 1); }

@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10vw, 5vh) scale(1.2); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-15vw, -10vh) scale(1.1); } }

/* Dynamic tint switching */
.scenario-streaming .blob-1 { background: rgba(239, 68, 68, 0.3); } /* Red/Netflix vibe */
.scenario-meeting .blob-2 { background: rgba(16, 185, 129, 0.3); } /* Green/Zoom vibe */
.scenario-gaming .blob-1 { background: rgba(245, 158, 11, 0.3); } /* Orange vibe */
.scenario-privacy .blob-2 { background: rgba(71, 85, 105, 0.5); } /* Gray stealth vibe */

/* ==========================
   Glassmorphism Utilities
   ========================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform var(--spring), box-shadow var(--spring);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Dynamic Specular Highlights on Borders */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--x, -100%) var(--y, -100%), rgba(255,255,255,0.4), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* ==========================
   Layout & Typography
   ========================== */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

/* ==========================
   Navigation
   ========================== */
.navbar { position: sticky; top: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo a { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 15px; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Theme Toggle (Elegant) */
.theme-toggle {
    background: transparent; border: none; cursor: pointer; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-main); position: relative;
}
.theme-toggle svg { position: absolute; transition: opacity 0.4s, transform 0.4s var(--spring); }
.icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .icon-sun { opacity: 1; transform: rotate(0) scale(1); }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 24px; border-radius: 30px; font-weight: 600;
    cursor: pointer; transition: transform var(--spring), box-shadow 0.3s;
    font-size: 15px; text-align: center; border: 1px solid transparent;
}
.btn-primary { background: var(--text-main); color: var(--bg-color); }
.btn-primary:hover { transform: scale(1.05); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-large { padding: 14px 36px; font-size: 16px; }
.btn-full { display: block; width: 100%; }
.glow-shadow { box-shadow: 0 0 20px var(--primary-glow); }

/* ==========================
   Hero Section
   ========================== */
.hero { padding: 120px 0 80px; text-align: center; }
.headline { font-size: 48px; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }
.sub-headline { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; font-weight: 400; }

/* Segmented Controller */
.segmented-control {
    display: inline-flex; position: relative; padding: 6px; border-radius: 40px;
    margin-bottom: 60px; border: 1px solid var(--glass-border);
}
.pill {
    position: absolute; top: 6px; bottom: 6px; left: 0;
    background: rgba(255,255,255,0.15); border-radius: 30px;
    transition: transform var(--spring), width var(--spring);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}
.sc-item {
    position: relative; z-index: 1; padding: 10px 24px; cursor: pointer;
    font-weight: 600; font-size: 14px; color: var(--text-muted);
    transition: color 0.3s;
}
.sc-item.active { color: var(--text-main); }

/* Latency Compass Widget */
.compass-widget { max-width: 400px; margin: 0 auto 50px; padding: 25px; display: flex; align-items: center; gap: 20px; border-radius: 100px; }
.compass-core { position: relative; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.compass-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px dashed var(--primary-color); opacity: 0.5; transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.compass-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.compass-value .ms { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.compass-info { text-align: left; }
.compass-info h4 { margin-bottom: 4px; font-size: 15px; }
.compass-info p { font-size: 12px; color: var(--text-muted); }

.hero-actions { display: flex; justify-content: center; gap: 20px; }

/* ==========================
   Sections & Grids
   ========================== */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }

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

/* Overlapping Card Deck */
.card-deck { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.overlapping-card { width: calc(33.333% - 20px); text-align: center; }
.card-icon { font-size: 40px; margin-bottom: 20px; }

/* Eco Cards (Streaming/AI) */
.eco-card h3 { margin-bottom: 20px; font-size: 20px; }
.eco-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--glass-border); }
.eco-list li:last-child { border-bottom: none; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

/* Pricing */
.billing-toggle-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px; }
.billing-label { font-size: 15px; color: var(--text-muted); transition: color 0.3s; }
.billing-label.active { color: var(--text-main); font-weight: 600; }
.billing-switch { width: 54px; height: 30px; background: rgba(255,255,255,0.1); border-radius: 30px; border: 1px solid var(--glass-border); position: relative; cursor: pointer; }
.billing-slider { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--text-main); border-radius: 50%; transition: transform var(--spring); }
.billing-switch.active .billing-slider { transform: translateX(24px); }

.price-card { text-align: center; }
.price-card.popular { border: 1px solid rgba(96, 165, 250, 0.5); box-shadow: 0 0 30px var(--primary-glow); }
.tag { display: inline-block; font-size: 12px; font-weight: bold; padding: 4px 12px; border-radius: 20px; background: linear-gradient(135deg, #60a5fa, #c084fc); color: #fff; margin-bottom: 15px; }
.price { font-size: 48px; font-weight: 800; margin: 10px 0 30px; }
.price-val { transition: opacity 0.2s; font-variant-numeric: tabular-nums; }
.price .unit { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.features { margin-bottom: 30px; text-align: left; }
.features li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }

/* Reviews & FAQ */
.review-card { margin-bottom: 20px; }
.quote { font-size: 16px; font-style: italic; line-height: 1.8; margin-bottom: 15px; }
.author { text-align: right; color: var(--primary-color); font-weight: 600; }
.faq-card { margin-bottom: 20px; }
.faq-card h4 { margin-bottom: 10px; font-size: 18px; }
.faq-card p { color: var(--text-muted); }

/* Footer */
.footer { padding: 60px 0; border-top: 1px solid var(--glass-border); border-bottom: none; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-main); }

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .overlapping-card { width: calc(50% - 10px); margin-bottom: 20px; }
    .headline { font-size: 38px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .overlapping-card { width: 100%; }
    .segmented-control { display: flex; flex-direction: column; background: var(--glass-bg); padding: 15px; border-radius: 20px; }
    .pill { display: none; }
    .sc-item.active { background: rgba(255,255,255,0.1); border-radius: 10px; }
    .hero-actions { flex-direction: column; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
