* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(139, 92, 246, 0.2);
    --card-border: rgba(139, 92, 246, 0.15);
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-blue: rgba(59, 130, 246, 0.4);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Ccircle fill='%23ffffff' cx='400' cy='400' r='1'/%3E%3Ccircle fill='%23ffffff' cx='100' cy='100' r='0.5'/%3E%3Ccircle fill='%23ffffff' cx='200' cy='300' r='0.8'/%3E%3Ccircle fill='%23ffffff' cx='600' cy='200' r='0.6'/%3E%3Ccircle fill='%23ffffff' cx='700' cy='500' r='0.7'/%3E%3Ccircle fill='%23ffffff' cx='300' cy='600' r='0.5'/%3E%3Ccircle fill='%23ffffff' cx='500' cy='700' r='0.8'/%3E%3Ccircle fill='%23ffffff' cx='150' cy='450' r='0.6'/%3E%3Ccircle fill='%23ffffff' cx='650' cy='350' r='0.5'/%3E%3Ccircle fill='%23ffffff' cx='450' cy='150' r='0.7'/%3E%3Ccircle fill='%23ffffff' cx='50' cy='700' r='0.6'/%3E%3Ccircle fill='%23ffffff' cx='750' cy='100' r='0.5'/%3E%3Ccircle fill='%23ffffff' cx='250' cy='50' r='0.8'/%3E%3Ccircle fill='%23ffffff' cx='550' cy='550' r='0.6'/%3E%3Ccircle fill='%23ffffff' cx='350' cy='250' r='0.7'/%3E%3C/svg%3E") repeat;
    animation: starsMove 100s linear infinite;
    opacity: 0.6;
}

.stars2 {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Ccircle fill='%238b5cf6' cx='200' cy='200' r='1.2' opacity='0.8'/%3E%3Ccircle fill='%233b82f6' cx='600' cy='400' r='1' opacity='0.6'/%3E%3Ccircle fill='%238b5cf6' cx='400' cy='600' r='1.5' opacity='0.7'/%3E%3Ccircle fill='%2306b6d4' cx='100' cy='500' r='1' opacity='0.5'/%3E%3Ccircle fill='%233b82f6' cx='700' cy='200' r='1.3' opacity='0.6'/%3E%3C/svg%3E") repeat;
    animation: starsMove2 150s linear infinite;
    opacity: 0.4;
}

.stars3 {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Ccircle fill='%23ffffff' cx='300' cy='300' r='2' opacity='0.3'/%3E%3Ccircle fill='%23ffffff' cx='500' cy='100' r='1.8' opacity='0.2'/%3E%3Ccircle fill='%23ffffff' cx='100' cy='600' r='2.2' opacity='0.25'/%3E%3C/svg%3E") repeat;
    animation: starsMove3 200s linear infinite;
    opacity: 0.3;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-800px); }
}

@keyframes starsMove2 {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-800px) translateX(-200px); }
}

@keyframes starsMove3 {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-800px) translateX(200px); }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: float2 10s ease-in-out infinite;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-20px, 20px) scale(1.2); opacity: 0.8; }
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-section {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
}

.hero-content {
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cards-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    width: 100%;
}

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 
        0 20px 40px -15px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.card:hover .card-glow {
    opacity: 1;
}

.card-placeholder {
    cursor: default;
    opacity: 0.6;
}

.card-placeholder:hover {
    transform: none;
    border-color: var(--card-border);
    box-shadow: none;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--accent-purple);
}

.card-header {
    margin-bottom: 0.75rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1.25rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-purple);
    transition: gap 0.3s ease;
}

.card:hover .card-link {
    gap: 0.75rem;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.card-status.online {
    color: #22c55e;
}

.card-status.online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.card-status.coming-soon {
    color: var(--text-muted);
}

.card-status.coming-soon .status-dot {
    background: var(--text-muted);
}

/* ========================================
   Health Monitor Orb
   ======================================== */

.health-orb {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
}

/* Collapsed sphere */
.health-orb__sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.15),
        0 0 60px rgba(139, 92, 246, 0.05),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
    animation: healthOrbBreathe 3s ease-in-out infinite;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes healthOrbBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* SVG rings */
.health-orb__rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.health-orb__ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
}

.health-orb__ring {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.5s ease;
}

.health-orb__ring--cpu {
    stroke: #22c55e;
}

.health-orb__ring--mem {
    stroke: #22c55e;
}

.health-orb__ring--disk {
    stroke: #22c55e;
}

/* Center label */
.health-orb__center {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    transition: color 0.4s ease;
}

/* Expanded panel */
.health-orb__panel {
    position: absolute;
    top: 0;
    right: 0;
    transform: scale(0.8);
    transform-origin: top right;
    width: 300px;
    min-height: 220px;
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 16px 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: expand */
.health-orb:hover .health-orb__sphere {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

.health-orb:hover .health-orb__panel {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Panel header */
.health-orb__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.health-orb__panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.health-orb__panel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.health-orb__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: healthDotPulse 2s ease-in-out infinite;
}

@keyframes healthDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Progress bars */
.health-orb__panel-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.health-orb__bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-orb__bar-label {
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    width: 32px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.health-orb__bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.health-orb__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: #22c55e;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.5s ease;
}

.health-orb__bar-value {
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
}

/* Detail rows */
.health-orb__panel-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.health-orb__detail-row {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.health-orb__detail-row span:nth-child(1) {
    width: 32px;
    flex-shrink: 0;
    font-weight: 600;
}

.health-orb__detail-row span:nth-child(2),
.health-orb__detail-row span:nth-child(3),
.health-orb__detail-row span:nth-child(4) {
    color: #a1a1aa;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* Services row */
.health-orb__panel-services {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 20px;
}

.health-orb__service-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.health-orb__service-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.health-orb__service-dot--stopped {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

/* Offline state */
.health-orb--offline .health-orb__sphere {
    background: rgba(30, 30, 35, 0.6);
    border-color: rgba(100, 100, 110, 0.3);
    box-shadow: 0 0 10px rgba(100, 100, 110, 0.1);
    animation: none;
}

.health-orb--offline .health-orb__ring {
    stroke: #52525b;
}

.health-orb--offline .health-orb__center {
    color: #71717a;
    text-shadow: none;
}

.health-orb--offline .health-orb__panel-status {
    color: #ef4444;
}

.health-orb--offline .health-orb__status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
    animation: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 1;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .hero-section {
        flex: none;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .cards-section {
        padding: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Health orb responsive: tablet */
    .health-orb__sphere {
        width: 60px;
        height: 60px;
    }

    .health-orb__center {
        font-size: 11px;
    }

    .health-orb__panel {
        width: 260px;
        min-height: 200px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* Health orb: hide on very small screens */
    .health-orb {
        display: none;
    }
}
