/* Core Premium Theme Variables */
:root {
    --bg-dark: #080a16;
    --bg-darker: #05060f;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Harmonious Curated Color Palette */
    --color-indigo: #6366f1;
    --color-purple: #a855f7;
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    
    /* Soft Transparent Color Backdrops */
    --color-indigo-soft: rgba(99, 102, 241, 0.15);
    --color-purple-soft: rgba(168, 85, 247, 0.15);
    --color-cyan-soft: rgba(6, 182, 212, 0.15);
    --color-green-soft: rgba(16, 185, 129, 0.15);
    --color-yellow-soft: rgba(245, 158, 11, 0.15);
    
    /* Premium Glassmorphism Properties */
    --glass-bg: rgba(15, 20, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Background Glowing Elements for depth */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--color-indigo) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
    top: 50%;
    left: -200px;
}

.bg-glow-3 {
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* Container Structure */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px 0 var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 0 24px 24px;
    border-top: none;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand span {
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu a:hover {
    color: var(--text-light);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-drawer.active {
    transform: translateY(0);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
}

.mobile-nav-menu a {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-indigo);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background-color: #5558e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid var(--glass-border);
}

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

.btn-gradient {
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-purple) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-text-content h1 span {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features-preview {
    display: flex;
    gap: 28px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.preview-item i {
    font-size: 18px;
}

.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.text-green { color: var(--color-green); }
.text-yellow { color: var(--color-yellow); }

/* Hero Graphics */
.hero-graphic {
    display: flex;
    justify-content: center;
}

.main-graphic-card {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: var(--color-red); }
.dot-yellow { background-color: var(--color-yellow); }
.dot-green { background-color: var(--color-green); }

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.card-body {
    padding: 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 80%);
}

.dashboard-img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    filter: brightness(0.95);
}

.floating-latency-badge {
    position: absolute;
    bottom: -15px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.latency-info {
    display: flex;
    flex-direction: column;
}

.latency-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.latency-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-light);
}

/* Sections Core Header */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
}

.text-center { text-align: center; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Geo Mixer Latency simulation */
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.mixer-text h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.mixer-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.mixer-list {
    list-style: none;
}

.mixer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
}

.mixer-list li i {
    font-size: 16px;
    margin-top: 4px;
}

/* Status Cards & Latency meters */
.status-card {
    padding: 30px;
    border-radius: 24px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.status-header h3 {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.pulse-indicator {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-green);
    animation: text-pulse 2s infinite alternate;
}

.latency-nodes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.latency-node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.latency-node-item:hover {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag {
    font-size: 20px;
}

.node-name {
    font-size: 14px;
    font-weight: 600;
}

.node-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: 120px;
}

.ping-value {
    font-size: 13px;
    font-weight: 700;
}

.ping-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.ping-bar {
    height: 100%;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.bar-green { background-color: var(--color-green); }
.bar-yellow { background-color: var(--color-yellow); }

.status-footer {
    font-size: 13px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premium-card {
    border-color: var(--color-purple);
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08) 0%, transparent 60%), var(--glass-bg);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--color-indigo);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 36px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 100%);
}

.tariff-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.price-box {
    margin-bottom: 30px;
}

.currency {
    font-size: 24px;
    font-weight: 800;
    vertical-align: super;
}

.price {
    font-size: 54px;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.period {
    font-size: 15px;
    color: var(--text-muted);
}

.tariff-features {
    list-style: none;
    margin-bottom: 40px;
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.tariff-features li i {
    font-size: 15px;
}

/* Setup Section */
.setup-tabs-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.tab-headers {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background-color: var(--color-indigo);
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.tab-btn:hover:not(.active) {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.03);
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fade-in 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-desc h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-desc p {
    color: var(--text-muted);
    font-size: 14px;
}

.link-inline {
    color: var(--color-cyan);
    font-weight: 600;
    border-bottom: 1px dotted var(--color-cyan);
}

.link-inline:hover {
    color: white;
    border-color: white;
}

.fixes-banner {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%), var(--glass-bg);
}

.fixes-banner h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
}

.fixes-banner p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.footer-brand h2 {
    font-size: 28px;
    font-weight: 800;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

/* Keyframes and Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes text-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-slide-in {
    animation: slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text-content h1 {
        font-size: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features-preview {
        justify-content: center;
    }
    
    .floating-latency-badge {
        left: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .pricing-card {
        padding: 30px;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 24px;
    }
}
