/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0055a4;
    --secondary: #00a3e0;
    --dark: #0a1628;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --up: #10b981;
    --down: #ef4444;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

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

/* Header / Navigation */
header {
    background: var(--dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.asn {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active {
    border-bottom: 2px solid var(--secondary);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2a4a 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.3);
}

/* Network Ring Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-ring {
    position: relative;
    width: 260px;
    height: 260px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: spin 20s linear infinite;
}

.ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 163, 224, 0.2);
    animation-duration: 30s;
}

.ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-color: rgba(0, 163, 224, 0.15);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-color: rgba(0, 163, 224, 0.1);
    animation-duration: 15s;
}

.asn-big {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 40px rgba(0, 163, 224, 0.3);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overview Section */
.overview {
    padding: 60px 0;
    background: var(--light);
}

.overview h2,
.peering-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.network-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Prefixe */
.prefixes h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.prefix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.prefix-item {
    background: var(--white);
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.prefix-item .prefix {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.status.up {
    color: var(--up);
    font-size: 0.85rem;
}

.status.up i {
    font-size: 0.5rem;
    margin-right: 4px;
}

/* Peering Preview */
.peering-preview {
    padding: 60px 0;
    background: var(--white);
}

.peer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.peer-card {
    background: var(--light);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.peer-card .asn {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.peer-card .name {
    font-size: 0.9rem;
    color: var(--gray);
}

.peer-card .type {
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.peer-card .type.peer {
    background: #dbeafe;
    color: #1d4ed8;
}

.peer-card .type.upstream {
    background: #fef3c7;
    color: #b45309;
}

.btn-secondary {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .network-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .prefix-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .network-ring {
        width: 180px;
        height: 180px;
    }
    .asn-big {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .network-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 1.4rem;
    }
}