/* ============================================
   SALAMUCHIE - Network Monitoring
   Clean, Free, Simple
   ============================================ */

/* CSS Variables */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #00d4ff;
    --accent: #ff6b6b;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border: #2a2a3a;
    --gradient-1: #00ff88;
    --gradient-2: #00d4ff;
    --glow-primary: rgba(0, 255, 136, 0.3);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   INTRO OVERLAY - Microchip Animation
   ============================================ */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#microchip-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--primary);
    text-shadow: 0 0 30px var(--glow-primary);
}

.cursor-blink {
    font-size: 3.5rem;
    color: var(--primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.system-status {
    margin-bottom: 2rem;
}

#status-text {
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.progress-container {
    width: 300px;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--glow-primary);
    transition: width 0.3s ease-out;
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.title-section h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-badge {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.badge-soon {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.glitch-text {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 2s infinite;
    color: var(--accent);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 2s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 3px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -3px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 3px); }
    80% { clip-path: inset(80% 0 0% 0); transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -3px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 3px); }
    60% { clip-path: inset(20% 0 60% 0); transform: translate(3px, -3px); }
    80% { clip-path: inset(0% 0 80% 0); transform: translate(-3px, 3px); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* Download Counter Box */
.download-counter-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.counter-icon {
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.counter-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary);
    border-radius: 12px;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 0.4rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Consolas', monospace;
}

/* ============================================
   QUICK START SECTION
   ============================================ */
.quickstart-section {
    padding: 4rem 0;
}

.quickstart-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quickstart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.quickstart-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.quickstart-card ul {
    list-style: none;
    color: var(--text-secondary);
}

.quickstart-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.quickstart-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.quickstart-card kbd {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

.status-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.cyan { background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.status-dot.green { background: #00ff88; box-shadow: 0 0 8px #00ff88; }
.status-dot.yellow { background: #ffd700; box-shadow: 0 0 8px #ffd700; }
.status-dot.orange { background: #ff9500; box-shadow: 0 0 8px #ff9500; }
.status-dot.red { background: #ff4444; box-shadow: 0 0 8px #ff4444; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   ACTIONS SECTION
   ============================================ */
.actions-section {
    padding: 4rem 0;
}

.actions-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.actions-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.actions-table {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.action-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.action-row:last-child {
    border-bottom: none;
}

.action-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
    font-weight: 600;
}

.action-icon {
    font-size: 1.25rem;
}

.action-desc {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   SHORTCUTS SECTION
   ============================================ */
.shortcuts-section {
    padding: 4rem 0;
    text-align: center;
}

.shortcuts-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

kbd {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

.shortcut-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pro-tips-inline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.pro-tips-inline strong {
    color: #ffd700;
}

/* ============================================
   LOGS SECTION
   ============================================ */
.logs-section {
    padding: 4rem 0;
}

.logs-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.log-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.log-feature-card:hover {
    border-color: var(--secondary);
}

.log-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.log-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.log-feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
    padding: 4rem 0;
    text-align: center;
}

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download-card {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.download-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.download-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-features {
    list-style: none;
}

.download-features li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-action {
    text-align: center;
}

.download-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.system-requirements {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.system-requirements h5 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.system-requirements ul {
    list-style: none;
    text-align: left;
}

.system-requirements li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.system-requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 4rem 0;
}

.faq-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-version {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.made-with {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .quickstart-grid,
    .features-grid,
    .logs-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .quickstart-grid,
    .features-grid,
    .logs-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .action-row {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}
