:root {
    --font-main: 'Outfit', sans-serif;
    
    /* Colors */
    --color-bg: #0f172a;
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --color-card-border: rgba(255, 255, 255, 0.1);
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    
    --color-d: #f43f5e; /* Rose 500 */
    --color-i: #fbbf24; /* Amber 400 */
    --color-s: #10b981; /* Emerald 500 */
    --color-c: #3b82f6; /* Blue 500 */
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-d: linear-gradient(135deg, #f43f5e, #e11d48);
    
    /* Spacing */
    --radius-lg: 24px;
    --radius-md: 12px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Dynamic Background */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    filter: blur(40px);
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    perspective: 1000px;
}

/* Card Styling */
.card {
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.align-center {
    text-align: center;
}

/* DISC Icons */
.disc-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.disc-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.disc-circle.d { background: var(--color-d); }
.disc-circle.i { background: var(--color-i); }
.disc-circle.s { background: var(--color-s); }
.disc-circle.c { background: var(--color-c); }

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-card-border);
    color: var(--color-text-main);
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 24px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

/* Quiz UI */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    text-align: left;
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Results */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 32px 0;
}

.big-reveal {
    font-size: 3rem;
    margin: 10px 0;
}

.trait-description {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
}
