/* ========================================
   EUPHORIA TRADING — LANDING PAGE v2
   Ultra Premium Dark Theme
   ======================================== */

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

:root {
    --bg-primary: #07070c;
    --bg-secondary: #0d0d15;
    --bg-card: #0f0f1a;
    --bg-card-hover: #141425;
    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #a8842f;
    --purple: #7b2fbe;
    --purple-light: #9b4fe0;
    --purple-dark: #5a1f8e;
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #55556a;
    --border: rgba(212, 168, 67, 0.08);
    --border-hover: rgba(212, 168, 67, 0.2);
    --glow-gold: rgba(212, 168, 67, 0.3);
    --glow-purple: rgba(123, 47, 190, 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ========================================
   GLOBAL SPACE ATMOSPHERE
   Subtle stars + nebula across entire page
   ======================================== */
#global-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.global-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: globalStarTwinkle ease-in-out infinite;
}

@keyframes globalStarTwinkle {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.3; }
}

/* Global nebula — very subtle ambient glow */
#global-nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.global-nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.global-nebula-blob:nth-child(1) {
    width: 600px;
    height: 500px;
    background: rgba(123, 47, 190, 0.025);
    top: 20%;
    left: -10%;
    animation: globalNebulaFloat 30s ease-in-out infinite;
}

.global-nebula-blob:nth-child(2) {
    width: 500px;
    height: 400px;
    background: rgba(212, 168, 67, 0.018);
    top: 50%;
    right: -10%;
    animation: globalNebulaFloat 25s ease-in-out infinite reverse;
}

.global-nebula-blob:nth-child(3) {
    width: 450px;
    height: 350px;
    background: rgba(123, 47, 190, 0.02);
    bottom: 10%;
    left: 30%;
    animation: globalNebulaFloat 35s ease-in-out infinite 5s;
}

@keyframes globalNebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.03); }
}

/* All content sections above global atmosphere */
.navbar,
#hero,
#stats,
#why,
#performance,
#community,
#cta,
footer,
.sticky-cta {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   INTRO OVERLAY
   ======================================== */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.intro-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    animation: introLogoIn 0.8s ease-out forwards;
}

.intro-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    transform: translate(-50%, -50%) scale(0);
    animation: introRingExpand 1.5s ease-out forwards;
}

.intro-ring-1 {
    width: 140px;
    height: 140px;
    border-color: rgba(212, 168, 67, 0.3);
    animation-delay: 0.3s;
}

.intro-ring-2 {
    width: 180px;
    height: 180px;
    border-color: rgba(123, 47, 190, 0.2);
    animation-delay: 0.5s;
}

.intro-ring-3 {
    width: 220px;
    height: 220px;
    border-color: rgba(212, 168, 67, 0.1);
    animation-delay: 0.7s;
}

@keyframes introRingExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.intro-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-purple) 0%, var(--glow-gold) 40%, transparent 70%);
    animation: introGlowPulse 1.5s ease-in-out;
    z-index: 1;
}

@keyframes introLogoIn {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes introGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 7, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        var(--gold) 0%,
        var(--purple-light) 25%,
        var(--gold-light) 50%,
        var(--purple) 75%,
        var(--gold) 100%
    );
    background-origin: border-box;
    animation: logo-rotate 4s linear infinite;
    box-shadow:
        0 0 10px rgba(212, 168, 67, 0.25),
        0 0 20px rgba(212, 168, 67, 0.1),
        0 0 30px rgba(123, 47, 190, 0.08);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 14px rgba(212, 168, 67, 0.4),
        0 0 28px rgba(212, 168, 67, 0.2),
        0 0 42px rgba(123, 47, 190, 0.15);
}

@keyframes logo-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #e0aaff 0%, #c77dff 25%, #9b5de5 50%, #7b2fbe 75%, #e0aaff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-gradient-shift 4s ease infinite;
    filter: drop-shadow(0 0 8px rgba(155, 93, 229, 0.3));
    text-transform: uppercase;
}

@keyframes logo-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-socials a {
    color: var(--text-secondary);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.nav-socials a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* X (Twitter) — black/white brand */
.nav-socials a[aria-label="X (Twitter)"] {
    color: #e7e9ea;
}
.nav-socials a[aria-label="X (Twitter)"]::before {
    background: rgba(231, 233, 234, 0.08);
    box-shadow: 0 0 12px rgba(231, 233, 234, 0.1);
}
.nav-socials a[aria-label="X (Twitter)"]:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

/* YouTube — red brand */
.nav-socials a[aria-label="YouTube"] {
    color: #ff0000;
}
.nav-socials a[aria-label="YouTube"]::before {
    background: rgba(255, 0, 0, 0.06);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.08);
}
.nav-socials a[aria-label="YouTube"]:hover {
    color: #ff0000;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.35));
}

/* Telegram — blue brand */
.nav-socials a[aria-label="Telegram"] {
    color: #26a5e4;
}
.nav-socials a[aria-label="Telegram"]::before {
    background: rgba(38, 165, 228, 0.06);
    box-shadow: 0 0 12px rgba(38, 165, 228, 0.08);
}
.nav-socials a[aria-label="Telegram"]:hover {
    color: #26a5e4;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(38, 165, 228, 0.35));
}

.nav-socials a:hover::before {
    opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Space elements integrated into hero */

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo with multiple orbits */
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 48px;
    width: 280px;
    height: 280px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    border: 2px solid rgba(212, 168, 67, 0.3);
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.12) 0%, rgba(212, 168, 67, 0.08) 50%, transparent 70%);
    animation: heroGlow 4s ease-in-out infinite;
    z-index: 1;
}

/* Orbits */
.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
}

.hero-orbit-1 {
    width: 170px;
    height: 170px;
    margin-left: -85px;
    margin-top: -85px;
    border-color: rgba(212, 168, 67, 0.15);
    animation: orbitSpin 10s linear infinite;
}

.hero-orbit-2 {
    width: 220px;
    height: 220px;
    margin-left: -110px;
    margin-top: -110px;
    border-color: rgba(123, 47, 190, 0.12);
    animation: orbitSpin 16s linear infinite reverse;
    transform: rotateX(60deg);
}

.hero-orbit-3 {
    width: 260px;
    height: 260px;
    margin-left: -130px;
    margin-top: -130px;
    border-color: rgba(212, 168, 67, 0.08);
    animation: orbitSpin 22s linear infinite;
    transform: rotateY(60deg);
}

.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    margin-left: -3px;
}

.hero-orbit-1 .orbit-dot {
    background: var(--gold);
    box-shadow: 0 0 12px var(--glow-gold), 0 0 24px rgba(212, 168, 67, 0.15);
}

.hero-orbit-2 .orbit-dot {
    background: var(--purple-light);
    box-shadow: 0 0 12px var(--glow-purple), 0 0 24px rgba(123, 47, 190, 0.15);
    width: 4px;
    height: 4px;
    top: -2px;
    margin-left: -2px;
}

.hero-orbit-3 .orbit-dot {
    background: var(--gold-light);
    box-shadow: 0 0 10px rgba(240, 208, 120, 0.3);
    width: 3px;
    height: 3px;
    top: -1.5px;
    margin-left: -1.5px;
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextIn 1s ease-out 1.8s forwards;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextIn 1s ease-out 2.2s forwards;
    margin-bottom: 60px;
}

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

.hero-scroll-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroTextIn 1s ease-out 2.8s forwards;
    cursor: pointer;
    z-index: 6;
    padding: 10px 20px;
}

.hero-scroll-indicator:hover .scroll-text {
    color: var(--gold);
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 50px;
    position: relative;
    overflow: hidden;
    background: rgba(212, 168, 67, 0.15);
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% { top: -50%; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Mouse scroll icon */
.hero-scroll-indicator::before {
    content: '';
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(212, 168, 67, 0.3);
    border-radius: 10px;
    position: relative;
    display: block;
}

.hero-scroll-indicator::after {
    content: '';
    width: 2px;
    height: 6px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    margin-left: -1px;
    animation: scrollMouseDot 2s ease-in-out infinite;
}

@keyframes scrollMouseDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.section-divider {
    width: 200px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* ========================================
   STATS SECTION
   ======================================== */
#stats {
    padding: 100px 0 80px;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(212,168,67,0.04) 0%, rgba(212,168,67,0.3) 8%, rgba(212,168,67,0.04) 16%,
        rgba(123,47,190,0.2) 35%, rgba(123,47,190,0.04) 45%,
        rgba(212,168,67,0.25) 70%, rgba(212,168,67,0.04) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: cardBorderSpin var(--card-spin-dur, 8s) linear infinite;
    pointer-events: none;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.stat-card:hover .stat-card-glow {
    opacity: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-value.counter::after {
    content: '+';
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ========================================
   SECTION COMMONS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 20px;
    background: rgba(212, 168, 67, 0.03);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   WHY EUPHORIA SECTION
   ======================================== */
#why {
    padding: 80px 0 100px;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(212,168,67,0.04) 0%, rgba(212,168,67,0.3) 8%, rgba(212,168,67,0.04) 16%,
        rgba(123,47,190,0.2) 35%, rgba(123,47,190,0.04) 45%,
        rgba(212,168,67,0.25) 70%, rgba(212,168,67,0.04) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: cardBorderSpin var(--card-spin-dur, 9s) linear infinite;
    pointer-events: none;
    z-index: 1;
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
}

.why-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
    transition: all 0.4s ease;
}

.why-card:hover .why-icon-wrapper {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.25);
    transform: scale(1.05);
}

.why-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.why-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stagger for why cards */
.why-card:nth-child(1) { transition-delay: 0.05s; }
.why-card:nth-child(2) { transition-delay: 0.15s; }
.why-card:nth-child(3) { transition-delay: 0.25s; }
.why-card:nth-child(4) { transition-delay: 0.35s; }

/* ========================================
   PERFORMANCE — PNL GALLERY
   ======================================== */
#performance {
    padding: 80px 0 100px;
    position: relative;
}

.pnl-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pnl-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    border: none;
}

.pnl-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Neon rotating border on PnL cards */
.pnl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(212, 168, 67, 0.05) 0%,
        rgba(212, 168, 67, 0.35) 8%,
        rgba(212, 168, 67, 0.05) 16%,
        rgba(123, 47, 190, 0.25) 35%,
        rgba(123, 47, 190, 0.05) 45%,
        rgba(74, 222, 128, 0.2) 55%,
        rgba(74, 222, 128, 0.05) 65%,
        rgba(212, 168, 67, 0.3) 85%,
        rgba(212, 168, 67, 0.05) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: cardBorderSpin var(--card-spin-dur, 8s) linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes cardBorderSpin {
    to { --card-angle: 360deg; }
}

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.pnl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 67, 0.08);
}

.pnl-img-wrapper {
    overflow: hidden;
}

.pnl-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.pnl-card:hover .pnl-img-wrapper img {
    transform: scale(1.03);
}

.pnl-info {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.95), rgba(20, 20, 37, 0.95));
    position: relative;
}

.pnl-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.2), transparent);
}

.pnl-coin {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pnl-roi {
    font-size: 0.85rem;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
    letter-spacing: 0.5px;
}

/* Stagger for pnl cards */
.pnl-card:nth-child(1) { transition-delay: 0.02s; }
.pnl-card:nth-child(2) { transition-delay: 0.08s; }
.pnl-card:nth-child(3) { transition-delay: 0.14s; }
.pnl-card:nth-child(4) { transition-delay: 0.20s; }
.pnl-card:nth-child(5) { transition-delay: 0.26s; }
.pnl-card:nth-child(6) { transition-delay: 0.32s; }
.pnl-card:nth-child(7) { transition-delay: 0.38s; }
.pnl-card:nth-child(8) { transition-delay: 0.44s; }

/* ========================================
   COMMUNITY SECTION
   ======================================== */
#community {
    padding: 80px 0 100px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.community-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.community-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.community-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    background: var(--bg-card);
    transition: all 0.4s ease;
    position: relative;
    display: block;
    text-decoration: none;
}

.community-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(212,168,67,0.04) 0%, rgba(212,168,67,0.3) 8%, rgba(212,168,67,0.04) 16%,
        rgba(123,47,190,0.2) 35%, rgba(123,47,190,0.04) 45%,
        rgba(212,168,67,0.25) 70%, rgba(212,168,67,0.04) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: cardBorderSpin var(--card-spin-dur, 10s) linear infinite;
    pointer-events: none;
    z-index: 3;
}

.community-img-wrapper > img {
    border-radius: 16px;
}

.community-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.community-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.community-img-wrapper:hover img {
    transform: scale(1.03);
}

/* Blur card */
.blur-card {
    cursor: pointer;
}

.blur-card img {
    filter: blur(6px);
    transform: scale(1.1);
}

.blur-card:hover img {
    filter: blur(8px);
    transform: scale(1.13);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 12, 0.3);
    z-index: 2;
    transition: background 0.3s ease;
}

.blur-card:hover .blur-overlay {
    background: rgba(7, 7, 12, 0.4);
}

.blur-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(7, 7, 12, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid var(--border-hover);
    text-align: center;
    max-width: 80%;
    transition: all 0.3s ease;
    color: var(--gold);
}

.blur-card:hover .blur-overlay-content {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.1);
    transform: scale(1.02);
}

.blur-overlay-content span {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */
#cta {
    padding: 80px 0 120px;
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(123, 47, 190, 0.05) 50%, rgba(212, 168, 67, 0.03) 100%);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(212,168,67,0.05) 0%, rgba(212,168,67,0.35) 10%, rgba(212,168,67,0.05) 20%,
        rgba(123,47,190,0.25) 40%, rgba(123,47,190,0.05) 50%,
        rgba(212,168,67,0.3) 75%, rgba(212,168,67,0.05) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: cardBorderSpin 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.cta-box.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.08) 0%, rgba(212, 168, 67, 0.04) 40%, transparent 70%);
    pointer-events: none;
    animation: ctaGlowFloat 8s ease-in-out infinite;
}

@keyframes ctaGlowFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 168, 67, 0.35);
}

.cta-button:hover::before {
    left: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 40px 0 100px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        var(--gold) 0%,
        var(--purple-light) 25%,
        var(--gold-light) 50%,
        var(--purple) 75%,
        var(--gold) 100%
    );
    background-origin: border-box;
    animation: logo-rotate 4s linear infinite;
    box-shadow:
        0 0 8px rgba(212, 168, 67, 0.2),
        0 0 16px rgba(212, 168, 67, 0.08),
        0 0 24px rgba(123, 47, 190, 0.06);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 12px rgba(212, 168, 67, 0.35),
        0 0 24px rgba(212, 168, 67, 0.15),
        0 0 36px rgba(123, 47, 190, 0.12);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 50%;
    position: relative;
}

/* X — white brand */
.footer-socials a[aria-label="X"] {
    color: #e7e9ea;
}
.footer-socials a[aria-label="X"]:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

/* YouTube — red brand */
.footer-socials a[aria-label="YouTube"] {
    color: #ff0000;
}
.footer-socials a[aria-label="YouTube"]:hover {
    color: #ff0000;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.35));
}

/* Telegram — blue brand */
.footer-socials a[aria-label="Telegram"] {
    color: #26a5e4;
}
.footer-socials a[aria-label="Telegram"]:hover {
    color: #26a5e4;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(38, 165, 228, 0.35));
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copy {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   STICKY CTA
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 24px;
    background: rgba(7, 7, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sticky-cta-btn:hover {
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for stat cards */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.25s; }
.stat-card:nth-child(3) { transition-delay: 0.4s; }

/* Stagger for community cards */
.community-card:nth-child(1) { transition-delay: 0.05s; }
.community-card:nth-child(2) { transition-delay: 0.15s; }
.community-card:nth-child(3) { transition-delay: 0.25s; }
.community-card:nth-child(4) { transition-delay: 0.35s; }
.community-card:nth-child(5) { transition-delay: 0.45s; }
.community-card:nth-child(6) { transition-delay: 0.55s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pnl-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .why-card {
        padding: 24px 16px;
    }

    .pnl-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .community-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-box {
        padding: 50px 24px;
    }

    .hero-logo-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-orbit-1 {
        width: 140px;
        height: 140px;
        margin-left: -70px;
        margin-top: -70px;
    }

    .hero-orbit-2 {
        width: 175px;
        height: 175px;
        margin-left: -87.5px;
        margin-top: -87.5px;
    }

    .hero-orbit-3 {
        width: 210px;
        height: 210px;
        margin-left: -105px;
        margin-top: -105px;
    }

    footer {
        padding-bottom: 80px;
    }

    /* MOBILE PERFORMANCE — disable heavy effects */
    /* Remove space panel neon borders on mobile (Houdini not supported + heavy) */
    .space-panel::before {
        display: none;
    }

    /* Simplify card borders on mobile — static gradient instead of spinning */
    .pnl-card::before,
    .stat-card::after,
    .why-card::before,
    .community-img-wrapper::before,
    .cta-box::before {
        animation: none;
        background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(123,47,190,0.1), rgba(212,168,67,0.15));
    }

    /* Disable backdrop-filter on mobile */
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(7, 7, 12, 0.95);
    }

    /* Reduce nebula blur on mobile */
    .space-nebula {
        filter: blur(50px);
    }

    /* Reduce global nebula blur */
    .global-nebula-blob {
        filter: blur(80px);
    }

    /* Disable data particle box-shadow on mobile */
    .data-particle {
        box-shadow: none;
    }

    /* Simpler hover — no transform on mobile (touch) */
    .nav-socials a:hover,
    .footer-socials a:hover {
        transform: none;
    }

    /* Touch-friendly tap targets */
    .nav-socials a {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    /* iOS scroll fix */
    #hero {
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce section padding on mobile */
    #stats { padding: 60px 0 50px; }
    #why { padding: 50px 0 60px; }
    #performance { padding: 50px 0 60px; }
    #community { padding: 50px 0 60px; }
    #cta { padding: 50px 0 80px; }

    .section-header { margin-bottom: 36px; }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-tag {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    .pnl-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pnl-info {
        padding: 10px 12px;
    }

    .pnl-coin { font-size: 0.65rem; }
    .pnl-roi { font-size: 0.75rem; }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    .hero-scroll-indicator::before {
        width: 16px;
        height: 26px;
    }
}

/* Ultra small screens */
@media (max-width: 360px) {
    .hero-title { font-size: 1.3rem; }
    .hero-logo-wrapper { width: 180px; height: 180px; }
    .hero-logo { width: 80px; height: 80px; }
    .container { padding: 0 16px; }
}

/* ========================================
   TELEGRAM REDIRECT MODAL
   ======================================== */
.tg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.tg-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tg-modal {
    background: linear-gradient(165deg, #111122 0%, #0a0a14 100%);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 0 1px rgba(212, 168, 67, 0.06),
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(123, 47, 190, 0.08);
}

.tg-modal-overlay.active .tg-modal {
    transform: scale(1) translateY(0);
}

.tg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tg-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2AABEE 0%, #1d93d1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(42, 171, 238, 0.25);
}

.tg-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tg-modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
}

.tg-modal-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 24px;
}

.tg-modal-admin-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tg-modal-admin-handle {
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 600;
}

.tg-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #2AABEE 0%, #1d93d1 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.3);
}

.tg-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(42, 171, 238, 0.4);
    filter: brightness(1.08);
}

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

@media (max-width: 480px) {
    .tg-modal {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }

    .tg-modal-icon {
        width: 56px;
        height: 56px;
    }

    .tg-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .tg-modal-title {
        font-size: 1.05rem;
    }

    .tg-modal-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   3D SPACE — Hero Background
   ======================================== */
/* Stars */
.space-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.space-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: starTwinkle ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Nebula */
.space-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.space-nebula-1 {
    width: 500px;
    height: 400px;
    background: rgba(123, 47, 190, 0.06);
    top: 10%;
    left: -5%;
    animation: nebulaFloat 20s ease-in-out infinite;
}

.space-nebula-2 {
    width: 400px;
    height: 350px;
    background: rgba(212, 168, 67, 0.04);
    bottom: 5%;
    right: -5%;
    animation: nebulaFloat 16s ease-in-out infinite reverse;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* 3D Camera container — inside hero */
.space-camera {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    z-index: 0;
    overflow: hidden;
}

/* Individual floating panel */
.space-panel {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.space-panel img {
    -webkit-transform: translateZ(0);
}

.space-panel img {
    display: block;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(123, 47, 190, 0.06);
    object-fit: cover;
    pointer-events: none;
}

/* Neon rotating border on space panels */
.space-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 11px;
    background: conic-gradient(
        from var(--panel-angle, 0deg),
        transparent 0%,
        rgba(212, 168, 67, 0.4) 10%,
        transparent 20%,
        rgba(123, 47, 190, 0.3) 40%,
        transparent 50%,
        rgba(212, 168, 67, 0.3) 70%,
        transparent 80%,
        rgba(123, 47, 190, 0.2) 90%,
        transparent 100%
    );
    z-index: -1;
    animation: panelBorderSpin var(--spin-dur, 6s) linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 1px;
}

@keyframes panelBorderSpin {
    to { --panel-angle: 360deg; }
}

@property --panel-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Data particles */
.space-data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    pointer-events: none;
}

.data-particle.green {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.data-particle.gold {
    background: var(--gold);
    box-shadow: 0 0 6px var(--glow-gold);
}

.data-particle.purple {
    background: var(--purple-light);
    box-shadow: 0 0 4px var(--glow-purple);
}

/* Vignette overlay — on hero, lighter center for panel visibility */
.space-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(7, 7, 12, 0.35) 0%, rgba(7, 7, 12, 0.45) 40%, rgba(7, 7, 12, 0.7) 80%, var(--bg-primary) 100%),
        linear-gradient(to bottom, transparent 0%, transparent 88%, var(--bg-primary) 100%);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

::selection {
    background: rgba(212, 168, 67, 0.2);
    color: var(--gold-light);
}
