@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');
*{margin:0;padding:0;box-sizing:border-box}

:root { --navy: #1e3a5f; --orange: #FF9800; --text: #ffffff; }

body{
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:linear-gradient(160deg,#0a1628 0%,#122a4a 50%,#0d1f3c 100%);
  color:#fff;min-height:100vh;line-height:1.5;
}
.container{max-width:500px;margin:0 auto;padding:1.5rem 1.2rem}
.landing-container{max-width:600px}
.screen{display:none;animation:fadeIn .3s ease}.screen.active{display:block}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* ===== LANDING ===== */
#landing-page.active{display:flex;align-items:center;justify-content:center;min-height:100vh}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255,152,0,0.4); }
    50% { box-shadow: 0 0 30px rgba(255,152,0,0.6), 0 0 60px rgba(255,152,0,0.2); }
}

.landing-badge {
    display: block; text-align: center; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: #FF9800;
    margin-bottom: 10px; animation: fadeSlideUp 0.5s ease both;
}
.landing-doi { display:block; text-align:center; margin-bottom:16px; }
.landing-doi a { color:rgba(255,255,255,0.3); font-size:0.72rem; text-decoration:none; letter-spacing:0.5px; }
.landing-doi a:hover { color:rgba(255,255,255,0.5); }

.warmup-title{text-align:center;font-size:1.8rem;font-weight:800;color:#fff;line-height:1.1;margin-bottom:1.2rem;text-shadow:0 0 60px rgba(255,255,255,.06),0 2px 4px rgba(0,0,0,.3);animation:fadeSlideUp .5s ease .1s both}

/* Watch clock */
.watch-clock {
    width: 180px; height: 180px; margin: 0 auto 1.2rem;
    animation: fadeSlideUp 0.6s ease 0.2s both;
}
.clock-svg { width: 100%; height: 100%; }

.watch-seg { opacity: 0.15; }
.seg-a { fill: #FF9800; }
.seg-b { fill: #4fc3f7; }

@keyframes segPulse { 0%,100%{opacity:0.15} 50%{opacity:0.25} }
.watch-seg { animation: segPulse 4s ease infinite; }
.seg-b { animation-delay: 2s; }

.landing-hook {
    text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem; line-height: 1.5;
    animation: fadeSlideUp 0.5s ease 0.3s both;
}

/* CTA */
.cta-button {
    display: block; width: 100%; max-width: 320px; margin: 0 auto 1rem;
    padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; font-family: inherit;
    color: #060d1a; background: #FF9800; border: none; border-radius: 12px;
    cursor: pointer; animation: ctaGlow 3s ease infinite;
    transition: transform 0.2s, background 0.2s;
}
.cta-button:hover { background: #ffad33; transform: scale(1.02); }
.cta-icon { margin-right: 4px; }

.landing-features {
    text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4);
    animation: fadeSlideUp 0.5s ease 0.5s both;
}
.feature-pill { white-space: nowrap; }
.feature-pill-dot { margin: 0 6px; }

/* ===== QUIZ ===== */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* Scenario card */
.scenario-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem;
    animation: slideUp 0.3s ease;
}
.scenario-header {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #FF9800; margin-bottom: 0.6rem;
}
.scenario-details {
    font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6;
}
.detail-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.detail-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.detail-text { flex: 1; }

.scenario-question {
    text-align: center; font-size: 1rem; font-weight: 700;
    color: rgba(255,255,255,0.9); margin-bottom: 1rem;
}

/* Options */
.opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
.opts button {
    width: 100%; padding: 0.9rem 1rem; font-size: 0.9rem; font-weight: 600;
    font-family: inherit; color: #fff; text-align: left; line-height: 1.4;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.opts button:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.opts button.correct {
    background: rgba(76,175,80,0.2); border-color: #4caf50; color: #4caf50;
}
.opts button.wrong {
    background: rgba(255,68,68,0.15); border-color: rgba(255,68,68,0.4); color: rgba(255,68,68,0.8);
}
.opts button.reveal {
    background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.3); color: rgba(76,175,80,0.7);
}
.opts button:disabled { cursor: default; }

/* Feedback */
.feedback-box {
    background: rgba(255,152,0,0.08); border: 1px solid rgba(255,152,0,0.2);
    border-radius: 12px; padding: 1rem; margin-bottom: 1rem;
    font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.5;
    display: none;
}
.feedback-box.visible { display: block; animation: slideUp 0.3s ease; }
.feedback-box .fb-title {
    font-weight: 700; color: #FF9800; margin-bottom: 0.3rem; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.next-btn {
    display: block; width: 100%; max-width: 280px; margin: 0.8rem auto 0;
    padding: 0.8rem; font-size: 0.95rem; font-weight: 700; font-family: inherit;
    color: #060d1a; background: #FF9800; border: none; border-radius: 10px;
    cursor: pointer; transition: all 0.2s;
}
.next-btn:hover { background: #ffad33; }

/* ===== GAMIFICATION ===== */
.streak { display:block;text-align:center;font-size:.85rem;font-weight:700;color:#4caf50;letter-spacing:1px;opacity:0;transition:all .3s ease;margin-bottom:4px }
.streak.visible { opacity:1 }
.streak.hot { color:#ff4444;animation:streakPulse .4s ease }
@keyframes streakPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.reaction-time { text-align:center;font-size:.8rem;font-weight:600;letter-spacing:.5px;opacity:0;transition:opacity .3s;margin-bottom:8px }
.reaction-time.visible { opacity:1 }
.reaction-time.fast { color:#4caf50 }
.reaction-time.medium { color:#FF9800 }
.reaction-time.slow { color:#ff4444 }

.particle{position:fixed;width:6px;height:6px;border-radius:50%;background:#4caf50;pointer-events:none;z-index:999;animation:particleFly .6s ease-out forwards}
@keyframes particleFly{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(0)}}

/* ===== RESULTS ===== */
.results-title { text-align:center;font-size:1.6rem;font-weight:800;margin-bottom:1.5rem }

.score-display {
    text-align:center;padding:1.5rem 1rem;margin-bottom:1.5rem;border-radius:16px;
}
.score-display.score-green { background:rgba(76,175,80,0.1) }
.score-display.score-orange { background:rgba(255,152,0,0.1) }
.score-display.score-red { background:rgba(255,68,68,0.1) }

.score-title { text-align:center;font-size:1.1rem;font-weight:700;margin-bottom:0.5rem }
.score-number { font-size:3.5rem;font-weight:800;line-height:1;margin-bottom:0.5rem;text-align:center }
.score-message { font-size:0.9rem;color:rgba(255,255,255,0.6);text-align:center;margin-bottom:0.8rem }
.score-bar { height:8px;background:rgba(255,255,255,0.08);border-radius:4px;overflow:hidden }
.score-bar-fill { height:100%;border-radius:4px;transition:width 1s ease;background:#FF9800 }
.score-green .score-bar-fill { background:#4caf50 }

/* Email Gate */
.email-gate {
    background:rgba(255,152,0,0.08);border:1px solid rgba(255,152,0,0.25);
    border-radius:16px;padding:1.5rem;text-align:center;margin-bottom:1rem;
}
.email-gate h3 { font-size:1.2rem;margin-bottom:0.3rem }
.email-gate .gate-subtext { font-size:0.9rem;color:rgba(255,255,255,0.6);margin-bottom:1rem }

#newsletter-form, #second-chance-form {
    display:flex;flex-direction:column;gap:0.7rem;max-width:320px;margin:0 auto;
}
#newsletter-form input[type="email"], #second-chance-form input[type="email"] {
    padding:0.85rem;font-size:1rem;border:1px solid rgba(255,255,255,0.2);
    border-radius:10px;background:rgba(255,255,255,0.08);color:#fff;font-family:inherit;
}
#newsletter-form input::placeholder, #second-chance-form input::placeholder { color:rgba(255,255,255,0.4) }

.subscribe-button {
    width:100%;padding:0.85rem;font-size:0.95rem;font-weight:700;font-family:inherit;
    color:#060d1a;background:#FF9800;border:none;border-radius:10px;cursor:pointer;transition:all .2s;
}
.subscribe-button:hover { background:#ffad33 }

.reassurance-text { font-size:0.75rem;color:rgba(255,255,255,0.3);margin-top:0.5rem }
.reassurance-text a { color:rgba(255,255,255,0.4);text-decoration:underline }

.skip-link { text-align:center;margin-bottom:1.5rem }
.skip-link a { color:rgba(255,255,255,0.5);text-decoration:underline;font-size:0.85rem }
.skip-link a:hover { color:rgba(255,255,255,0.7) }

.form-message { margin-top:0.5rem;font-size:0.85rem }
.form-message.success { color:#4caf50 }
.form-message.error { color:#ff4444 }

.gdpr-consent {
    display:flex;align-items:flex-start;gap:8px;
    font-size:0.75rem;color:rgba(255,255,255,0.4);
    cursor:pointer;text-align:left;line-height:1.4;
}
.gdpr-consent input[type="checkbox"] {
    margin-top:2px;flex-shrink:0;accent-color:#FF9800;
    width:16px;height:16px;cursor:pointer;
}
.gdpr-consent a { color:rgba(255,255,255,0.5);text-decoration:underline }
.gdpr-consent a:hover { color:#FF9800 }

/* Explanation */
.explanation {
    background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;padding:1.2rem;margin:1.5rem 0;
}
.explanation h2 { font-size:1.1rem;margin-bottom:0.6rem }
.explanation p { font-size:0.88rem;color:rgba(255,255,255,0.7);margin-bottom:0.6rem;line-height:1.5 }
.insight-link { color:#FF9800;text-decoration:none;font-weight:600;font-size:0.88rem }
.insight-link:hover { text-decoration:underline }

/* Social */
.social-sharing { text-align:center;margin:1.5rem 0 }
.social-sharing h3 { font-size:1rem;margin-bottom:0.8rem }
.share-buttons { display:flex;flex-wrap:wrap;gap:8px;justify-content:center }
.share-btn {
    padding:0.6rem 1rem;font-size:0.82rem;font-weight:600;font-family:inherit;
    border:1px solid rgba(255,255,255,0.15);border-radius:8px;cursor:pointer;
    color:#fff;background:rgba(255,255,255,0.06);transition:all .2s;
}
.share-btn:hover { background:rgba(255,255,255,0.12) }

/* Second chance */
.second-chance { margin:1.5rem 0;text-align:center }
.second-chance h3 { font-size:1rem;margin-bottom:0.3rem }
.second-chance p { font-size:0.85rem;color:rgba(255,255,255,0.5);margin-bottom:0.8rem }

/* Play again */
.play-again-button {
    display:block;width:100%;max-width:280px;margin:1.5rem auto;
    padding:0.8rem;font-size:0.95rem;font-weight:700;font-family:inherit;
    color:#fff;background:transparent;border:2px solid rgba(255,255,255,0.2);
    border-radius:10px;cursor:pointer;transition:all .2s;
}
.play-again-button:hover { border-color:rgba(255,255,255,0.4);background:rgba(255,255,255,0.05) }

/* ===== MOBILE ===== */
@media (max-width:480px) {
    .warmup-title { font-size:1.5rem }
    .watch-clock { width:150px;height:150px }
    .scenario-card { padding:1rem }
    .opts button { padding:0.8rem;font-size:0.85rem }
}
