/* Starry Galaxy Immersive Style - Central Axis Timeline Layout */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Noto+Sans+SC:wght@300;400;700;900&display=swap');

:root {
    --space-deep: #050510;
    --space-mid: #0b0b1a;
    --star-white: #ffffff;
    --nebula-blue: #4d00ff;
    --nebula-purple: #9d00ff;
    --nebula-cyan: #00e5ff;
    --glass-bg: rgba(15, 15, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #8b9bb4;
    --font-en: 'Space Grotesk', sans-serif;
    --font-cn: 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--space-deep);
    color: var(--text-main);
    font-family: var(--font-cn);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 1. Galaxy Parallax Background */
.galaxy-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, var(--space-mid) 0%, var(--space-deep) 100%);
    overflow: hidden;
}
.stars {
    position: absolute;
    width: 100%; height: 100%;
    background: transparent;
}
.stars::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    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(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starDrift 100s linear infinite;
    opacity: 0.5;
}
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
}
.nebula-1 { width: 60vw; height: 60vw; background: var(--nebula-blue); top: -20%; left: -20%; animation: pulse 15s infinite alternate; }
.nebula-2 { width: 50vw; height: 50vw; background: var(--nebula-purple); bottom: -10%; right: -10%; animation: pulse 20s infinite alternate-reverse; }

@keyframes starDrift { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.2); opacity: 0.6; } }

h1, h2, h3, h4, .font-en { font-family: var(--font-en); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 15px; }

/* 2. Floating Radial Menu (Bottom Right) */
.radial-menu-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}
.menu-toggle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-blue));
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    z-index: 1001;
    position: relative;
}
.menu-toggle:hover { transform: scale(1.1); box-shadow: 0 0 40px rgba(0, 229, 255, 0.6); }
.radial-nav {
    position: absolute;
    bottom: 30px; right: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 150px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}
/* Simulate hover state for demo purposes */
.radial-menu-container:hover .radial-nav {
    opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}
.radial-nav a {
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    text-align: right;
    transition: 0.3s;
}
.radial-nav a:hover, .radial-nav a.active { background: rgba(255,255,255,0.1); color: var(--nebula-cyan); }
.nav-brand-text { font-family: var(--font-en); font-weight: 700; color: #fff; text-align: right; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); margin-bottom: 10px; }

/* 3. Central Axis Timeline Layout */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 100px 20px;
}
/* The glowing central line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--nebula-cyan), var(--nebula-purple), transparent);
    box-shadow: 0 0 15px var(--nebula-cyan);
    z-index: 0;
}

.timeline-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
}
.timeline-node:nth-child(even) { flex-direction: row-reverse; }

.node-content {
    width: 45%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    transition: 0.4s;
}
.node-content:hover { border-color: var(--nebula-cyan); box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15); transform: translateY(-5px); }

/* The dot on the timeline */
.node-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    background: var(--space-deep);
    border: 3px solid var(--nebula-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--nebula-cyan);
}
.timeline-node:nth-child(odd) .node-point { right: -calc(5% / 0.45 + 10px); } /* Approx center */
.timeline-node:nth-child(even) .node-point { left: -calc(5% / 0.45 + 10px); }

/* Fix node point positioning precisely */
.timeline-node:nth-child(odd) .node-content::after {
    content: ''; position: absolute; top: 50%; right: -11.11%; transform: translate(50%, -50%);
    width: 20px; height: 20px; background: var(--space-deep); border: 3px solid var(--nebula-cyan); border-radius: 50%; box-shadow: 0 0 20px var(--nebula-cyan);
}
.timeline-node:nth-child(even) .node-content::after {
    content: ''; position: absolute; top: 50%; left: -11.11%; transform: translate(-50%, -50%);
    width: 20px; height: 20px; background: var(--space-deep); border: 3px solid var(--nebula-cyan); border-radius: 50%; box-shadow: 0 0 20px var(--nebula-cyan);
}
.node-point { display: none; } /* Hide manual point, use pseudo element */

.node-visual { width: 45%; }
.node-visual img { filter: drop-shadow(0 0 20px rgba(77, 0, 255, 0.3)); }

/* 4. Hero Section (Top of Timeline) */
.hero-node {
    flex-direction: column !important;
    text-align: center;
    margin-bottom: 150px;
    padding-top: 50px;
}
.hero-node .node-content { width: 80%; max-width: 800px; }
.hero-node .node-content::after { display: none; } /* No side dot for hero */
.hero-node::before {
    content: ''; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 30px; background: var(--nebula-cyan); border-radius: 50%; box-shadow: 0 0 40px var(--nebula-cyan); z-index: 2;
}

.hero-node h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.hero-node h1 span { color: transparent; -webkit-text-stroke: 1px var(--nebula-cyan); }
.hero-node p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; }
.btn-galaxy {
    background: linear-gradient(90deg, var(--nebula-blue), var(--nebula-purple));
    color: #fff; padding: 15px 40px; border-radius: 30px; font-weight: 700; font-family: var(--font-en); letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.3); border: none; cursor: pointer;
}
.btn-galaxy:hover { box-shadow: 0 10px 40px rgba(157, 0, 255, 0.6); transform: translateY(-2px); }
.btn-hollow {
    background: transparent; color: var(--text-main); border: 1px solid var(--glass-border);
    padding: 15px 40px; border-radius: 30px; font-weight: 700;
}
.btn-hollow:hover { border-color: var(--nebula-cyan); background: rgba(0, 229, 255, 0.1); }
.trust-bar { display: flex; justify-content: center; gap: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* 5. Telemetry Data (Stats) */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.telemetry-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}
.telemetry-item h3 { font-size: 2.5rem; color: var(--nebula-cyan); line-height: 1; margin-bottom: 5px; }
.telemetry-item p { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* 6. Constellation Features */
.feature-title { font-size: 2rem; margin-bottom: 15px; color: #fff; }
.feature-desc { color: var(--text-muted); margin-bottom: 20px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 20px; display: inline-block; background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 7. Waypoints (Nodes) */
.waypoints-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.waypoint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid var(--nebula-blue);
    transition: 0.3s;
}
.waypoint:hover { background: rgba(255,255,255,0.1); border-left-color: var(--nebula-cyan); padding-left: 25px; }
.wp-city { font-weight: 700; font-size: 1.1rem; }
.wp-ping { font-family: var(--font-en); color: var(--nebula-cyan); font-size: 0.9rem; }

/* 8. Transmissions (Reviews) */
.transmission-grid { display: flex; flex-direction: column; gap: 20px; }
.transmission {
    background: rgba(0,0,0,0.4);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}
.t-stars { color: var(--nebula-cyan); margin-bottom: 10px; font-size: 1rem; letter-spacing: 2px; }
.t-text { font-size: 1rem; color: var(--text-main); margin-bottom: 15px; font-style: italic; }
.t-author { font-family: var(--font-en); font-weight: 700; color: var(--text-muted); font-size: 0.9rem; }

/* 9. Hyperdrive Tiers (Pricing) */
.pricing-node { flex-direction: column !important; }
.pricing-node .node-content { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; background: transparent; border: none; box-shadow: none; padding: 0; }
.pricing-node .node-content::after { display: none; }

.tier-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s;
}
.tier-card.pro {
    border-color: var(--nebula-purple);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(157,0,255,0.1), rgba(0,0,0,0.5));
}
.t-name { font-family: var(--font-en); font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.tier-card.pro .t-name { color: var(--nebula-cyan); }
.t-price { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; margin-bottom: 30px; line-height: 1; }
.t-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.t-features { list-style: none; text-align: left; margin-bottom: 40px; }
.t-features li { padding: 10px 0; border-bottom: 1px solid var(--glass-border); font-size: 0.95rem; color: var(--text-muted); }
.t-features li::before { content: '>'; color: var(--nebula-cyan); margin-right: 10px; font-family: var(--font-en); }

/* 10. FAQ & Footer */
.faq-node { flex-direction: column !important; }
.faq-node .node-content { width: 80%; max-width: 800px; }
.faq-node .node-content::after { display: none; }
.faq-item { margin-bottom: 25px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.faq-q { font-size: 1.1rem; font-weight: 700; color: var(--nebula-cyan); margin-bottom: 10px; display: flex; gap: 10px; }
.faq-q::before { content: '[?]'; color: var(--text-muted); font-family: var(--font-en); }
.faq-a { color: var(--text-muted); font-size: 0.95rem; padding-left: 35px; }

.galaxy-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 40px;
    background: rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.foot-brand { font-family: var(--font-en); font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.foot-desc { color: var(--text-muted); font-size: 0.95rem; }
.foot-col h4 { color: var(--text-main); margin-bottom: 20px; font-family: var(--font-en); letter-spacing: 1px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--text-muted); }
.foot-col a:hover { color: var(--nebula-cyan); }
.foot-copy { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--glass-border); }

/* Subpages */
.sub-hero { text-align: center; padding: 100px 20px 60px; position: relative; z-index: 10; }
.sub-hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-family: var(--font-en); text-transform: uppercase; }
.sub-hero p { font-size: 1.2rem; color: var(--text-muted); }

.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; padding-bottom: 100px; position: relative; z-index: 10; }
.dl-card { background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; text-align: center; transition: 0.3s; }
.dl-card:hover { border-color: var(--nebula-cyan); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1); }
.dl-icon { font-size: 3.5rem; margin-bottom: 20px; }
.dl-card h3 { font-size: 1.8rem; margin-bottom: 15px; }
.dl-card p { color: var(--text-muted); margin-bottom: 30px; }

.help-layout { display: grid; grid-template-columns: 250px 1fr; gap: 50px; max-width: 1200px; margin: 0 auto; padding-bottom: 100px; position: relative; z-index: 10; }
.help-nav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 40px; }
.help-nav a { padding: 12px 20px; border-radius: 10px; color: var(--text-muted); border: 1px solid transparent; }
.help-nav a.active, .help-nav a:hover { background: rgba(255,255,255,0.05); border-color: var(--glass-border); color: var(--nebula-cyan); }
.help-doc { background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; margin-bottom: 30px; }
.help-doc h3 { font-size: 1.8rem; color: var(--nebula-purple); margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.help-doc p, .help-doc li { color: var(--text-muted); margin-bottom: 15px; }
.help-doc ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .timeline-container::before { left: 30px; }
    .timeline-node, .timeline-node:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 70px; margin-bottom: 60px; }
    .node-content, .node-visual, .hero-node .node-content, .faq-node .node-content { width: 100%; max-width: 100%; }
    .timeline-node:nth-child(odd) .node-content::after, .timeline-node:nth-child(even) .node-content::after { left: -40px; right: auto; transform: translate(-50%, -50%); }
    .pricing-node .node-content { grid-template-columns: 1fr; gap: 20px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .help-layout { grid-template-columns: 1fr; }
    .help-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .hero-node h1 { font-size: 3rem; }
    .telemetry-grid { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; padding: 0 20px 100px; }
    .foot-grid { grid-template-columns: 1fr; text-align: center; }
    .trust-bar { flex-direction: column; gap: 10px; align-items: center; }
}
