:root {
    --bg-dark: #040814;
    --bg-darker: #02040a;
    --panel-dark: #0c1528;
    --panel-border: rgba(43, 170, 226, 0.1);
    --text-main: #f0f4fa;
    --text-muted: #8fa4c4;
    --cyan: #2baae2;
    --purple: #792981;
    --green: #38d39f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Grid */
.landing-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    background-position: center top;
}
.landing-bg::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(43, 170, 226, 0.15) 0%, transparent 60%);
    filter: blur(60px);
}
.landing-bg::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(121, 41, 129, 0.1) 0%, transparent 60%);
    filter: blur(60px);
}

a { text-decoration: none; color: inherit; }

/* Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 30px rgba(42, 169, 225, 0.3);
}
.logo-icon.small {
    width: 32px; height: 32px; font-size: 14px; border-radius: 8px;
}
.logo-text strong { display: block; font-size: 16px; letter-spacing: 0.05em; }
.logo-text span { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.status-indicator {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}
.portal-status-text {
    font-size: 12px; color: var(--text-muted); margin-right: 20px;
}
.btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-login:hover { background: rgba(255,255,255,0.1); }

/* Main Content */
.landing-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45vh;
    padding-bottom: 20px;
    padding-top: 20px;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}
.hero-title {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(90deg, #2baae2, #a3f1ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(90deg, #792981, #df73d1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0px;
    max-width: 500px;
}



/* Visual Orbit System */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 500px;
}

.orbit-system {
    position: relative;
    width: 600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-center {
    width: 150px; height: 150px;
    background: rgba(9, 23, 48, 0.8);
    border: 2px solid rgba(42, 169, 225, 0.6);
    border-radius: 36px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 0 40px rgba(42, 169, 225, 0.4), inset 0 0 20px rgba(42, 169, 225, 0.2);
    z-index: 10;
    backdrop-filter: blur(10px);
}
.orbit-center strong { font-size: 38px; font-weight: 900; color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.6); }
.orbit-center span { font-size: 13px; color: var(--cyan); letter-spacing: 0.2em; margin-top: 5px; }

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform-origin: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: rotateRing 30s linear infinite;
}

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counterRotate {
    0% { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.ring-1 {
    width: 450px; height: 180px;
    border-color: rgba(42, 169, 225, 0.3);
    animation-duration: 20s;
}
.ring-2 {
    width: 350px; height: 450px;
    border-color: rgba(144, 28, 128, 0.3);
    animation-duration: 25s;
    animation-direction: reverse;
}
.ring-3 {
    width: 600px; height: 350px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    animation-duration: 40s;
}
.ring-4 {
    width: 750px; height: 600px;
    border: 1px dotted rgba(42, 169, 225, 0.1);
    animation-duration: 60s;
    animation-direction: reverse;
}
.ring-5 {
    width: 850px; height: 250px;
    border: 1px solid rgba(144, 28, 128, 0.05);
    animation-duration: 75s;
}

/* Dots on rings to simulate the glowing nodes from the image */
.orbit-ring::before, .orbit-ring::after {
    content: ''; position: absolute;
    width: 4px; height: 4px; background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--cyan);
}
.ring-1::before { top: 0; left: 50%; }
.ring-1::after { bottom: 0; left: 20%; box-shadow: 0 0 10px 2px var(--purple); }
.ring-2::before { top: 20%; left: 0; }
.ring-2::after { bottom: 30%; right: -2px; }
.ring-4::before { top: 50%; left: 0; box-shadow: 0 0 10px 2px #fff; width: 3px; height: 3px;}
.ring-5::before { bottom: 0; right: 20%; box-shadow: 0 0 15px 3px var(--cyan); }

.orbit-node {
    position: absolute;
    width: 90px; height: 90px;
    background: linear-gradient(135deg, rgba(20, 35, 65, 0.9), rgba(10, 15, 30, 0.9));
    border: 1px solid rgba(42, 169, 225, 0.4);
    border-radius: 18px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(42, 169, 225, 0.2);
    color: #fff;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(5px);
}
.orbit-node i {
    color: var(--text-main); margin-bottom: 5px;
}
.orbit-node span {
    font-size: 11px; color: var(--text-muted);
}

/* Position nodes on the rings and counter-rotate them so they stay upright */
.ring-1 .node-1 { top: 0%; left: 50%; animation: counterRotate 20s linear infinite; }
.ring-2 .node-2 { top: 50%; left: 100%; animation: rotateRing 25s linear infinite; }
.ring-3 .node-3 { top: 85%; left: 15%; animation: counterRotate 40s linear infinite; }
.ring-3 .node-4 { top: 15%; left: 85%; animation: counterRotate 40s linear infinite; }

/* Systems Section */
.systems-section {
    padding: 20px 0 60px;
}
.systems-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.systems-header h2 { font-size: 32px; margin: 10px 0; }
.systems-header p { color: var(--text-muted); margin: 0; }
.systems-count-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.sys-card {
    background: linear-gradient(145deg, #0e1a30, #080f1e);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.sys-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(42,169,225,0.05) 0%, transparent 50%);
    opacity: 0; transition: 0.5s; pointer-events: none;
}
.sys-card:hover {
    transform: translateY(-5px);
    border-color: rgba(42, 169, 225, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(42,169,225,0.1);
}
.sys-card:hover::before { opacity: 1; }
.sys-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px;
}
.sys-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(42, 169, 225, 0.08);
    color: var(--cyan);
    display: grid; place-items: center;
    border: 1px solid rgba(42, 169, 225, 0.15);
    font-size: 24px; font-weight: 800;
}
.sys-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.sys-icon img[src*="assets/icons/"] {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.sys-arrow {
    color: var(--text-muted);
    font-size: 18px;
    transition: 0.2s;
    background: rgba(255,255,255,0.05);
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
}
.sys-card:hover .sys-arrow { 
    color: #fff; background: var(--cyan);
    transform: translate(3px, -3px) rotate(15deg); 
}

.sys-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.sys-card h3 { font-size: 22px; margin: 0 0 10px 0; }
.sys-card p {
    color: var(--text-muted);
    font-size: 14px; line-height: 1.5;
    margin: 0 0 24px 0;
    flex: 1;
}

.sys-tags {
    display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.sys-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #aebfd6;
}

.sys-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sys-category { font-size: 12px; color: var(--text-muted); }
.sys-link { font-size: 13px; font-weight: 600; color: #fff; transition: 0.2s; }
.sys-card:hover .sys-link { color: var(--cyan); }

/* Footer Hero */
.footer-hero {
    text-align: center;
    padding: 100px 0;
}
.footer-hero h2 {
    font-size: 48px; line-height: 1.2; margin: 20px 0;
}
.gradient-line {
    width: 100px; height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    margin: 30px auto;
    border-radius: 3px;
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-darker);
    padding: 30px 60px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-muted);
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-version { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; gap: 60px; padding-top: 40px; }
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-visual { display: none; /* hide on smaller screens for simplicity */ }
    .landing-header { padding: 20px 30px; }
    .landing-main { padding: 20px 30px; }
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 8, 20, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: linear-gradient(145deg, #0c1528, #080f1e);
    border: 1px solid rgba(42, 169, 225, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 90%; max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(42,169,225,0.1);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 28px; cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover { color: #fff; transform: scale(1.1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
