/* =========================================
   $RPLY - The Ticker for the Clout Economy
   ========================================= */

/* --- Custom Properties (Design Tokens) --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    
    --accent-primary: #39ff14; /* Neon Green */
    --accent-secondary: #00ff88;
    --accent-warning: #ff6b35;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glow-primary: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
    --glow-intense: 0 0 15px rgba(57, 255, 20, 0.8), 0 0 30px rgba(57, 255, 20, 0.5);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* --- Base Styles --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: var(--font-heading);
}

.text-neon {
    color: var(--accent-primary) !important;
}

.bg-neon {
    background-color: var(--accent-primary) !important;
}

.bg-primary-dark {
    background-color: var(--bg-primary) !important;
}

.section-bg-alt {
    background-color: var(--bg-secondary);
}

.text-secondary-light {
    color: #c0c0c0 !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

.border-neon {
    border-color: var(--accent-primary) !important;
}

.max-w-700 {
    max-width: 700px;
}

.z-index-1 {
    position: relative;
    z-index: 1;
}

.transition-all {
    transition: all var(--transition-normal);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Particles Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Buttons --- */
.btn-neon {
    background-color: var(--accent-primary);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--glow-primary);
    transition: var(--transition-normal);
}

.btn-neon:hover {
    background-color: var(--accent-secondary);
    color: #000;
    box-shadow: var(--glow-intense);
    transform: translateY(-2px);
}

.btn-outline-neon {
    background-color: transparent;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--accent-primary);
    box-shadow: inset 0 0 5px rgba(57, 255, 20, 0.2);
    transition: var(--transition-normal);
}

.btn-outline-neon:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4), inset 0 0 10px rgba(57, 255, 20, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}
.btn-ghost:hover {
    color: var(--accent-primary);
}

/* --- Navbar --- */
.glassmorphism {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}
.glassmorphism.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 10px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transition: var(--transition-fast);
    box-shadow: var(--glow-primary);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-primary) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Custom Navbar Toggler (Mobile Menu) */
.navbar-dark .navbar-toggler {
    border-color: var(--accent-primary);
    box-shadow: inset 0 0 5px rgba(57, 255, 20, 0.2);
    transition: var(--transition-fast);
}
.navbar-dark .navbar-toggler:focus {
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4), inset 0 0 10px rgba(57, 255, 20, 0.4);
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2339ff14' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid rgba(57, 255, 20, 0.2);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 80px;
}

.hero-mascot {
    max-width: 90%;
    filter: drop-shadow(0 0 30px rgba(57, 255, 20, 0.2));
}

.floating-anim {
    animation: floating 6s ease-in-out infinite;
}

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

.contract-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.social-icon:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(74px, 9999px, 83px, 0); }
    20% { clip: rect(6px, 9999px, 14px, 0); }
    40% { clip: rect(102px, 9999px, 34px, 0); }
    60% { clip: rect(81px, 9999px, 86px, 0); }
    80% { clip: rect(110px, 9999px, 53px, 0); }
    100% { clip: rect(24px, 9999px, 120px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(80px, 9999px, 73px, 0); }
    40% { clip: rect(15px, 9999px, 18px, 0); }
    60% { clip: rect(48px, 9999px, 93px, 0); }
    80% { clip: rect(104px, 9999px, 13px, 0); }
    100% { clip: rect(108px, 9999px, 4px, 0); }
}

/* --- About Section --- */
.text-gradient {
    background: linear-gradient(90deg, #ffffff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shadow-neon {
    box-shadow: var(--glow-primary);
}
.filter-grayscale-hover {
    filter: grayscale(100%);
}
.filter-grayscale-hover:hover {
    filter: grayscale(0%);
    box-shadow: var(--glow-intense);
}

/* --- The Cult Section (Cards) --- */
.bg-matrix-overlay {
    background-color: var(--bg-tertiary);
    position: relative;
}
.bg-matrix-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='0' y='15' fill='rgba(57,255,20,0.03)' font-family='monospace'%3E10%3C/text%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(57, 255, 20, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(57, 255, 20, 0.1);
}
.feature-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.1);
}

/* --- Tokenomics Section --- */
.tokenomics-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    position: relative;
    background: conic-gradient(var(--accent-primary) 0% 75%, var(--accent-warning) 75% 90%, #333 90% 100%);
}
.tokenomics-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 260px; height: 260px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
}
.tokenomics-circle > div {
    position: relative;
    z-index: 1;
}

.stat-card {
    transition: var(--transition-fast);
}
.stat-card:hover {
    background-color: var(--bg-tertiary) !important;
    transform: translateX(5px);
}

/* --- How to Buy Section --- */
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px; /* Center of the 30px icon */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(57, 255, 20, 0.2);
    z-index: 0;
}
.timeline-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

/* --- Roadmap Section --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 992px) {
    .roadmap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.roadmap-card {
    transition: var(--transition-normal);
}
.roadmap-card.active-phase {
    border-color: var(--accent-primary) !important;
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.1);
}
.roadmap-card:hover {
    transform: translateY(-5px);
}

/* Toast Notification */
.toast-container {
    z-index: 9999;
}
