body {
    margin: 0;
    background: #0a0b14;
    color: #e8eeff;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Deep space background with subtle stars */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(120, 140, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(160, 110, 255, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 40% 80%, rgba(80, 210, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 65%, rgba(200, 130, 255, 0.04) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Enhanced orbs - more subtle and premium */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.orb-1 {
    width: 380px;
    height: 380px;
    top: -80px;
    left: -100px;
    background: radial-gradient(circle, rgba(130, 160, 255, 0.25), transparent 70%);
}

.orb-2 {
    width: 460px;
    height: 460px;
    top: 35%;
    right: -140px;
    background: radial-gradient(circle, rgba(170, 120, 255, 0.22), transparent 65%);
}

.orb-3 {
    width: 320px;
    height: 320px;
    bottom: 15%;
    left: 18%;
    background: radial-gradient(circle, rgba(90, 220, 255, 0.18), transparent 70%);
}

main.container {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

/* Premium Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(120, 140, 255, 0.12);
    padding: 1.1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.logo-symbol {
    font-size: 28px;
    line-height: 1;
    color: #8b9eff;
    filter: drop-shadow(0 0 8px rgba(139, 158, 255, 0.6));
}

.logo-main {
    font-size: 21px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #e0e7ff, #c4d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-secondary {
    font-size: 21px;
    letter-spacing: 0.04em;
    color: #8899cc;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    color: #a8b8e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #e0e7ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #7b8fff, #b38cff);
    border-radius: 2px;
}

/* Premium Glass Cards */
.glass {
    background: rgba(15, 20, 42, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(140, 160, 255, 0.18);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px -6px rgba(0, 0, 0, 0.4),
        0 2px 8px -2px rgba(140, 170, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(130, 160, 255, 0.06), rgba(180, 130, 255, 0.04));
    z-index: -1;
    border-radius: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b0c0ff;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: rgba(75, 95, 180, 0.15);
    border: 1px solid rgba(140, 170, 255, 0.25);
    margin-bottom: 1.25rem;
}

.hero-badge::before {
    content: '◆';
    font-size: 10px;
    opacity: 0.6;
}

.hero-subtitle {
    color: #c5d4ff;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 1.15rem;
    font-weight: 420;
}

.step-card,
.result-shell {
    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-card:hover,
.result-shell:hover {
    transform: translateY(-4px);
    border-color: rgba(160, 185, 255, 0.35);
    box-shadow: 0 25px 60px -10px rgba(15, 25, 65, 0.5);
}

.form-select,
.form-select:focus {
    background-color: rgba(13, 18, 38, 0.85);
    color: #f0f6ff;
    border: 1px solid rgba(130, 155, 255, 0.3);
    box-shadow: none;
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    font-size: 1.02rem;
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.15);
    outline: none;
}

.form-label {
    color: #b8c9ff;
    font-weight: 500;
    margin-bottom: 0.65rem;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
}

.btn-neon {
    background: linear-gradient(135deg, #6e85ff 0%, #9b7cff 48%, #c38aff 100%);
    color: white;
    font-weight: 600;
    letter-spacing: 0.015em;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px -8px rgba(110, 130, 255, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: 0.6s;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(120, 145, 255, 0.55);
}

.btn-neon:hover::before {
    left: 180%;
}

.hidden {
    display: none !important;
}

.result-content {
    color: #e0e9ff;
    line-height: 1.85;
    font-size: 1.06rem;
}

#result-title {
    color: #f8faff;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1.4rem !important;
    background: linear-gradient(90deg, #e0e7ff, #b8c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-content p {
    margin-bottom: 0.85rem;
}

.result-content ul {
    padding-left: 1rem;
}

.result-content li {
    margin-bottom: 0.5rem;
}

.result-content strong {
    color: #ffffff;
}

.result-content h3,
.result-content h4 {
    margin-top: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.result-content.relationship-view h3 {
    font-size: 1.28rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(45, 55, 110, 0.65);
    border: 1px solid rgba(140, 165, 255, 0.25);
    color: #e8f0ff;
    margin-top: 1.8rem;
}

.result-content.relationship-view h4 {
    font-size: 1.15rem;
    color: #b8c8ff;
    margin-top: 2rem;
    font-weight: 600;
}

.result-content.relationship-view .relation-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.4rem;
}

.result-content.relationship-view .relation-item {
    margin-bottom: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    background: rgba(18, 24, 48, 0.75);
    border: 1px solid rgba(135, 160, 255, 0.2);
    transition: border-color 0.2s ease;
}

.result-content.relationship-view .relation-item:hover {
    border-color: rgba(160, 185, 255, 0.4);
}

.result-content.relationship-view .relation-label {
    font-weight: 700;
    font-size: 1rem;
    color: #e0e9ff;
    margin-bottom: 0.4rem;
    display: block;
}

.result-content.relationship-view .relation-value {
    color: #d0dbff;
    line-height: 1.7;
    font-size: 1.02rem;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .nav {
        gap: 1.4rem;
        font-size: 0.92rem;
    }
    
    .hero-card {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    main.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
    }
    
    .result-content {
        font-size: 1rem;
    }
    
    #result-title {
        font-size: 1.45rem;
    }
}

/* Better long content readability */
.result-content h3, .result-content h4 {
    position: relative;
}

.result-content h3::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #8b9eff;
    border-radius: 50%;
}

/* Section titles */
.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e0e9ff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, #8b9eff, #b38cff);
    border-radius: 3px;
}
