/* Network Topology Visualization Style - Node Graph Layout */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Outfit:wght@300;500;800&display=swap');

:root {
    --topo-bg: #0f111a;
    --topo-line: #2a2f4c;
    --topo-node: #1a1e33;
    --topo-accent: #6d28d9; /* Deep Purple */
    --topo-glow: #8b5cf6; /* Bright Purple */
    --topo-text: #94a3b8;
    --topo-white: #f8fafc;
    --font-mono: 'Space Grotesk', monospace;
    --font-sans: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--topo-bg);
    color: var(--topo-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Topology Lines */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    z-index: -2;
}

h1, h2, h3, h4 { font-weight: 800; color: var(--topo-white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 50%; border: 2px solid var(--topo-line); }

/* The Topology Graph Container */
.topo-graph {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

/* Connecting Lines between main sections */
.topo-graph::after {
    content: '';
    position: absolute;
    top: 150px; bottom: 150px;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--topo-line), var(--topo-line), transparent);
    z-index: -1;
    transform: translateX(-50%);
}

/* Base Node Style */
.topo-node {
    background: var(--topo-node);
    border: 2px solid var(--topo-line);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.topo-node:hover {
    border-color: var(--topo-glow);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Node Connection Points */
.topo-node::before, .topo-node::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; background: var(--topo-bg); border: 2px solid var(--topo-glow); border-radius: 50%;
}
.topo-node::before { top: -7px; }
.topo-node::after { bottom: -7px; }

/* Buttons */
.btn-node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--topo-accent);
    color: var(--topo-white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid var(--topo-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.btn-node:hover { background: var(--topo-glow); box-shadow: 0 0 25px rgba(139, 92, 246, 0.6); }
.btn-outline { background: transparent; color: var(--topo-glow); }
.btn-outline:hover { background: rgba(139, 92, 246, 0.1); }

/* --- Specific Nodes --- */

/* 1. Central Hub (Nav) */
.hub-node {
    width: 100%;
    border-radius: 40px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hub-node::before { display: none; } /* No top connection for nav */
.brand { font-size: 1.5rem; font-weight: 800; color: var(--topo-white); display: flex; align-items: center; gap: 10px; }
.brand span { font-family: var(--font-mono); font-size: 0.7rem; background: var(--topo-accent); padding: 3px 8px; border-radius: 10px; }
.nav-links { display: flex; gap: 30px; font-family: var(--font-mono); font-size: 0.9rem; }
.nav-links a:hover { color: var(--topo-glow); }

/* 2. Primary Cluster (Hero) */
.primary-cluster {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 60px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, var(--topo-node) 70%);
}
.primary-cluster h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.primary-cluster p { font-size: 1.2rem; margin-bottom: 40px; }
.cluster-actions { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; }
.trust-mesh { display: flex; gap: 20px; justify-content: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--topo-glow); }

/* 3. Data Nodes (Metrics) */
.data-mesh {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}
.data-node {
    text-align: center;
    padding: 30px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.data-node .val { font-family: var(--font-mono); font-size: 2.5rem; color: var(--topo-white); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.data-node .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* 4. Feature Satellites */
.feature-mesh {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}
.feature-node {
    text-align: center;
    padding: 40px 30px;
}
.feature-node img { width: 120px; height: 120px; margin: 0 auto 20px; }
.feature-node h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--topo-glow); }
.feature-node p { font-size: 0.95rem; }

/* 5. Routing Map (Nodes) */
.routing-mesh {
    width: 100%;
    max-width: 900px;
    text-align: center;
}
.routing-mesh h2 { margin-bottom: 30px; font-size: 2rem; }
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.route-point {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--topo-line);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.route-point .ping { color: var(--topo-glow); }

/* 6. Feedback Loop (Reviews) */
.feedback-mesh {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}
.feedback-node {
    padding: 30px;
    border-radius: 20px 20px 20px 0; /* Chat bubble shape */
}
.fb-stars { color: var(--topo-glow); margin-bottom: 15px; letter-spacing: 2px; }
.fb-text { font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }
.fb-user { font-family: var(--font-mono); font-size: 0.85rem; color: var(--topo-white); }

/* 7. Allocation Grid (Pricing) */
.alloc-mesh {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}
.alloc-node {
    text-align: center;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
}
.alloc-node.pro {
    border-color: var(--topo-glow);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.05);
    z-index: 2;
}
.alloc-name { font-family: var(--font-mono); font-size: 1.2rem; margin-bottom: 20px; color: var(--topo-white); }
.alloc-price { font-size: 3rem; font-weight: 800; color: var(--topo-glow); margin-bottom: 30px; line-height: 1; }
.alloc-price span { font-size: 1rem; font-weight: 400; color: var(--topo-text); }
.alloc-specs { list-style: none; text-align: left; margin-bottom: 40px; flex: 1; }
.alloc-specs li { padding: 10px 0; border-bottom: 1px solid var(--topo-line); font-size: 0.95rem; }
.alloc-specs li::before { content: '→ '; color: var(--topo-glow); font-family: var(--font-mono); }

/* 8. Terminal Node (FAQ & Footer) */
.terminal-node {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 60px;
}
.terminal-node::after { display: none; } /* Last node, no bottom connection */
.faq-sec h2, .foot-sec h2 { font-size: 1.8rem; margin-bottom: 30px; }
.faq-item { margin-bottom: 25px; }
.faq-q { font-weight: 700; color: var(--topo-white); margin-bottom: 10px; font-size: 1.1rem; }
.faq-a { font-size: 0.95rem; }
.foot-links { display: flex; flex-direction: column; gap: 15px; font-family: var(--font-mono); }
.foot-links a:hover { color: var(--topo-glow); padding-left: 10px; }
.copyright { margin-top: 40px; font-size: 0.85rem; color: #666; }

/* Subpages */
.sub-cluster { padding: 80px 40px; text-align: center; max-width: 800px; }
.sub-cluster h1 { font-size: 3.5rem; margin-bottom: 20px; }
.dl-mesh { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; width: 100%; max-width: 1000px; }
.dl-node { text-align: center; padding: 40px; display: flex; flex-direction: column; align-items: center; }
.dl-icon { font-size: 3rem; margin-bottom: 20px; }
.dl-node h3 { margin-bottom: 10px; font-size: 1.5rem; }
.dl-node p { margin-bottom: 30px; font-size: 0.9rem; }
.help-mesh { display: grid; grid-template-columns: 250px 1fr; gap: 40px; width: 100%; }
.help-nav { display: flex; flex-direction: column; gap: 15px; }
.help-nav a { padding: 15px; border-radius: 15px; border: 1px solid var(--topo-line); font-family: var(--font-mono); }
.help-nav a.active, .help-nav a:hover { background: var(--topo-glow); color: var(--topo-white); border-color: var(--topo-glow); }
.help-content { padding: 40px; }
.help-section { margin-bottom: 50px; }
.help-section h3 { font-size: 1.8rem; color: var(--topo-glow); margin-bottom: 20px; }
.help-section h4 { font-size: 1.2rem; margin-top: 25px; margin-bottom: 15px; }
.help-section ul { padding-left: 20px; margin-bottom: 15px; }

/* Responsive */
@media (max-width: 1200px) {
    .data-mesh { grid-template-columns: repeat(2, 1fr); }
    .feature-mesh, .feedback-mesh, .alloc-mesh { grid-template-columns: repeat(2, 1fr); }
    .alloc-node.pro { transform: none; }
    .terminal-node { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .topo-graph::after { display: none; } /* Hide center line on mobile */
    .topo-node::before, .topo-node::after { display: none; }
    .hub-node { flex-direction: column; gap: 20px; border-radius: 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .dl-mesh { grid-template-columns: 1fr; }
    .help-mesh { grid-template-columns: 1fr; }
    .help-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .primary-cluster h1 { font-size: 2.5rem; }
    .cluster-actions { flex-direction: column; }
    .trust-mesh { flex-direction: column; align-items: center; gap: 10px; }
    .feature-mesh, .feedback-mesh, .alloc-mesh { grid-template-columns: 1fr; }
    .data-node { border-radius: 20px; aspect-ratio: auto; padding: 20px; }
}
