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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151931;
    --text-primary: #e0e6ff;
    --text-secondary: #8892b0;
    --accent-primary: #64ffda;
    --accent-secondary: #f06292;
    --border-color: #233554;
    --chirpstack-blue: #0099ff;
    --chirpstack-dark: #004a7c;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

p {
    margin-bottom: 15px;
}

/* Animated network background */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.network-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--chirpstack-blue) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent-primary) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 30s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.1), rgba(100, 255, 218, 0.1));
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--chirpstack-blue), transparent);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--chirpstack-blue), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--chirpstack-blue);
}

.intro-section {
    background: var(--bg-secondary);
    padding: 1.5rem 2.5em 1.5em 2.5em;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.intro-section h2 {
    color: var(--chirpstack-blue);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    margin: 0.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.resources-section {
    margin: 3rem 0;
}

.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.resource-count {
    background: rgba(0, 153, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--chirpstack-blue);
}

.resources-grid {
    display: grid;
    gap: 1rem;
}

.resource-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-item:hover {
    border-color: var(--chirpstack-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 153, 255, 0.2);
}

.resource-name {
    color: var(--accent-primary);
    font-weight: 500;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error-message {
    background: rgba(240, 98, 146, 0.1);
    border: 1px solid var(--accent-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--accent-secondary);
    text-align: center;
}

.integration-section {
    background: linear-gradient(135deg, rgba(0, 74, 124, 0.2), rgba(0, 153, 255, 0.1));
    padding: 2.5rem;
    border-radius: 8px;
    margin: 3rem 0;
    border: 1px solid var(--chirpstack-dark);
}

.code-example {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-left: 4px solid var(--chirpstack-blue);
}

.code-example code {
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
}

footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    header {
        padding: 2rem;
    }
}