/* =========================================
   NextVision · Tour NV TPRM – styles.css (v4.0 Auto-Start Timer)
   ========================================= */
:root {
  --nv-blue-refined: #4A86FF;
  --ssc-violet-refined: #7B61FF;
  --nv-green-refined: #00F5C4;
  --bg-dark: #0A0F1A;
  --panel-bg: rgba(16, 23, 39, 0.9);
  --text-primary: #FFFFFF;
  --text-secondary: #a8b2d1;
  --border-color: rgba(123, 97, 255, 0.3);
  --aurora-gradient: linear-gradient(90deg, var(--nv-blue-refined) 0%, var(--ssc-violet-refined) 50%, var(--nv-green-refined) 100%);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --transition-speed: 0.6s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); overflow: hidden; }

#plexus-background { position: fixed; inset: 0; z-index: 0; opacity: 0.6; }

.boot-sequence { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--bg-dark); color: var(--nv-green-refined); font-family: var(--font-mono); transition: opacity 0.5s ease-out; }
.boot-sequence.hidden { opacity: 0; pointer-events: none; }
.boot-content { width: min(600px, 90vw); }
#boot-text::after { content: '▋'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.boot-logo { text-align: center; opacity: 0; transition: opacity 0.5s; }
.boot-logo.visible { opacity: 1; }
.boot-logo img { max-width: 200px; margin-top: 20px; }
.boot-logos-container { display: flex; justify-content: center; align-items: center; gap: 24px; }
.boot-logos-container img { max-height: 40px; max-width: 150px; }

.tour-stage { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; padding-bottom: 80px; opacity: 0; transition: opacity 0.5s; position: relative; }
.tour-stage.visible { opacity: 1; }

.floating-panel { width: 100%; height: 100%; max-width: 1280px; max-height: 720px; background: var(--panel-bg); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(10, 15, 26, 0.8); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: scale(0.95); animation: panelFadeIn 0.8s ease-out forwards; border: 1px solid transparent; background-clip: padding-box; position: relative; }
.floating-panel::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; margin: -1px; border-radius: inherit; background: var(--aurora-gradient); }
@keyframes panelFadeIn { to { opacity: 1; transform: scale(1); } }
.panel-header { padding: 10px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); text-align: center; font-size: 0.8rem; color: var(--text-secondary); position: relative; }
.panel-header .header-light { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--nv-green-refined); border-radius: 50%; box-shadow: 0 0 8px var(--nv-green-refined); }

.image-container { flex-grow: 1; position: relative; overflow: hidden; transition: transform var(--transition-speed) ease-out; }
#panelImage { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease-in-out; }
.spotlight-overlay { position: absolute; inset: 0; background: radial-gradient( circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), transparent 0%, transparent var(--spotlight-radius, 10%), rgba(123, 97, 255, 0.1) calc(var(--spotlight-radius, 10%) + 5%), rgba(16, 23, 39, 0.7) calc(var(--spotlight-radius, 10%) + 15%) ); transition: all var(--transition-speed) ease-out; pointer-events: none; }

.card-container { position: absolute; inset: 0; pointer-events: none; }
.narrative-card { position: absolute; width: clamp(320px, 26vw, 420px); background: #FFFFFF; color: #1e293b; border-radius: 12px; padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); pointer-events: auto; opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out; display: flex; flex-direction: column; }
.narrative-card::before { content: ''; position: absolute; top: 50%; left: -14px; transform: translateY(-50%); width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-right: 15px solid #FFFFFF; }
.narrative-card.visible { opacity: 1; transform: translateY(0); }
.narrative-card h2 { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.2; margin-bottom: 12px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease-out 0.2s; color: transparent; background: var(--aurora-gradient); -webkit-background-clip: text; background-clip: text; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); }
.narrative-card p { font-size: 1rem; line-height: 1.6; color: #475569; opacity: 0; transform: translateY(10px); transition: all 0.4s ease-out 0.3s; flex-grow: 1; }
.narrative-card.text-visible h2, .narrative-card.text-visible p { opacity: 1; transform: translateY(0); }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.card-progress { font-size: 0.9rem; font-weight: 500; color: #64748b; }
.card-continue-btn { -webkit-appearance: none; appearance: none; background: var(--nv-blue-refined); color: #FFFFFF; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer; transition: background-color 0.2s ease-in-out, transform 0.2s ease; }
.card-continue-btn:hover { background-color: var(--ssc-violet-refined); transform: scale(1.03); }

.welcome-overlay { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(10, 23, 39, 0.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.5s ease-in-out; }
.welcome-overlay.visible { opacity: 1; pointer-events: auto; }
.welcome-card { text-align: center; background: #fff; color: #1e293b; max-width: 550px; padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; transform: scale(0.95); transition: all 0.5s ease-out .2s; }
.welcome-overlay.visible .welcome-card { opacity: 1; transform: scale(1); }
.intro-logos { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 24px; }
.intro-logos img { max-height: 32px; }
.intro-logos span { font-size: 1.5rem; color: #999; }
.welcome-card h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 12px; color: #1e293b; }
.welcome-card p { color: #475569; margin-bottom: 24px; font-size: 1rem; line-height: 1.6; }
.countdown-timer { color: #64748b; font-size: 0.8rem; margin-bottom: 24px; font-style: italic; }
.countdown-timer span { font-weight: 700; }

.journey-bar { position: fixed; bottom: 80px; left: 0; right: 0; display: flex; justify-content: center; padding: 0 24px; gap: 1%; z-index: 10; opacity: 0; transition: opacity 0.5s; }
.journey-bar.visible { opacity: 1; }
.journey-step { display: flex; flex-direction: column; align-items: center; position: relative; flex-grow: 1; max-width: 120px; transition: transform 0.2s ease-out; }
.journey-step:hover { transform: translateY(-5px); }
.journey-step:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--border-color); transform: translateX(15%); transition: background 0.4s; }
.journey-step-circle { width: 30px; height: 30px; border: 2px solid var(--border-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700; background-color: var(--bg-dark); position: relative; z-index: 2; transition: all 0.4s; box-shadow: inset 0px 1px 2px rgba(0,0,0,0.5); line-height: 1; }
.journey-step-label { margin-top: 8px; font-size: 0.75rem; color: var(--text-secondary); text-align: center; transition: color 0.4s; }
.journey-step .icon-check { width: 18px; height: 18px; color: #fff; display: none; position: absolute; top: 6px; left: 6px; }
.journey-step.active .journey-step-circle { background: var(--aurora-gradient); border: none; width: 32px; height: 32px; color: #fff; transform: scale(1.1); box-shadow: 0 0 15px 3px rgba(123, 97, 255, 0.6); animation: pulse 2.5s infinite ease-in-out; }
.journey-step.active .journey-step-label { color: transparent; background: var(--aurora-gradient); -webkit-background-clip: text; background-clip: text; font-weight: 700; }
.journey-step.completed .journey-step-circle { background: var(--aurora-gradient); border: none; color: transparent; }
.journey-step.completed .icon-check { display: block; }
.journey-step.completed .journey-step-label { color: var(--text-primary); }
.journey-step.completed::after { background: var(--aurora-gradient); }
.journey-step-circle span, .journey-step .icon-check { text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4); }
@media (max-width: 768px) { .journey-step-label { display: none; } .journey-bar { bottom: 90px; } }

.tour-footer { position: fixed; bottom: 0; left: 0; right: 0; height: 80px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; opacity: 0; transition: opacity 0.5s; z-index: 10; }
.tour-footer.visible { opacity: 1; }
.brand { display: flex; align-items: center; gap: 24px; }
.brand img { height: 32px; }
.tour-nav { display: flex; align-items: center; gap: 16px; }
.nav-button { -webkit-appearance: none; appearance: none; font-family: var(--font-heading); font-size: 2rem; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 50%; cursor: pointer; transition: all .2s; display: grid; place-items: center; }
.nav-button:hover:not(:disabled) { background: rgba(255,255,255,0.2); transform: scale(1.1); box-shadow: 0 0 15px rgba(123, 97, 255, 0.6); }
.nav-button:disabled { opacity: 0.4; cursor: not-allowed; }
.nav-button .icon { width: 18px; height: 18px; }
.nav-button .icon.hidden { display: none; }
.nav-button.discreet { width: 36px; height: 36px; opacity: 0.6; transition: all 0.2s ease-out; }
.nav-button.discreet:hover { opacity: 1; transform: scale(1.1); box-shadow: 0 0 10px rgba(123, 97, 255, 0.5); }
.nav-button.discreet .icon { width: 16px; height: 16px; }

.end-screen { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(10, 23, 39, 0.8); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.end-screen.visible { opacity: 1; pointer-events: auto; }
.end-card { text-align: center; color: #fff; max-width: 500px; padding: 20px; }
.end-card img { max-width: 80px; margin: 0 auto 24px; }
.end-card h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.end-card p { color: var(--text-secondary); margin-bottom: 24px; }
.end-cta-buttons { display: flex; gap: 16px; justify-content: center; }
.cta-button { font-family: var(--font-body); font-weight: 700; padding: 12px 24px; border-radius: 8px; border: 1px solid var(--ssc-violet-refined); color: var(--ssc-violet-refined); background: transparent; cursor: pointer; transition: all .2s; }
.cta-button.primary { background: var(--aurora-gradient); border: none; color: #fff; }
.cta-button:hover { border: 1px solid transparent; color: #fff; transform: scale(1.05); background: var(--aurora-gradient); background-size: 200% auto; animation: textShine 2s linear infinite; }
.restart-button { margin-top: 32px; color: var(--text-secondary); background: none; border: none; cursor: pointer; opacity: 0.7; transition: opacity .2s; text-decoration: underline; }
.restart-button:hover { opacity: 1; }

@keyframes textShine { to { background-position: 200% center; } }
@keyframes pulse {
    0% { box-shadow: 0 0 15px 3px rgba(123, 97, 255, 0.6); }
    50% { box-shadow: 0 0 20px 6px rgba(123, 97, 255, 0.4); }
    100% { box-shadow: 0 0 15px 3px rgba(123, 97, 255, 0.6); }
}