
/**
 * Discover Your Needs - High-Stake Interactive System Builder
 * AIT Business Solutions - Premium Core Synchronization Edition
 */

:root {
    --ds-primary: #388099; /* Light Mode Primary */
    --ds-primary-rgb: 56, 128, 153;
    --ds-bg: #FAF9F6;
    --ds-surface: rgba(236, 240, 242, 0.8);
    --ds-border: rgba(139, 144, 160, 0.2);
    --text-main: #22282B;
    --text-dim: #4F5E67;
}

.dark {
    --ds-primary: #3FBEF7; /* Dark Mode Primary (Bright Cyan) */
    --ds-primary-rgb: 63, 190, 239;
    --ds-bg: #0D1114;
    --ds-surface: rgba(23, 32, 38, 0.7);
    --ds-border: rgba(79, 94, 103, 0.3);
    --text-main: #EBF0F2;
    --text-dim: #ACBCC6;
}

#discovery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background: var(--ds-bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

#discovery-playground {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

/* System Core - The Heart */
.system-core-hub {
    position: relative;
    width: 320px;
    height: 320px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease;
}

.core-orb {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, var(--ds-primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.2;
    animation: hubPulse 3s infinite alternate ease-in-out;
}

.core-inner {
    position: relative;
    width: 160px;
    height: 160px;
    background: var(--ds-surface);
    backdrop-filter: blur(30px);
    border: 3px solid var(--ds-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 5;
    transition: all 0.5s;
}

.core-inner i {
    font-size: 80px;
    color: var(--ds-primary);
    transition: transform 0.3s;
}

/* Node Styling - Charging State */
.sync-node {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--ds-surface);
    backdrop-filter: blur(15px);
    border: 2px solid var(--ds-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, background 0.3s;
    user-select: none;
    touch-action: none;
    z-index: 40;
}

.sync-node:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--ds-primary);
}

.sync-node i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.sync-node span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

/* Charging Ring */
.node-charge-ring {
    position: absolute;
    inset: -5px;
    border-radius: 34px;
    border: 3px solid transparent;
    border-top-color: var(--ds-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.syncing .node-charge-ring {
    opacity: 1;
    animation: rotateRing 1s linear infinite;
}

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

.node-synced {
    background: rgba(var(--ds-primary-rgb), 0.15) !important;
    border-color: var(--ds-primary) !important;
}

.node-synced i { color: var(--ds-primary) !important; }

/* Connection Streams */
.stream-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.stream-path {
    stroke: var(--ds-primary);
    stroke-width: 2;
    fill: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.stream-active {
    opacity: 0.4;
    stroke-dasharray: 4 4;
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    to { stroke-dashoffset: -8; }
}

/* Obstacles - Data Jammers */
.data-jammer {
    position: absolute;
    width: 140px;
    height: 60px;
    background: rgba(186, 26, 26, 0.1);
    border: 2px solid rgba(186, 26, 26, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BA1A1A;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 60;
    animation: jitter 0.5s infinite alternate;
}

@keyframes jitter {
    0% { transform: translate(-2px, -2px) rotate(-1deg); }
    100% { transform: translate(2px, 2px) rotate(1deg); }
}

/* UI Overlays */
.trip-ui {
    position: relative;
    z-index: 200;
    padding: 3rem;
    pointer-events: none;
    height: 100%;
}

.trip-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.trip-header h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.trip-footer {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Ignition Moment */
.ignition-stage {
    position: absolute;
    inset: 0;
    z-index: 500;
    background: var(--ds-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s;
}

.ignition-stage.active {
    opacity: 1;
    pointer-events: auto;
}

.ignite-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--ds-primary);
    border: 8px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 0 100px var(--ds-primary-glow);
    transition: all 0.2s;
}

.ignite-btn:active { transform: scale(0.95); }

/* Feedback Micro-copy */
.trip-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ds-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 30px var(--ds-primary-glow);
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
}

/* Animations */
@keyframes hubPulse {
    0% { transform: scale(1); opacity: 0.15; filter: blur(40px); }
    100% { transform: scale(1.4); opacity: 0.4; filter: blur(70px); }
}

/* Results Reveal Cinematic */
.cinematic-reveal {
    animation: finalReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes finalReveal {
    0% { opacity: 0; transform: scale(1.2) translateY(50px); filter: blur(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* World Selection UI */
.world-picker {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin-top: 4rem;
    pointer-events: auto;
}

.world-node {
    padding: 3rem;
    background: var(--ds-surface);
    border: 2px solid var(--ds-border);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.world-node:hover {
    background: rgba(var(--ds-primary-rgb), 0.1);
    border-color: var(--ds-primary);
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.world-node i { 
    font-size: 56px; 
    color: var(--ds-primary); 
    transition: transform 0.3s;
}

.world-node:hover i { transform: scale(1.1) rotate(5deg); }

.world-node span { 
    font-weight: 800; 
    font-size: 20px; 
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .world-picker { grid-template-cols: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
    .world-picker { grid-template-cols: 1fr; gap: 1rem; }
    .world-node { padding: 2rem; }
    .system-core-hub { transform: scale(0.6); }
    .sync-node { transform: scale(0.8); }
    .trip-header h2 { font-size: 28px; }
}

.trip-footer {
    pointer-events: auto !important;
}

.ds-btn {
    pointer-events: auto !important;
    cursor: pointer;
}
