/* GSpot CMS — Promo Site Styles
   Find the Spot. Hit it. Ship it.
   ================================ */

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

:root {
    --purple-deep: #0d0221;
    --purple-mid: #1a0533;
    --purple-glow: #6b21a8;
    --purple-light: #a855f7;
    --pink-spot: #f43f5e;
    --pink-glow: #fb7185;
    --pink-hot: #ff1744;
    --synth-blue: #06b6d4;
    --synth-magenta: #d946ef;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--purple-deep);
}

/* Scenes */
.scene {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.scene.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Background Gradients */
.gradient-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        var(--purple-mid) 0%,
        var(--purple-deep) 50%,
        #000000 100%
    );
    z-index: 0;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
    animation: gradient-shift 12s ease-in-out infinite alternate;
}

.gradient-bg--exploded {
    background: radial-gradient(ellipse at center,
        rgba(244, 63, 94, 0.15) 0%,
        var(--purple-mid) 30%,
        var(--purple-deep) 60%,
        #000000 100%
    );
}

.gradient-bg--page {
    background: radial-gradient(ellipse at center,
        var(--purple-mid) 0%,
        var(--purple-deep) 40%,
        #000000 100%
    );
}

@keyframes gradient-shift {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Scanlines overlay */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* ─── Slogan Fragments ─── */
.slogan-fragment {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    color: var(--purple-light);
    opacity: 0;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.3);
    pointer-events: none;
    z-index: 5;
    user-select: none;
    letter-spacing: 0.05em;
}

.slogan-fragment:nth-child(1) { top: 18%; left: 8%; }
.slogan-fragment:nth-child(2) { top: 72%; right: 12%; }
.slogan-fragment:nth-child(3) { bottom: 15%; left: 15%; }

.slogan-fragment.flash {
    animation: slogan-flash 2.8s ease-in-out forwards;
}

@keyframes slogan-flash {
    0%   { opacity: 0; transform: scale(0.8) translateY(10px); filter: blur(4px); }
    15%  { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
    70%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05) translateY(-5px); filter: blur(2px); }
}

/* ─── The Spot ─── */
#the-spot {
    position: relative;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-core {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink-spot);
    box-shadow:
        0 0 12px var(--pink-glow),
        0 0 24px rgba(244, 63, 94, 0.4),
        inset 0 0 6px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.spot-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(244, 63, 94, 0.4);
    animation: spot-breathe 2.4s ease-in-out infinite;
}

#the-spot:hover .spot-core {
    transform: scale(1.4);
    box-shadow:
        0 0 20px var(--pink-hot),
        0 0 40px rgba(244, 63, 94, 0.6),
        0 0 60px rgba(244, 63, 94, 0.3),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
}

#the-spot:hover .spot-pulse {
    animation: spot-pulse-hover 1s ease-in-out infinite;
    border-color: var(--pink-hot);
}

@keyframes spot-breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.8); opacity: 0; }
}

@keyframes spot-pulse-hover {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2.2); opacity: 0; }
}

/* Hint text */
.hint-text {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: hint-fade 4s ease-in-out 3s infinite;
    z-index: 5;
}

/* Tease logo */
.tease-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.5);
    box-shadow:
        0 0 30px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(244, 63, 94, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    pointer-events: none;
    z-index: 5;
    animation: logo-breathe 6s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% { opacity: 0.9; box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(244, 63, 94, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 50px rgba(244, 63, 94, 0.5), 0 0 80px rgba(168, 85, 247, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.3); }
}

@keyframes hint-fade {
    0%, 100% { opacity: 0; }
    30%, 70% { opacity: 0.6; }
}

/* ─── Radial Menu ─── */
#radial-menu {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-circle {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(244, 63, 94, 0.2) 0%,
        rgba(244, 63, 94, 0.08) 50%,
        transparent 70%
    );
    border: 2px solid rgba(244, 63, 94, 0.3);
    box-shadow:
        0 0 40px rgba(244, 63, 94, 0.2),
        inset 0 0 60px rgba(244, 63, 94, 0.1);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radial-circle.expanded {
    width: 380px;
    height: 380px;
}

.radial-nav {
    position: absolute;
    width: 100%;
    height: 100%;
}

.radial-item {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.radial-item.visible {
    opacity: 1;
}

.radial-item:hover .radial-spot {
    transform: scale(1.5);
    box-shadow:
        0 0 16px var(--pink-hot),
        0 0 32px rgba(244, 63, 94, 0.5);
}

.radial-item:hover .radial-label {
    color: var(--pink-glow);
    text-shadow: 0 0 10px rgba(251, 113, 133, 0.5);
}

.radial-spot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink-spot);
    box-shadow: 0 0 8px var(--pink-glow), 0 0 16px rgba(244, 63, 94, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.radial-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Insistent slogan in Act 2 */
.slogan-insistent {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--pink-glow);
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 25;
    letter-spacing: 0.08em;
}

.slogan-insistent.flash-insistent {
    animation: insistent-flash 1.6s ease-out forwards;
}

@keyframes insistent-flash {
    0%   { opacity: 0; transform: scale(2); filter: blur(8px); }
    20%  { opacity: 1; transform: scale(1); filter: blur(0); }
    60%  { opacity: 1; }
    100% { opacity: 0; transform: scale(0.95); }
}

/* ─── Page Cards ─── */
.page-card {
    position: absolute;
    width: min(90vw, 720px);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(13, 2, 33, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 3rem;
    opacity: 0;
    transform: scale(0) rotateY(90deg);
    transform-origin: center;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 40px rgba(168, 85, 247, 0.15),
        0 0 80px rgba(244, 63, 94, 0.05);
    z-index: 30;
}

.page-card.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.page-card h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--pink-glow), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--synth-magenta);
}

.page-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--pink-glow);
}

.page-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-card strong {
    color: var(--text-primary);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-item, .plugin-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-item:hover, .plugin-item:hover {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.05);
}

.plugin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Architecture diagram */
.arch-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
    display: block;
    margin: 0 auto;
}

/* Video wrapper — 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.2);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.page-card--video {
    width: min(90vw, 860px);
}

/* Coming soon badge */
.coming-soon-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--pink-spot);
    border: 2px solid var(--pink-spot);
    border-radius: 999px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(244, 63, 94, 0.2); }
}

.cta-text {
    font-style: italic;
    color: var(--purple-light) !important;
}

/* Back button */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(13, 2, 33, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    cursor: pointer;
    z-index: 50;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.back-btn:hover {
    color: var(--text-primary);
    border-color: var(--pink-glow);
}

/* Scrollbar */
.page-card::-webkit-scrollbar {
    width: 6px;
}

.page-card::-webkit-scrollbar-track {
    background: transparent;
}

.page-card::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 3px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #radial-menu {
        width: 320px;
        height: 320px;
    }

    .radial-circle.expanded {
        width: 280px;
        height: 280px;
    }

    .page-card {
        padding: 2rem;
        border-radius: 12px;
    }

    .back-btn {
        top: 1rem;
        left: 1rem;
    }
}
