:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --coral: #f97316;
    --coral-hover: #ea580c;
    --mist: #f1f5f9;
    --mist-dark: #cbd5e1;
    --green: #10b981;
    --danger: #ef4444;
    
    --font-head: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--navy);
    color: var(--mist);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: absolute;
    top: -20vh;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -20vh;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.mono {
    font-family: var(--font-mono);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: #ffffff;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1.5rem;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.15);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-icon:hover { transform: translateY(-2px); }
.bg-fb { background: #1877F2; }
.bg-x { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

/* Glass Panel */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
#hero-screen {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}
.hero-content {
    flex: 1;
    max-width: 500px;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.125rem;
    color: var(--mist-dark);
    margin-bottom: 2.5rem;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    #hero-screen {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Quiz Screen */
.quiz-card {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.progress-container {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--coral);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 999px;
}

.step-counter {
    font-size: 0.875rem;
    color: var(--mist-dark);
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    min-height: 100px;
}

/* Likert Scale */
.likert-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.likert-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--mist-dark);
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.choices-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.choice-btn {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--coral);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .quiz-card { padding: 2rem 1.5rem; }
    .question-text { font-size: 1.5rem; min-height: 80px; }
    
    .likert-labels { display: none; }
    .choices-grid { flex-direction: column; }
    .choice-btn {
        padding: 1rem;
        font-family: var(--font-body);
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    .choice-btn::before {
        content: attr(data-label);
    }
}

/* Lead Gate */
.lead-card {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.lock-icon {
    width: 64px;
    height: 64px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.lead-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.lead-card p {
    color: var(--mist-dark);
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--mist-dark);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.form-error-msg {
    color: var(--danger);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Results Screen */
.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #fff, var(--mist-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    padding: 2rem;
}

.result-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.result-card p {
    color: var(--mist-dark);
}

.feature-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
    border-color: rgba(249, 115, 22, 0.3);
}
.feature-card.alt {
    border-color: rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .result-grid { grid-template-columns: 1fr; }
    .result-title { font-size: 2.25rem; }
}

/* Share Panel */
.share-panel {
    padding: 2rem;
    text-align: center;
}
.share-panel h3 { margin-bottom: 0.5rem; }
.share-panel p { color: var(--mist-dark); margin-bottom: 1.5rem; max-width: 600px; margin-inline: auto; }

.share-tools {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    max-width: 400px;
    width: 100%;
}
.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--mist);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
.input-group .btn {
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1.25rem;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Globals */
.error-banner {
    background: var(--danger);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 3rem;
}
