:root {
    /* Color Palette */
    --bg-base: #0a0a0d;
    --bg-surface: #0f0f14;
    --accent-amber: #ffb703;
    --accent-amber-glow: rgba(255, 183, 3, 0.4);
    --accent-cyan: #219ebc;
    --accent-cyan-glow: rgba(33, 158, 188, 0.3);
    
    --text-primary: #f8f9fa; /* Warm off-white */
    --text-muted: #adb5bd; /* Muted blue-gray */
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(15, 15, 20, 0.65);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing & Radii */
    --radius-pill: 9999px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

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

/* ==============================
   BACKGROUND TEXTURES & EFFECTS
   ============================== */
.bg-hex-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    opacity: 0.03;
    /* Hexagon pattern via SVG data URI */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='69.28203230275509' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 17.32050807568877l-20 11.547005383792516L0 17.32050807568877V-5.773502691896258l20-11.547005383792516 20 11.547005383792516V17.32050807568877zm0 46.18802153826388l-20 11.547005383792516-20-11.547005383792516V40.41451884637512l20-11.547005383792516 20 11.547005383792516v23.094010767585034zM20 51.96152422706631l-20 11.547005383792516-20-11.547005383792516V28.867513459478796l20-11.547005383792516 20 11.547005383792516v23.094010767585034z' fill='%23ffffff' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 60px;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 158, 188, 0.05) 0%, rgba(10, 10, 13, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.ambient-glow::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.03) 0%, rgba(10, 10, 13, 0) 70%);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ==============================
   TYPOGRAPHY
   ============================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h1 em {
    font-style: italic;
    color: var(--accent-amber);
}

h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.muted {
    color: var(--text-muted);
}

/* ==============================
   UI ELEMENTS & GLASSMORPHISM
   ============================== */
.app-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
button {
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-amber);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--accent-amber-glow);
}

.btn-primary:hover {
    background: rgba(255, 183, 3, 0.1);
    box-shadow: 0 0 25px var(--accent-amber-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: rgba(33, 158, 188, 0.05);
}

.arrow {
    transition: transform 0.2s ease;
}

.btn-primary:hover .arrow, .btn-secondary:hover .arrow {
    transform: translateX(4px);
}

.w-full {
    width: 100%;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px var(--accent-cyan-glow);
}

/* ==============================
   VIEW SECTIONS LOGIC
   ============================== */
.view-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    width: 100%;
}

.view-section.active {
    display: block;
}

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

/* ==============================
   QUIZ SPECIFICS
   ============================== */
.progress-wrapper {
    margin-bottom: 2.5rem;
}

.progress-bar-bg {
    height: 4px;
    background: var(--border-glass);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-amber);
    width: 16%; /* Starts at 1/6 */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-amber-glow);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.question-slide {
    display: none;
}

.question-slide.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn, .option-btn-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.option-btn-row {
    text-align: left;
}

.option-btn:hover, .option-btn-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
}

/* ==============================
   RESULTS PIVOT
   ============================== */
.result-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.verdict-card {
    border-color: rgba(255, 183, 3, 0.3);
    padding: 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 183, 3, 0.05) 0%, rgba(15, 15, 20, 0.6) 100%);
}

.verdict-title {
    color: var(--accent-amber);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.verdict-text {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.video-placeholder {
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-md);
    flex: 1;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px dashed var(--border-glass);
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid white;
}

.doc-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(33, 158, 188, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-text {
    color: var(--accent-amber);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

.path-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-size: 1.25rem;
}

.dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.path-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.path-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 183, 3, 0.1);
    color: var(--accent-amber);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.path-label.alt {
    background: rgba(33, 158, 188, 0.1);
    color: var(--accent-cyan);
}

.path-card h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.path-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ==============================
   FOOTER
   ============================== */
.app-footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    z-index: 10;
}

.footer-links {
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.disclaimer {
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

.icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .result-grid, .dual-cta-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .glass-panel {
        padding: 2rem 1.5rem;
    }
}

/* ==============================
   PROMO BADGE
   ============================== */
.promo-badge {
    display: inline-block;
    align-self: flex-start;
    margin: 0.4rem 0 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.45);
    color: var(--accent-amber);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.promo-badge strong {
    letter-spacing: 0.08em;
}

/* ==============================
   CONSENT BLOCK (TCPA)
   ============================== */
.form-consent {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.consent-label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    min-width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
}

.consent-label a {
    color: var(--accent-cyan);
    text-decoration: underline;
}
