:root {
    --acg-bg: #0b0f19;
    --acg-text: #e2e8f0;
    --acg-primary: #a78bfa;
    --acg-secondary: #38bdf8;
    --acg-accent: #f472b6;
    --acg-surface: rgba(30, 41, 59, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--acg-bg); color: var(--acg-text);
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(167, 139, 250, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.15), transparent 25%);
    position: relative;
    overflow-x: hidden;
}
/* Starry Background */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    z-index: -1; opacity: 0.5; animation: twinkle 5s infinite linear;
}
@keyframes twinkle { 0% { opacity: 0.3; } 50% { opacity: 0.7; } 100% { opacity: 0.3; } }

a { text-decoration: none; color: inherit; }

.acg-container { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; z-index: 1;}

/* Header */
.acg-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; background: var(--acg-surface);
    backdrop-filter: blur(10px); border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 60px;
}
.acg-brand {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(to right, var(--acg-primary), var(--acg-secondary));
    -webkit-background-clip: text; color: transparent;
    letter-spacing: 1px;
}
.acg-nav { display: flex; gap: 30px; }
.acg-nav a {
    font-weight: 600; color: #94a3b8; transition: all 0.3s;
    position: relative; padding-bottom: 5px;
}
.acg-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--acg-primary); transition: all 0.3s; transform: translateX(-50%);
}
.acg-nav a:hover, .acg-nav a.active { color: #fff; }
.acg-nav a:hover::after, .acg-nav a.active::after { width: 100%; }

/* Hero */
.acg-hero {
    text-align: center; padding: 80px 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(56, 189, 248, 0.1));
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin-bottom: 80px;
    position: relative; overflow: hidden;
}
.acg-hero h1 {
    font-size: 56px; font-weight: 900; margin-bottom: 20px;
    color: #fff; text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}
.acg-hero p { font-size: 20px; color: #cbd5e1; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto;}
.btn-acg {
    display: inline-block; padding: 15px 40px; font-size: 18px; font-weight: bold;
    color: #fff; background: linear-gradient(45deg, var(--acg-primary), var(--acg-secondary));
    border-radius: 30px; box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
    transition: all 0.3s; margin: 0 10px;
}
.btn-acg:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(56, 189, 248, 0.4);}
.btn-acg-outline {
    display: inline-block; padding: 13px 38px; font-size: 18px; font-weight: bold;
    color: var(--acg-text); background: transparent;
    border: 2px solid rgba(255,255,255,0.2); border-radius: 30px;
    transition: all 0.3s; margin: 0 10px;
}
.btn-acg-outline:hover { border-color: var(--acg-primary); color: #fff;}

/* Stats */
.acg-stats {
    display: flex; justify-content: space-around; margin-bottom: 80px;
    background: var(--acg-surface); padding: 30px; border-radius: 20px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.05);
}
.as-item { text-align: center; }
.as-val { font-size: 40px; font-weight: 800; color: var(--acg-secondary); margin-bottom: 5px;}
.as-lbl { font-size: 14px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px;}

/* Grid */
.acg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px;}
.ag-card {
    background: var(--acg-surface); padding: 40px 30px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05); text-align: center;
    transition: all 0.3s; backdrop-filter: blur(5px);
}
.ag-card:hover { transform: translateY(-10px); border-color: var(--acg-primary); box-shadow: 0 15px 30px rgba(0,0,0,0.4);}
.ag-icon { font-size: 48px; margin-bottom: 20px; display: inline-block; background: linear-gradient(45deg, var(--acg-primary), var(--acg-secondary)); -webkit-background-clip: text; color: transparent;}
.ag-card h3 { font-size: 22px; margin-bottom: 15px; color: #fff;}
.ag-card p { font-size: 15px; color: #94a3b8;}

/* Nodes */
.acg-nodes { margin-bottom: 80px; text-align: center;}
.acg-nodes h2 { font-size: 32px; margin-bottom: 40px; color: #fff;}
.node-map { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;}
.node-pill {
    padding: 12px 25px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px; font-weight: 600; color: var(--acg-secondary);
    transition: all 0.3s;
}
.node-pill:hover { background: rgba(56, 189, 248, 0.1); border-color: var(--acg-secondary); transform: scale(1.05);}

/* FAQ */
.acg-faq { margin-bottom: 80px;}
.acg-faq h2 { font-size: 32px; margin-bottom: 40px; text-align: center; color: #fff;}
.faq-box {
    background: var(--acg-surface); padding: 25px; border-radius: 15px;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05);
}
.faq-q { font-size: 18px; font-weight: bold; color: var(--acg-primary); margin-bottom: 10px;}
.faq-a { font-size: 15px; color: #cbd5e1;}

footer { text-align: center; padding: 30px; color: #64748b; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.05);}

@media (max-width: 900px) {
    .acg-header { flex-direction: column; gap: 20px; padding: 20px; }
    .acg-hero h1 { font-size: 40px; }
    .acg-stats { flex-direction: column; gap: 30px; }
    .acg-grid { grid-template-columns: 1fr; }
    .btn-acg, .btn-acg-outline { display: block; margin: 10px auto; width: 80%;}
}