/* ============================================
   spotted.wtf — Design System (Enhanced)
   ============================================ */

:root {
    --bg-base: #121212;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text-primary: #e8e8e8;
    --text-secondary: rgba(255, 255, 255, 0.45);
    --text-muted: rgba(255, 255, 255, 0.22);
    --accent: #6B8AFF;
    --accent-dim: rgba(107, 138, 255, 0.08);
    --accent-border: rgba(107, 138, 255, 0.15);
    --accent-text: rgba(107, 138, 255, 0.7);
    --accent-glow: rgba(107, 138, 255, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 150ms ease;
    --transition-default: 250ms ease;
}

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

html {
    font-size: 18px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(107, 138, 255, 0.03), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(107, 138, 255, 0.04), transparent 40%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- Custom Cursor --- */
.custom-cursor,
.custom-cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: left, top, transform;
}

.custom-cursor {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.1s ease-out, background-color 0.15s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

/* --- Shared Components --- */

/* Accent gradient button */
.btn-accent {
    background: linear-gradient(135deg, #6B8AFF 0%, #5A7AEE 100%);
    color: white;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(107, 138, 255, 0.2);
}

.btn-accent:active {
    transform: translateY(0);
}

/* Outline button */
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
}

.btn-outline:hover {
    border-color: rgba(107, 138, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

/* Card with gradient background */
.card-glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-glass:hover {
    border-color: rgba(107, 138, 255, 0.15);
}

/* Interactive card with lift */
.card-interactive {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-interactive:hover {
    border-color: rgba(107, 138, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(107, 138, 255, 0.06);
}

/* Ambient glow orbs — static blur only, no animation for performance */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    will-change: filter;
}

/* Starfield canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* Section title accent line */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 12px;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Icon container with glow */
.icon-ring {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.group:hover .icon-ring,
.card-interactive:hover .icon-ring {
    border-color: rgba(107, 138, 255, 0.2);
    background: rgba(107, 138, 255, 0.04);
    box-shadow: 0 0 20px rgba(107, 138, 255, 0.06);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s ease-out forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-bounce-down {
    animation: bounce-down 2s ease-in-out infinite;
}

/* Staggered children animation */
.stagger-children>*:nth-child(1) {
    animation-delay: 0ms;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 80ms;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 160ms;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 240ms;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 320ms;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 400ms;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* --- Selection --- */
::selection {
    background: rgba(107, 138, 255, 0.2);
    color: white;
}

/* --- Toasts --- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.toast-success {
    border-color: var(--accent-border);
}

.toast.closing {
    animation: toast-slide-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* --- Radar Preview --- */
@keyframes radar-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes blip-move-1 {

    0%,
    100% {
        top: 20%;
        left: 30%;
    }

    50% {
        top: 25%;
        left: 45%;
    }
}

@keyframes blip-move-2 {

    0%,
    100% {
        top: 70%;
        left: 60%;
    }

    50% {
        top: 55%;
        left: 75%;
    }
}

@keyframes blip-move-3 {

    0%,
    100% {
        top: 50%;
        left: 20%;
    }

    50% {
        top: 40%;
        left: 15%;
    }
}

/* --- Mobile Responsive --- */

/* Hide custom cursor on touch/mobile devices */
@media (pointer: coarse),
(hover: none),
(max-width: 768px) {

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    body,
    a,
    button,
    input,
    select,
    textarea {
        cursor: auto !important;
    }
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .btn-accent {
        padding: 12px 20px;
        font-size: 13px;
    }

    .card-interactive {
        padding: 20px !important;
    }
}