:root {
    --bg-dark: #121212;
    --surface-dark: #181818;
    --surface-darker: #141414;
    --surface-light: #222222;
    --navy: #003865;
    --cyan: #009FDF;
    --cyan-glow: rgba(0, 159, 223, 0.4);
    --light-blue: #71C5E8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --shadow-light: rgba(255, 255, 255, 0.03);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    max-height: 900px;
    position: relative;
    background: var(--bg-dark);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 481px) {
    .app-container {
        height: 90vh;
        border-radius: 40px;
        box-shadow: 
            -10px -10px 30px var(--shadow-light), 
            20px 20px 40px var(--shadow-dark),
            inset 1px 1px 2px rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.02);
    }
}

.app-header {
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    gap: 8px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.header-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-badge i {
    color: var(--cyan);
    font-size: 0.5rem;
}

.screen {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 0 24px 32px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.screen.exit {
    display: flex;
    opacity: 0;
    transform: translateY(-10px);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.centered-content {
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #1a1a1a;
    color: var(--cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 
        inset 2px 2px 5px rgba(0,0,0,0.5), 
        inset -1px -1px 2px rgba(255,255,255,0.05),
        2px 2px 5px rgba(0,0,0,0.5);
}

.hook-content {
    margin-top: -10vh;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 32px;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.actions {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    justify-content: center;
}

/* NEUMORPHIC SWITCH / SLIDER */
.switch-container {
    width: 100%;
    max-width: 320px;
    height: 80px;
    border-radius: 40px;
    background: var(--bg-dark);
    box-shadow: 
        -5px -5px 15px var(--shadow-light), 
        10px 10px 20px var(--shadow-dark);
    padding: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.switch-track {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: var(--surface-darker);
    box-shadow: 
        inset 5px 5px 10px rgba(0,0,0,0.8),
        inset -2px -2px 5px rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.switch-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 64px; /* Matches thumb width initially */
    background: linear-gradient(90deg, var(--navy), var(--cyan));
    border-radius: 32px;
    opacity: 0.1;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.switch-container.active .switch-fill {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.switch-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface-dark);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        -2px -2px 5px rgba(255,255,255,0.05),
        5px 5px 10px rgba(0,0,0,0.6),
        inset 1px 1px 2px rgba(255,255,255,0.1);
    color: var(--cyan);
    font-size: 1.5rem;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.switch-container.active .switch-thumb {
    left: calc(100% - 64px);
    color: #fff;
    box-shadow: 
        -2px -2px 5px rgba(255,255,255,0.2),
        0 0 15px #fff,
        inset 1px 1px 2px rgba(255,255,255,0.5);
}

.switch-text {
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    padding-left: 30px;
    transition: color 0.3s ease;
}

.switch-container.active .switch-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    padding-left: 0;
    padding-right: 30px;
}



/* Common Buttons */
.btn {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--bg-dark);
    color: var(--cyan);
    box-shadow: 
        -3px -3px 8px var(--shadow-light), 
        5px 5px 15px var(--shadow-dark);
    border: 1px solid rgba(0, 159, 223, 0.2);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 150%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.primary-btn:hover, .primary-btn:active {
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 
        -2px -2px 5px var(--shadow-light), 
        0 0 20px var(--cyan-glow);
}

.primary-btn:hover::before, .primary-btn:active::before {
    opacity: 1;
}

.primary-btn span, .primary-btn i {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Question Screens */
.progress-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-btn {
    background: var(--surface-dark);
    border: none;
    border-radius: 20px;
    padding: 16px;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        -4px -4px 10px var(--shadow-light),
        6px 6px 15px var(--shadow-dark);
    position: relative;
}

.option-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.02);
    pointer-events: none;
}

.option-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--surface-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.8),
        inset -1px -1px 3px rgba(255,255,255,0.05);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-icon-wrapper i {
    font-size: 1.3rem;
    color: var(--cyan);
    transition: var(--transition);
    text-shadow: 0 0 5px var(--cyan-glow);
}

.option-btn:hover {
    transform: translateY(-2px);
}

.option-btn:active, .option-btn.selected {
    background: var(--surface-darker);
    box-shadow: 
        inset 5px 5px 10px rgba(0,0,0,0.6),
        inset -2px -2px 5px rgba(255,255,255,0.02);
}

.option-btn:active .option-icon-wrapper, .option-btn.selected .option-icon-wrapper {
    background: var(--bg-dark);
    box-shadow: 
        -2px -2px 5px rgba(255,255,255,0.05),
        2px 2px 5px rgba(0,0,0,0.5),
        inset 1px 1px 2px rgba(255,255,255,0.1);
}

.option-btn:active .option-icon-wrapper i, .option-btn.selected .option-icon-wrapper i {
    color: #fff;
    text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
}

/* Grid Layout for Questions */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-option-btn {
    aspect-ratio: 1 / 1;
    background: var(--surface-dark);
    border: none;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 
        -4px -4px 10px var(--shadow-light),
        6px 6px 15px var(--shadow-dark);
    position: relative;
    gap: 12px;
}

.grid-option-btn .option-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0;
}

.grid-option-btn .option-icon-wrapper i {
    font-size: 1.8rem;
}

.grid-option-btn span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.grid-option-btn:active, .grid-option-btn.selected {
    background: var(--surface-darker);
    box-shadow: 
        inset 5px 5px 10px rgba(0,0,0,0.6),
        inset -2px -2px 5px rgba(255,255,255,0.02);
}

.grid-option-btn:active .option-icon-wrapper, .grid-option-btn.selected .option-icon-wrapper {
    background: var(--bg-dark);
    box-shadow: 
        -2px -2px 5px rgba(255,255,255,0.05),
        2px 2px 5px rgba(0,0,0,0.5);
}

/* Neumorphic Containers */
.neumorphic-box {
    background: var(--surface-dark);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        -4px -4px 10px var(--shadow-light),
        8px 8px 20px var(--shadow-dark);
    position: relative;
}

/* Loading & Lead Screen */
.neumorphic-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
    box-shadow: 
        -5px -5px 10px var(--shadow-light),
        5px 5px 15px var(--shadow-dark);
    margin-bottom: 24px;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--cyan);
    border-bottom-color: var(--cyan);
    opacity: 0.8;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 10px var(--cyan-glow);
}

.center-icon {
    font-size: 1.8rem;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

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

.hidden { display: none !important; }

#lead-form-container {
    animation: fadeIn 0.5s ease forwards;
}

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

#lead-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
}

.neumorphic-input input {
    width: 100%;
    background: var(--surface-darker);
    border: none;
    border-radius: 16px;
    padding: 18px 18px 18px 50px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.6),
        inset -2px -2px 4px rgba(255,255,255,0.02);
    transition: var(--transition);
}

.neumorphic-input input:focus {
    outline: none;
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.8),
        inset -2px -2px 4px rgba(255,255,255,0.02),
        0 0 0 1px var(--cyan);
}

/* Result Screen */
.result-content {
    justify-content: flex-start;
    padding-top: 20px;
}

.pre-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#archetype-title {
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 32px;
    text-shadow: 0 0 15px var(--cyan-glow);
}

.potential-bar-container {
    margin-bottom: 24px;
    padding: 20px;
}

.potential-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

#potential-value {
    color: var(--cyan);
    font-weight: 800;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.bar-track {
    width: 100%;
    height: 12px;
    background: var(--surface-darker);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--cyan), #fff);
    width: 0%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px var(--cyan);
}

.insight-box {
    margin-bottom: 32px;
    border-left: 4px solid var(--cyan);
    padding-left: 24px;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--cyan);
    opacity: 0.3;
    margin-bottom: 12px;
}

.insight-box p {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

.reframe-box {
    text-align: center;
    margin-bottom: 32px;
}

.reframe-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.reframe-title.highlight {
    color: white;
    font-size: 1.6rem;
}

.glow-text {
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* Event Pass Design */
.exclusive-pass {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 159, 223, 0.3);
    transform: scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.6),
        0 0 30px var(--cyan-glow);
}

.pass-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--surface-darker) 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 159, 223, 0.3);
}

.event-badge {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px var(--cyan);
}

.value-tag {
    background: var(--cyan);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; text-shadow: 0 0 10px var(--cyan); }
    100% { opacity: 1; }
}

.exclusive-pass h3 {
    padding: 24px 24px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.event-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 20px 0;
}

.event-pitch {
    padding: 0 24px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.event-benefits {
    list-style: none;
    padding: 0 24px;
    margin-bottom: 24px;
}

.event-benefits li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}

.event-benefits li i {
    color: var(--cyan);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px var(--cyan-glow);
}

.event-benefits li strong {
    color: var(--text-main);
    display: inline-block;
    margin-right: 4px;
}

.event-details-pill {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: rgba(0,0,0,0.3);
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--light-blue);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.event-details-pill i {
    margin-right: 6px;
}

.result-actions {
    padding-top: 0;
}

.pulse-btn {
    box-shadow: 
        -3px -3px 8px var(--shadow-light), 
        5px 5px 15px var(--shadow-dark),
        0 0 0 0 rgba(0, 159, 223, 0.4);
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { box-shadow: -3px -3px 8px var(--shadow-light), 5px 5px 15px var(--shadow-dark), 0 0 0 0 rgba(0, 159, 223, 0.4); }
    70% { box-shadow: -3px -3px 8px var(--shadow-light), 5px 5px 15px var(--shadow-dark), 0 0 0 15px rgba(0, 159, 223, 0); }
    100% { box-shadow: -3px -3px 8px var(--shadow-light), 5px 5px 15px var(--shadow-dark), 0 0 0 0 rgba(0, 159, 223, 0); }
}

.success-icon {
    font-size: 5rem;
    color: var(--cyan);
    margin-bottom: 24px;
}

.outline-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        -2px -2px 6px var(--shadow-light), 
        4px 4px 10px var(--shadow-dark);
}

.outline-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 159, 223, 0.05);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.calendar-section {
    width: 100%;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.email-notice {
    background: rgba(0, 159, 223, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 159, 223, 0.1);
}

.email-notice i {
    color: var(--cyan);
    font-size: 1.2rem;
}

.email-notice p {
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: left;
    margin: 0;
}
