:root {
    --bg-primary: #07070a;
    --bg-secondary: #0c0c12;
    --bg-card: rgba(255,255,255,0.02);
    --bg-card-hover: rgba(255,255,255,0.04);
    --bg-glass: rgba(12,12,18,0.8);
    
    --accent: #00d4ff;
    --accent-soft: rgba(0,212,255,0.12);
    --accent-glow: rgba(0,212,255,0.15);
    --accent-border: rgba(0,212,255,0.2);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.4);
    --text-subtle: rgba(255,255,255,0.25);
    
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.03);
    --border-focus: rgba(0,212,255,0.4);
    
    --success: #00e892;
    --success-soft: rgba(0,232,146,0.1);
}

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

html { 
    height: -webkit-fill-available; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === AMBIENT BACKGROUND === */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.03;
    filter: blur(100px);
}

.ambient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.025;
    filter: blur(80px);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* === CONTAINER === */
.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 32px 100px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* === INTRO SCREEN === */
.intro {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeUp 1s ease;
}

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

.intro-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 40px;
    position: relative;
}

.intro-icon::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(20px);
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

.intro-icon svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.intro-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 7vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.intro-title span {
    background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.intro-feature svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    opacity: 0.8;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 18px 40px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 60px var(--accent-glow);
}

.btn-start:hover::before {
    opacity: 1;
}

.btn-start span, .btn-start svg {
    position: relative;
    z-index: 1;
}

.btn-start svg {
    transition: transform 0.3s ease;
}

.btn-start:hover svg {
    transform: translateX(4px);
}

.intro-trust {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.intro-trust-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.intro-trust-number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-trust-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* === QUIZ SCREEN === */
.quiz {
    display: none;
    animation: fadeUp 0.6s ease;
}

.quiz.active { display: block; }
.hidden { display: none !important; }

/* Progress Bar */
.progress-container {
    margin-bottom: 60px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-step {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.progress-step span {
    color: var(--accent);
}

.progress-percent {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle);
}

.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #00ff88 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeUp 0.5s ease;
}

.step-content.active { display: block; }

.step-header {
    margin-bottom: 48px;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Questions */
.questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.question:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.question-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.option:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-subtle);
}

.option.selected {
    background: var(--accent-soft);
    border-color: var(--accent-border);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.option.selected .option-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.option.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.option-text {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.option.selected .option-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Text Input */
.input-wrapper {
    position: relative;
}

.text-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.text-input:hover {
    border-color: var(--text-subtle);
}

.text-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(0,212,255,0.1);
}

.text-input::placeholder {
    color: var(--text-subtle);
}

/* Navigation */
.quiz-nav {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.btn-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-back:hover:not(:disabled) {
    border-color: var(--text-subtle);
    color: var(--text-secondary);
}

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

.btn-next {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-next:hover:not(:disabled) {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: var(--text-subtle);
    color: var(--bg-secondary);
    cursor: not-allowed;
}

.btn-next svg {
    transition: transform 0.3s ease;
}

.btn-next:hover:not(:disabled) svg {
    transform: translateX(3px);
}

/* Loading */
.loading {
    display: none;
    min-height: 60vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loading.active {
    display: flex;
    animation: fadeUp 0.5s ease;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 32px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading p {
    color: var(--text-muted);
    font-size: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container { padding: 40px 24px 80px; }
    
    .intro { min-height: calc(100vh - 80px); }
    .intro-icon { width: 64px; height: 64px; margin-bottom: 32px; }
    .intro-title { font-size: 32px; }
    .intro-subtitle { font-size: 15px; margin-bottom: 40px; }
    .intro-features { 
        flex-direction: column; 
        gap: 12px; 
        margin-bottom: 40px;
    }
    .intro-feature { justify-content: center; }
    .btn-start { width: 100%; max-width: 320px; padding: 18px 32px; }
    .intro-trust { margin-top: 48px; padding-top: 32px; }
    .intro-trust-number { font-size: 28px; }
    
    .progress-container { margin-bottom: 48px; }
    .step-header { margin-bottom: 40px; }
    .step-title { font-size: 28px; }
    
    .questions { gap: 16px; }
    .question { padding: 18px 20px; border-radius: 14px; }
    .question-label { font-size: 15px; margin-bottom: 20px; }
    
    .options { gap: 8px; }
    .option { padding: 16px 18px; border-radius: 12px; gap: 14px; }
    .option-text { font-size: 14px; }
    
    .text-input { padding: 18px 20px; font-size: 16px; }
    
    .quiz-nav { 
        flex-direction: column; 
        gap: 12px;
        margin-top: 40px;
        padding-top: 24px;
    }
    .btn-nav { padding: 16px 24px; }
    .btn-back { order: 2; }
    .btn-next { order: 1; }
}

@media (max-width: 480px) {
    .container { padding: 32px 20px 70px; }
    
    .intro-icon { width: 56px; height: 56px; margin-bottom: 28px; }
    .intro-badge { font-size: 10px; padding: 8px 16px; margin-bottom: 24px; }
    .intro-title { font-size: 28px; }
    .intro-subtitle { font-size: 14px; line-height: 1.6; }
    .intro-features { gap: 10px; margin-bottom: 36px; }
    .intro-feature { font-size: 13px; gap: 8px; }
    .intro-feature svg { width: 16px; height: 16px; }
    .btn-start { padding: 16px 28px; font-size: 14px; }
    
    .progress-container { margin-bottom: 40px; }
    .progress-step { font-size: 12px; }
    
    .step-header { margin-bottom: 32px; }
    .step-label { font-size: 11px; margin-bottom: 10px; }
    .step-title { font-size: 24px; }
    .step-desc { font-size: 14px; }
    
    .questions { gap: 14px; }
    .question { padding: 16px 18px; border-radius: 12px; }
    .question-label { font-size: 14px; margin-bottom: 18px; }
    
    .options { gap: 8px; }
    .option { padding: 15px 16px; border-radius: 11px; gap: 12px; }
    .option-radio { width: 18px; height: 18px; }
    .option-text { font-size: 14px; }
    
    .text-input { padding: 16px 18px; border-radius: 11px; }
    
    .quiz-nav { margin-top: 32px; padding-top: 20px; gap: 10px; }
    .btn-nav { padding: 15px 22px; font-size: 14px; }
}

@media (max-width: 375px) {
    .container { padding: 28px 18px 60px; }
    
    .intro-icon { width: 50px; height: 50px; margin-bottom: 24px; }
    .intro-badge { font-size: 9px; padding: 7px 14px; }
    .intro-title { font-size: 26px; }
    .intro-subtitle { font-size: 13px; }
    .btn-start { padding: 15px 24px; font-size: 13px; }
    .intro-trust-number { font-size: 24px; }
    
    .step-title { font-size: 22px; }
    
    .question { padding: 16px; }
    .question-label { font-size: 13px; margin-bottom: 16px; }
    
    .option { padding: 14px 14px; }
    .option-radio { width: 17px; height: 17px; }
    .option-text { font-size: 13px; }
    
    .text-input { padding: 15px 16px; }
    
    .btn-nav { padding: 14px 20px; font-size: 13px; }
}

@media (max-width: 320px) {
    .container { padding: 24px 16px 50px; }
    .intro-title { font-size: 24px; }
    .step-title { font-size: 20px; }
    .question { padding: 14px; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .option:active {
        transform: scale(0.98);
        background: var(--bg-card-hover);
    }
    .btn-start:active { transform: scale(0.98); }
    .btn-next:active:not(:disabled) { transform: scale(0.98); }
    .btn-back:active:not(:disabled) { transform: scale(0.98); }
}

/* Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .intro { min-height: auto; padding: 40px 0; }
    .intro-icon { margin-bottom: 24px; }
    .intro-trust { margin-top: 32px; padding-top: 24px; }
}

/* Large screens */
@media (min-width: 769px) {
    .quiz-nav { flex-direction: row; }
    .btn-nav { flex: 0 1 auto; min-width: 160px; }
    .btn-back { order: 1; }
    .btn-next { order: 2; }
}

@media (min-width: 1200px) {
    .container { max-width: 760px; }
    .intro-title { font-size: 56px; }
    .intro-subtitle { font-size: 17px; max-width: 520px; }
    .step-title { font-size: 40px; }
    .question { padding: 24px 28px; }
    .question-label { font-size: 17px; }
}

/* === INTL-TEL-INPUT === */
.iti { width: 100%; }
.iti__tel-input {
    height: 56px;
    padding: 0 20px 0 130px !important;
    line-height: 56px;
}
.iti__country-container {
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 0 12px;
}
.iti__selected-dial-code {
    margin-left: 8px;
}
.iti__dropdown-content { background: var(--bg-secondary) !important; }
.iti__country:hover { background: rgba(0,212,255,0.1) !important; }
.iti__search-input {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}
.iti__country-name, .iti__dial-code { color: var(--text-primary); }

/* === EMAIL SUGGESTION === */
.email-suggestion {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent);
}
.email-suggestion strong {
    cursor: pointer;
    text-decoration: underline;
}

/* === SAVED NOTIFICATION === */
.saved-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-soft);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}
.saved-notification.show { transform: translateX(0); }
.saved-notification svg { width: 18px; height: 18px; }

/* === HONEYPOT === */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* === HIDDEN FIELDS === */
.hidden-fields { display: none; }
