:root {
    --sw-bg: #1a0b2e;
    --sw-text: #e0d0ff;
    --sw-primary: #ff2a6d;
    --sw-secondary: #05d9e8;
    --sw-accent: #01ffe5;
    --sw-dark: #010a15;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--sw-bg); color: var(--sw-text);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    background-image: 
        linear-gradient(rgba(26, 11, 46, 0.9), rgba(26, 11, 46, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M0 100 L100 0 M0 0 L100 100" stroke="%23ff2a6d" stroke-width="0.5" opacity="0.2"/></svg>');
    background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }

/* Synthwave Grid Horizon */
.sw-horizon {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 40vh;
    background: 
        linear-gradient(transparent 0%, var(--sw-primary) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, var(--sw-primary) 2%, transparent 3%);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom center;
    z-index: -1; opacity: 0.3;
    animation: gridMove 2s linear infinite;
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }

.sw-container { max-width: 1000px; margin: 0 auto; padding: 20px;}

/* Header */
.sw-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-bottom: 2px solid var(--sw-secondary);
    margin-bottom: 40px; background: rgba(1, 10, 21, 0.8);
    box-shadow: 0 5px 15px rgba(5, 217, 232, 0.2);
    border-radius: 0 0 20px 20px; padding: 20px 30px;
}
.sw-brand {
    font-size: 28px; font-weight: bold; color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--sw-primary), 0 0 40px var(--sw-primary);
}
.sw-nav { display: flex; gap: 20px; }
.sw-nav a {
    font-weight: bold; color: var(--sw-secondary); text-transform: uppercase;
    transition: all 0.3s; padding: 5px 10px; border-radius: 5px;
}
.sw-nav a:hover, .sw-nav a.active {
    background: var(--sw-secondary); color: var(--sw-dark);
    box-shadow: 0 0 10px var(--sw-secondary);
}

/* Hero */
.sw-hero {
    text-align: center; padding: 60px 20px; background: rgba(1, 10, 21, 0.7);
    border: 1px solid var(--sw-primary); border-radius: 20px;
    box-shadow: inset 0 0 30px rgba(255, 42, 109, 0.3);
    margin-bottom: 60px; position: relative; overflow: hidden;
}
.sw-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(5, 217, 232, 0.1) 0%, transparent 60%);
}
.sw-hero h1 {
    font-size: 50px; margin-bottom: 20px; color: #fff;
    text-shadow: 2px 2px 0px var(--sw-primary), -2px -2px 0px var(--sw-secondary);
    letter-spacing: 2px;
}
.sw-hero p { font-size: 18px; margin-bottom: 40px; color: var(--sw-text);}
.btn-sw {
    display: inline-block; padding: 12px 30px; font-size: 16px; font-weight: bold;
    color: var(--sw-dark); background: var(--sw-accent); text-transform: uppercase;
    border-radius: 30px; box-shadow: 0 0 15px var(--sw-accent);
    transition: all 0.3s; margin: 0 10px;
}
.btn-sw:hover { transform: translateY(-3px); box-shadow: 0 5px 25px var(--sw-accent);}
.btn-sw-outline {
    display: inline-block; padding: 10px 28px; font-size: 16px; font-weight: bold;
    color: var(--sw-primary); background: transparent; text-transform: uppercase;
    border: 2px solid var(--sw-primary); border-radius: 30px;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5); transition: all 0.3s; margin: 0 10px;
}
.btn-sw-outline:hover { background: var(--sw-primary); color: #fff; box-shadow: 0 0 20px var(--sw-primary);}

/* Stats */
.sw-stats {
    display: flex; justify-content: space-around; margin-bottom: 60px;
    background: linear-gradient(90deg, transparent, rgba(5, 217, 232, 0.1), transparent);
    padding: 20px 0; border-top: 1px solid var(--sw-secondary); border-bottom: 1px solid var(--sw-secondary);
}
.ss-item { text-align: center; }
.ss-val { font-size: 36px; font-weight: bold; color: #fff; text-shadow: 0 0 10px var(--sw-secondary);}
.ss-lbl { font-size: 12px; text-transform: uppercase; color: var(--sw-secondary); letter-spacing: 1px;}

/* Grid */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px;}
.sg-card {
    background: rgba(1, 10, 21, 0.8); border: 1px solid var(--sw-primary);
    padding: 30px; border-radius: 15px; text-align: center;
    transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.sg-card:hover { transform: scale(1.05); border-color: var(--sw-accent); box-shadow: 0 10px 30px rgba(1, 255, 229, 0.2);}
.sg-icon { font-size: 40px; margin-bottom: 15px; text-shadow: 0 0 10px var(--sw-primary);}
.sg-card h3 { font-size: 20px; margin-bottom: 15px; color: var(--sw-secondary);}
.sg-card p { font-size: 14px; line-height: 1.6;}

/* Nodes */
.sw-nodes { margin-bottom: 60px; background: rgba(1, 10, 21, 0.8); padding: 30px; border-radius: 20px; border: 1px solid var(--sw-secondary);}
.sw-nodes h2 { text-align: center; margin-bottom: 30px; color: var(--sw-accent); text-shadow: 0 0 10px var(--sw-accent);}
.node-list { display: flex; flex-direction: column; gap: 10px;}
.node-item {
    display: flex; justify-content: space-between; padding: 15px 20px;
    background: rgba(255, 42, 109, 0.1); border-left: 4px solid var(--sw-primary);
    border-radius: 0 10px 10px 0;
}
.node-item span:first-child { font-weight: bold; color: #fff;}
.node-item span:last-child { color: var(--sw-secondary);}

/* FAQ */
.sw-faq { margin-bottom: 60px;}
.sw-faq h2 { text-align: center; margin-bottom: 30px; color: var(--sw-primary); text-shadow: 0 0 10px var(--sw-primary);}
.faq-box { background: rgba(1, 10, 21, 0.8); padding: 20px; border-radius: 10px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1);}
.faq-q { font-size: 16px; font-weight: bold; color: var(--sw-accent); margin-bottom: 10px;}
.faq-a { font-size: 14px; line-height: 1.6;}

footer { text-align: center; padding: 20px; color: var(--sw-secondary); font-size: 14px; border-top: 1px solid rgba(5, 217, 232, 0.3);}

@media (max-width: 768px) {
    .sw-header { flex-direction: column; gap: 15px; }
    .sw-hero h1 { font-size: 36px; }
    .sw-stats { flex-direction: column; gap: 20px; }
    .sw-grid { grid-template-columns: 1fr; }
    .btn-sw, .btn-sw-outline { display: block; margin: 10px auto; width: 80%;}
}