/* Base Variables: Nocturnal feline agility & cyber-stealth */
:root {
    /* Default: Deep stealth obsidian canvas */
    --bg: #0a0a0f;
    --text: #f8f8f2;
    --text-muted: #888896;
    
    /* Glowing accents */
    --primary: #f43f5e; /* Neon electric magenta */
    --primary-hover: #ff1c45;
    --accent: #00f2fe; /* Feline slit-pupil laser cyan */
    
    /* Glass & Cards */
    --card-bg: rgba(20, 20, 30, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 10, 15, 0.75);
    --shadow: 0 8px 32px rgba(0,0,0,0.6);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg: #f5f6fa;
    --text: #1a1a24;
    --text-muted: #666677;
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: rgba(0, 0, 0, 0.08);
    --primary: #e82a4d;
    --primary-hover: #d01838;
    --accent: #00a8cc;
    --nav-bg: rgba(245, 246, 250, 0.85);
    --shadow: 0 8px 32px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* Whisker Canvas */
#whisker-trail { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; width: 100vw; height: 100vh; }

/* Header & Nav - Frosted Glass */
header { 
    position: fixed; 
    top: 0; left: 0; right: 0;
    background: var(--nav-bg); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000; 
    border-bottom: 1px solid var(--card-border); 
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 1px; display: flex; align-items: center; gap: 8px;}
.logo::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-right { display: flex; gap: 30px; align-items: center; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--text-muted); transition: var(--transition); position: relative; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 8px rgba(0,242,254,0.4); }

.theme-toggle { background: transparent; border: 1px solid var(--card-border); cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; transition: var(--transition); }
.theme-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(0,242,254,0.2); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; transition: var(--transition); }

.btn-console { border: 1px solid var(--primary); color: var(--primary) !important; padding: 6px 16px; border-radius: 6px; font-weight: 600; text-shadow: none !important; transition: var(--transition); background: rgba(244,63,94,0.1); }
.btn-console:hover { background: var(--primary); color: #fff !important; box-shadow: 0 0 15px rgba(244,63,94,0.5); }

/* Hero Section */
.hero { text-align: center; padding: 160px 20px 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(244,63,94,0.08) 0%, transparent 60%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 24px; line-height: 1.2; letter-spacing: -1px; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* Interactive Telemetry Widget */
.latency-widget-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; height: 80px; justify-content: center; }
.cyber-btn { 
    background: transparent; border: 1px solid var(--primary); color: var(--primary); 
    padding: 16px 40px; border-radius: 4px; font-size: 1.1rem; font-weight: bold; 
    cursor: pointer; position: relative; overflow: hidden; letter-spacing: 1px;
    transition: var(--transition); text-transform: uppercase;
}
.cyber-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(244,63,94,0.3), transparent); transition: all 0.5s; }
.cyber-btn:hover::before { left: 100%; }
.cyber-btn:hover { background: rgba(244,63,94,0.1); box-shadow: 0 0 20px rgba(244,63,94,0.4), inset 0 0 10px rgba(244,63,94,0.2); }
.cyber-btn.rippling { animation: neonPulse 1s forwards; pointer-events: none; border-color: var(--accent); color: var(--accent); }

@keyframes neonPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,242,254,0.7), 0 0 0 0 rgba(244,63,94,0.7); }
    100% { box-shadow: 0 0 30px 20px rgba(0,242,254,0), 0 0 50px 30px rgba(244,63,94,0); background: transparent; border-color: var(--accent); color: var(--accent); }
}

.ping-display { 
    font-family: "Courier New", Courier, monospace; font-size: 1.5rem; font-weight: bold; color: var(--accent); 
    display: flex; align-items: center; gap: 12px; text-shadow: 0 0 10px rgba(0,242,254,0.5);
    background: rgba(0,242,254,0.05); padding: 12px 30px; border-radius: 4px; border: 1px solid rgba(0,242,254,0.2);
    animation: fadeIn 0.5s ease-out;
}
.pulse-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent); } 100% { transform: scale(0.95); opacity: 0.8; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero-actions { display: flex; gap: 20px; justify-content: center; }
.btn-solid { background: var(--primary); color: #fff !important; padding: 16px 36px; border-radius: 4px; font-weight: 700; transition: var(--transition); display: inline-block; box-shadow: 0 4px 15px rgba(244,63,94,0.3); }
.btn-solid:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(244,63,94,0.5); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--card-border); padding: 16px 36px; border-radius: 4px; font-weight: 600; transition: var(--transition); display: inline-block; }
.btn-outline:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.05); }

/* Glass Cards (Laser tracking effect) */
section { padding: 90px 0; position: relative; z-index: 2; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 60px; text-align: center; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.section-title::before, .section-title::after { content: ''; height: 2px; width: 40px; background: var(--card-border); display: block; }

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

.glass-card { 
    background: var(--card-bg); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border); 
    border-radius: 12px; 
    padding: 40px 30px; 
    position: relative; 
    overflow: hidden; 
    transition: var(--transition); 
}
.glass-card::before {
    content: ''; position: absolute; top: var(--mouse-y, -1000px); left: var(--mouse-x, -1000px);
    transform: translate(-50%, -50%); width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(0,242,254,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.glass-card > * { position: relative; z-index: 2; }

.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.card-title span { color: var(--accent); font-family: monospace; font-size: 1.1rem; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* Real-Time Node Status Board */
.board-wrapper { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); }
.node-board { width: 100%; border-collapse: collapse; text-align: left; }
.node-board th { background: rgba(0,0,0,0.2); padding: 20px 30px; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--card-border); }
.node-board td { padding: 20px 30px; border-bottom: 1px solid var(--card-border); font-weight: 500; font-family: monospace; font-size: 1.05rem; }
.node-board tr:last-child td { border-bottom: none; }
.node-board tr:hover td { background: rgba(255,255,255,0.02); }
.status-up { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; margin-right: 8px; animation: pulse 2s infinite; }

/* Pricing Deck */
.pricing-card { display: flex; flex-direction: column; text-align: center; }
.pricing-card h3 { font-size: 1.6rem; letter-spacing: 2px; margin-bottom: 10px; font-weight: 800; }
.price-box { margin: 30px 0; font-family: monospace; font-size: 3rem; color: var(--text); font-weight: bold; text-shadow: 0 0 15px rgba(255,255,255,0.1); }
.price-box span { font-size: 1rem; color: var(--text-muted); font-family: sans-serif; font-weight: normal; }
.pricing-card ul { text-align: left; margin: 0 0 40px 0; flex-grow: 1; }
.pricing-card li { margin-bottom: 16px; font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.pricing-card li::before { content: ''; display: block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

.pricing-card:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(244,63,94,0.15), inset 0 0 20px rgba(244,63,94,0.05); }
.pricing-card.popular { border-color: var(--accent); background: linear-gradient(180deg, rgba(0,242,254,0.05) 0%, rgba(20,20,30,0.4) 100%); }
.pricing-card.popular:hover { box-shadow: 0 0 25px rgba(0,242,254,0.2), inset 0 0 20px rgba(0,242,254,0.1); }
.popular-tag { display: inline-block; background: var(--accent); color: #000; font-size: 0.8rem; font-weight: bold; padding: 4px 12px; border-radius: 20px; letter-spacing: 1px; margin-bottom: 15px; box-shadow: 0 0 10px rgba(0,242,254,0.5); }
.pricing-card.popular li::before { background: var(--accent); }

/* FAQ & Reviews */
.faq-item { border-bottom: 1px solid var(--card-border); padding: 25px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text); display: flex; gap: 10px; align-items: center; }
.faq-item h3::before { content: 'Q.'; color: var(--primary); font-family: monospace; font-size: 1.4rem; font-weight: bold; }
.faq-item p { color: var(--text-muted); padding-left: 32px; font-size: 0.95rem; }

.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.review-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--card-border); padding-top: 15px; }
.review-author span { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 60px 0 30px; text-align: center; background: rgba(0,0,0,0.2); }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: var(--transition); letter-spacing: 1px; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--text-muted); font-size: 0.85rem; font-family: monospace; }

/* Subpage Styles */
.page-header { text-align: center; padding: 120px 20px 60px; border-bottom: 1px solid var(--card-border); background: radial-gradient(circle at top, rgba(0,242,254,0.05) 0%, transparent 70%); }
.page-header h1 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: 2px; }
.page-content { max-width: 800px; margin: 60px auto; padding: 0 20px; font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;}
.page-content h2 { margin: 50px 0 20px; font-size: 1.6rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.page-content h2::before { content: ''; width: 4px; height: 20px; background: var(--accent); display: inline-block; }
.page-content p { margin-bottom: 20px; }
.page-content ul { padding-left: 20px; margin-bottom: 20px; list-style-type: square; color: var(--text-muted); }
.page-content li { margin-bottom: 10px; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { padding: 120px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .nav-right { gap: 15px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .node-board th, .node-board td { padding: 15px 10px; font-size: 0.9rem; }
    .btn-solid, .btn-outline { width: 100%; text-align: center; }
    .hero-actions { flex-direction: column; }
}
