
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #f472b6;
    --accent-2: #22d3ee;
    --dark: #0f0f1a;
    --darker: #08080f;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.6);
    --bg: #08080f;
    --card-bg: rgba(255,255,255,0.05);
    --nav-bg: rgba(8,8,15,0.6);
    --footer-bg: #08080f;
    --loader-bg: #08080f;
    --input-bg: rgba(255,255,255,0.05);
    --shadow: rgba(0,0,0,0.3);
    --gradient-1: #6366f1;
    --gradient-2: #f472b6;
    --gradient-3: #22d3ee;
    --success: #22c55e;
}

[data-theme="light"] {
    --dark: #f8f9fc;
    --darker: #ffffff;
    --glass: rgba(0,0,0,0.03);
    --glass-border: rgba(0,0,0,0.08);
    --text: #1a1a2e;
    --text-muted: rgba(0,0,0,0.5);
    --bg: #ffffff;
    --card-bg: rgba(0,0,0,0.03);
    --nav-bg: rgba(255,255,255,0.8);
    --footer-bg: #f8f9fc;
    --loader-bg: #ffffff;
    --input-bg: rgba(0,0,0,0.05);
    --shadow: rgba(0,0,0,0.1);
    --gradient-1: #4f46e5;
    --gradient-2: #db2777;
    --gradient-3: #0891b2;
    --success: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    transition: background 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
}

/* ========== CURSOR ========== */
.cursor {
    width: 20px; height: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease, width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px; height: 40px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.3;
    transition: transform 0.3s ease, width 0.3s, height 0.3s;
}

.cursor.hover { width: 50px; height: 50px; border-color: var(--accent-2); background: rgba(34,211,238,0.1); }
.cursor.click { transform: scale(0.8); }

/* ========== LOADER ========== */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--loader-bg);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
    width: 60px; height: 60px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-light);
    letter-spacing: 0.2em;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.nav.scrolled { padding: 0.8rem 2rem; }

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.logo span { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-2));
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.theme-toggle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 32px; height: 32px;
    background: transparent; border: none;
    cursor: none; padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== APP DRAWER ========== */
.app-drawer {
    position: fixed; top: 0; right: -100%;
    width: 100%; max-width: 420px; height: 100vh;
    background: var(--darker);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
    backdrop-filter: blur(30px);
}
.app-drawer.open { right: 0; }
.app-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.app-drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.drawer-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; margin-bottom: 0.5rem;
}
.drawer-header p { color: var(--text-muted); font-size: 0.9rem; }

.drawer-apps {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.drawer-app {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.2rem;
    text-decoration: none; color: var(--text);
    transition: all 0.3s ease;
    cursor: none;
}
.drawer-app:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    color: #fff;
}
.drawer-app-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.8rem; font-size: 1.2rem;
}
.drawer-app:hover .drawer-app-icon { background: rgba(255,255,255,0.2); }
.drawer-app h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.drawer-app span { font-size: 0.75rem; opacity: 0.7; }

.drawer-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}
.drawer-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== HERO ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    z-index: 1; overflow: hidden;
    padding: 8rem 2rem 4rem;
}
.hero-content { text-align: center; z-index: 2; max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem; border-radius: 50px;
    font-size: 0.85rem; color: var(--accent-2); margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700;
    line-height: 1.05; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none; padding: 1rem 2.5rem; border-radius: 50px;
    color: #fff; font-weight: 600; font-size: 1rem;
    cursor: none; position: relative; overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(99,102,241,0.4); }

.btn-secondary {
    background: transparent; border: 2px solid var(--glass-border);
    padding: 1rem 2.5rem; border-radius: 50px;
    color: var(--text); font-weight: 600; font-size: 1rem;
    cursor: none; transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.btn-secondary:hover { border-color: var(--primary-light); background: var(--glass); transform: translateY(-3px); }

.scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.8rem;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

/* ========== SECTIONS ========== */
section { position: relative; z-index: 1; padding: 6rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 2rem;
    position: relative; overflow: hidden;
    transition: all 0.4s ease; cursor: none;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(34,211,238,0.08));
    opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(99,102,241,0.25); box-shadow: 0 25px 50px var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-3));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; position: relative; z-index: 1;
    font-size: 1.3rem;
}
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.feature-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; position: relative; z-index: 1; }

/* ========== STATS ========== */
.stats-section { background: linear-gradient(180deg, var(--darker) 0%, rgba(99,102,241,0.03) 50%, var(--darker) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ========== SUBDOMAINS ========== */
.subdomains-section { background: linear-gradient(180deg, var(--darker) 0%, rgba(99,102,241,0.03) 50%, var(--darker) 100%); }
.subdomains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.subdomain-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 18px; padding: 1.5rem;
    position: relative; overflow: hidden;
    transition: all 0.4s ease; cursor: none;
    text-decoration: none; color: var(--text);
    display: block;
}
.subdomain-card:hover { transform: scale(1.02); border-color: var(--primary-light); box-shadow: 0 15px 40px rgba(99,102,241,0.15); }
/* Base status style */
.subdomain-status {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Operational / Online */
.subdomain-status.active {
    background: #2ecc71; /* Success Green */
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

/* Maintenance / Degraded */
.subdomain-status.maintenance {
    background: #f1c40f; /* Warning Gold */
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

/* Offline / Error */
.subdomain-status.inactive {
    background: #e74c3c; /* Danger Red */
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    animation: none; /* Stop pulsing if it's dead */
    opacity: 0.7;
}

/* Provisioning / Deployment */
.subdomain-status.pending {
    background: #3498db; /* Processing Blue */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
    animation: pulse 1s infinite; /* Faster pulse for "working" */
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.subdomain-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--accent-2); }
.subdomain-url { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.78rem; color: var(--primary-light); margin-bottom: 0.8rem; opacity: 0.8; }
.subdomain-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.subdomain-tag { display: inline-block; background: rgba(99,102,241,0.15); color: var(--primary-light); padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.7rem; margin-top: 0.8rem; font-weight: 500; }

/* ========== GLOBE ========== */
.globe-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 4rem 1rem; }
#globe-container { width: 100%; max-width: 600px; height: 500px; position: relative; touch-action: none; }
.globe-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 10; }
.globe-overlay h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 0 30px rgba(99,102,241,0.4); }
.globe-overlay p { color: var(--text-muted); font-size: 1rem; }
.globe-hint {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    color: var(--text-muted); font-size: 0.8rem; opacity: 0.6;
    pointer-events: none;
}

/* ========== DIALOGS ========== */
.dialog-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
}
.dialog-overlay.active { opacity: 1; pointer-events: all; }
.dialog {
    background: var(--darker);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px; width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 40px 80px var(--shadow);
}
.dialog-overlay.active .dialog { transform: scale(1) translateY(0); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dialog-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; }
.dialog-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--card-bg); border: 1px solid var(--glass-border);
    color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: none; transition: all 0.3s ease;
    font-size: 1.2rem;
}
.dialog-close:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.dialog-body { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.dialog-body input, .dialog-body select, .dialog-body textarea {
    width: 100%; background: var(--input-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 0.8rem 1rem; color: var(--text);
    font-size: 0.95rem; outline: none; margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}
.dialog-body input:focus, .dialog-body select:focus, .dialog-body textarea:focus { border-color: var(--primary-light); }
.dialog-body input::placeholder { color: var(--text-muted); opacity: 0.5; }
.dialog-footer { display: flex; gap: 0.8rem; justify-content: flex-end; }
.dialog-btn {
    padding: 0.7rem 1.5rem; border-radius: 12px; font-weight: 600;
    font-size: 0.9rem; cursor: none; transition: all 0.3s ease;
    border: none;
}
.dialog-btn-primary { background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2)); color: #fff; }
.dialog-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,0.3); }
.dialog-btn-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--glass-border); }
.dialog-btn-secondary:hover { background: var(--glass); }

/* ========== AI WIDGET ========== */
.ai-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; }
.ai-toggle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
    transition: all 0.3s ease; position: relative;
    font-size: 1.4rem;
}
.ai-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(99,102,241,0.5); }
.ai-panel {
    position: absolute; bottom: 70px; right: 0;
    width: 360px; max-height: 480px;
    background: var(--darker);
    border: 1px solid var(--glass-border); border-radius: 20px;
    overflow: hidden;
    opacity: 0; transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow);
}
.ai-panel.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ai-header { padding: 1.2rem; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 0.8rem; }
.ai-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.ai-header h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; }
.ai-header span { font-size: 0.75rem; color: var(--success); }
.ai-messages { padding: 1.2rem; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.ai-message { max-width: 85%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.85rem; line-height: 1.5; animation: messageIn 0.3s ease; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ai-message.bot { background: var(--card-bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-message.user { background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-input-area { padding: 0.8rem 1.2rem; border-top: 1px solid var(--glass-border); display: flex; gap: 0.5rem; }
.ai-input { flex: 1; background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 50px; padding: 0.6rem 1rem; color: var(--text); font-size: 0.85rem; outline: none; transition: border-color 0.3s ease; }
.ai-input:focus { border-color: var(--primary-light); }
.ai-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.ai-send { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2)); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: none; transition: transform 0.3s ease; font-size: 1rem; }
.ai-send:hover { transform: scale(1.1); }

/* ========== WHATSAPP ========== */
.whatsapp-float { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 1000; }
.whatsapp-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease; position: relative; text-decoration: none;
    font-size: 1.4rem;
}
.whatsapp-btn:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5); }
.whatsapp-tooltip {
    position: absolute; left: 65px; top: 50%; transform: translateY(-50%);
    background: var(--card-bg); border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem; border-radius: 10px;
    font-size: 0.8rem; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text);
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; left: 70px; }

/* ========== FOOTER ========== */
.footer { background: var(--footer-bg); border-top: 1px solid var(--glass-border); padding: 3rem 1.5rem 1.5rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-brand h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary-light), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: var(--text-muted); line-height: 1.7; font-size: 0.9rem; margin-bottom: 1.2rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s ease; text-decoration: none; font-size: 1rem; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-links h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; margin-bottom: 1.2rem; color: var(--text); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; }

/* ========== RIGHT CLICK MENU ========== */
.context-menu {
    position: fixed;
    background: var(--darker);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.5rem;
    z-index: 10001;
    opacity: 0; pointer-events: none;
    transform: scale(0.95);
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow);
    min-width: 200px;
}
.context-menu.active { opacity: 1; pointer-events: all; transform: scale(1); }
.context-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 1rem; border-radius: 10px;
    color: var(--text); font-size: 0.85rem;
    cursor: none; transition: all 0.2s ease;
    text-decoration: none;
}
.context-item:hover { background: var(--card-bg); color: var(--primary-light); }
.context-item i { font-size: 1rem; width: 20px; text-align: center; }
.context-divider { height: 1px; background: var(--glass-border); margin: 0.4rem 0.5rem; }

/* ========== CLICK PARTICLES ========== */
.click-particle { position: fixed; pointer-events: none; z-index: 9999; }
.click-star { position: absolute; width: 4px; height: 4px; background: var(--accent-2); border-radius: 50%; box-shadow: 0 0 10px var(--accent-2), 0 0 20px var(--accent-2); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ai-panel { width: calc(100vw - 2rem); right: -0.5rem; max-width: 360px; }
    .hero { padding-top: 6rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    section { padding: 4rem 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 2.5rem; }
    .globe-section { min-height: 60vh; }
    #globe-container { height: 350px; }
    .drawer-apps { grid-template-columns: 1fr; }
    .app-drawer { max-width: 100%; }
    .theme-toggle { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .btn-primary, .btn-secondary { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .feature-card { padding: 1.5rem; }
    .subdomain-card { padding: 1.2rem; }
    .dialog { padding: 1.5rem; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Places it behind all content */
    pointer-events: none; /* Allows clicking on elements through the canvas */
}