/* Base */
body {
    font-family: 'Inter', sans-serif;
    background: #050810;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

/* Animated background */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #050810;
    transition: background-color 0.4s ease;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%); animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; background: radial-gradient(circle, rgba(14,165,233,0.13) 0%, transparent 70%); animation-delay: -4s; }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 55%; background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%); animation-delay: -8s; }

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    transition: background-image 0.4s ease;
}

/* Light mode — background */
body.light { background: #eef2ff; }
body.light .bg-scene { background: #eef2ff; }
body.light .orb-1 { background: radial-gradient(circle, rgba(59,130,246,0.30) 0%, transparent 70%); }
body.light .orb-2 { background: radial-gradient(circle, rgba(14,165,233,0.20) 0%, transparent 70%); }
body.light .orb-3 { background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%); }
body.light .bg-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
}

/* Step indicator */
.step-track { display: flex; align-items: flex-start; gap: 0; }

.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.step-node {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.step-node.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.2);
}

.step-node.upcoming {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.3);
}

.step-node.done {
    background: rgba(59,130,246,0.25);
    color: #93c5fd;
    border: 2px solid rgba(59,130,246,0.4);
}

.step-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease;
}

.step-label.active { color: #3b82f6; font-weight: 600; }
.step-label.done   { color: rgba(59,130,246,0.6); }

.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 16px 8px 0;
    min-width: 48px;
    max-width: 80px;
    border-radius: 1px;
}

.step-connector.filled { background: rgba(59,130,246,0.35); }

/* Light mode — step indicator */
body.light .step-label          { color: rgba(0,0,0,0.3); }
body.light .step-label.active   { color: #2563eb; }
body.light .step-label.done     { color: rgba(37,99,235,0.55); }
body.light .step-node.upcoming  { border-color: rgba(0,0,0,0.12); color: rgba(0,0,0,0.25); }
body.light .step-node.done      { background: rgba(59,130,246,0.1); color: #2563eb; border-color: rgba(59,130,246,0.3); }
body.light .step-connector      { background: rgba(0,0,0,0.1); }
body.light .step-connector.filled { background: rgba(59,130,246,0.25); }

/* Office badge */
.office-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 3px 10px 3px 8px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

body.light .office-badge {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.18);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    outline: none;
    overflow: visible;
    color: rgba(255,255,255,0.85);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.3s ease, transform 0.18s ease, color 0.35s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    transform: scale(1.09);
}

.theme-toggle:active { transform: scale(0.91); }

body.light .theme-toggle {
    background: rgba(255,255,255,0.78);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 18px rgba(59,130,246,0.14);
    color: #0f172a;
}

body.light .theme-toggle:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(59,130,246,0.2);
    box-shadow: 0 8px 30px rgba(59,130,246,0.22);
}

.t-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.38s ease, transform 0.5s cubic-bezier(0.34,1.3,0.64,1);
}

.t-icon.t-out { opacity: 0; transform: rotate(80deg) scale(0.35); pointer-events: none; }

.burst-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(59,130,246,0.5);
    opacity: 0;
    pointer-events: none;
}

.theme-toggle.bursting .burst-ring {
    animation: burstRing 0.55s cubic-bezier(0,0,0.2,1) forwards;
}

@keyframes burstRing {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0;   transform: scale(2.4); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Primary button */
.pf-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: #3b82f6;
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

.pf-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.pf-btn:active { transform: translateY(0) scale(0.985); }

.pf-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.pf-btn:disabled::before { display: none; }

.pf-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.pf-btn:hover::before { left: 130%; }

body.light .pf-btn:disabled { background: #bfdbfe; }
