:root {
    --neon-orange: #ff7b00;
    --neon-blue: #00f3ff;
    --bg-dark: #0a0a0a;
    --glass-border: rgba(255, 255, 255, 0.1);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-dark); 
    color: #fff;
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
    padding-bottom: 100px;
    cursor: crosshair;
}

#bgCanvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    pointer-events: none; 
}

.promo-banner {
    background: var(--neon-orange); 
    color: #000; 
    width: 100%; 
    padding: 12px 0;
    font-family: 'JetBrains Mono'; 
    font-weight: 800; 
    text-transform: uppercase;
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 1000; 
    text-align: center; 
    font-size: 14px;
    letter-spacing: 1px;
    height: 40px; 
}

.intel-ticker {
    position: fixed;
    top: 40px; 
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--neon-blue);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.ticker-node {
    width: 8px; height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: blink 2s infinite;
    margin-right: 15px;
    flex-shrink: 0;
}

.ticker-time {
    color: #666;
    margin-right: 20px;
    flex-shrink: 0;
    border-right: 1px solid #333;
    padding-right: 15px;
    font-weight: 700;
}

.ticker-feed-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-text {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeSlide 0.5s ease-out;
}

.ticker-stat {
    border-left: 1px solid #333;
    padding-left: 15px;
    margin-left: 20px;
    color: var(--neon-orange);
    font-weight: 800;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
@keyframes fadeSlide { from { opacity:0; transform: translateY(5px); } to { opacity:1; transform: translateY(0); } }

.hero-viewport {
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    position: relative; 
    z-index: 1; 
    text-align: center;
    padding: 160px 20px 80px 20px; 
}

.hero-title {
    font-family: 'Chakra Petch'; 
    font-weight: 800; 
    font-size: clamp(60px, 12vw, 150px);
    line-height: 0.85; 
    text-transform: uppercase; 
    letter-spacing: -4px; 
    margin: 0;
    background: linear-gradient(180deg, #fff 40%, #555 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.hero-title span { 
    color: var(--neon-orange); 
    -webkit-text-fill-color: var(--neon-orange); 
    text-shadow: 0 0 30px rgba(255, 123, 0, 0.4); 
}

.hero-subtitle { 
    font-family: 'JetBrains Mono'; 
    font-size: clamp(14px, 2vw, 18px); 
    color: var(--neon-blue); 
    margin-top: 25px; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    height: 30px; 
}

.main-btn {
    padding: 22px 60px; 
    background: #fff; 
    color: #000; 
    text-decoration: none; 
    font-weight: 900; 
    letter-spacing: 2px; 
    display: inline-block; 
    font-family: 'JetBrains Mono'; 
    margin-top: 50px; 
    transition: 0.3s;
    text-transform: uppercase; 
    border: none; 
    cursor: pointer;
    position: relative;
    z-index: 100;
    animation: enginePulse 3s ease-in-out infinite;
}

@keyframes enginePulse {
    0% { transform: scale(1); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); background: #f0f0f0; }
    100% { transform: scale(1); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
}

.main-btn:hover { 
    background: var(--neon-orange); 
    color: #fff; 
    box-shadow: 0 0 40px rgba(255, 123, 0, 0.5); 
    animation: none; 
    transform: scale(1.1);
}

.features-grid {
    display: grid; 
    grid-template-columns: 1fr;
    width: 100%; 
    max-width: 1240px; 
    margin-top: 100px; 
    z-index: 2;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px; 
    text-align: left; 
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.feature-card:hover { 
    border-color: var(--neon-orange); 
    background: rgba(255, 123, 0, 0.04); 
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.feature-card h3 { 
    font-family: 'Chakra Petch'; 
    font-size: 2.2rem; 
    margin: 0 0 30px 0; 
    color: #fff; 
    text-transform: uppercase; 
    text-align: center;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-category {
    margin-bottom: 20px;
}

.cat-title {
    font-family: 'JetBrains Mono';
    color: var(--neon-blue);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-title i {
    font-size: 14px;
    color: var(--neon-blue);
    margin: 0;
}

.f-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-list li {
    font-family: 'Inter';
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 5px;
}

.f-list li::before {
    content: '+';
    color: var(--neon-orange);
    font-family: 'JetBrains Mono';
    font-weight: 800;
}

.legal-footer {
    margin-top: 80px;
    padding: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0.6;
    z-index: 20;
}

.legal-link {
    color: #666;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.legal-link:hover {
    color: var(--neon-orange);
    border-bottom: 1px solid var(--neon-orange);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    border-color: rgba(255, 123, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.modal-title {
    font-family: 'Chakra Petch';
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--neon-orange);
    transform: rotate(90deg);
}

.modal-body {
    font-family: 'Inter';
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--neon-orange);
    font-family: 'JetBrains Mono';
    margin-top: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 12px;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #000;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* --- NUCLEAR NAVIGATION STYLES (Overrides everything) --- */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 90px !important;
    background: #000000 !important;
    display: grid !important;
    grid-template-columns: 1fr 140px 1fr 1fr !important;
    align-items: center !important;
    padding: 0 10px !important;
    z-index: 99999 !important; /* SUPREME LAYER */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.9) !important;
}

.nav-stack {
    position: absolute !important;
    bottom: 95px !important; /* Push it up clearly above nav */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none; /* Hidden by JS/Logic */
    flex-direction: column-reverse !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 120px !important;
    background: transparent !important;
    z-index: 100000 !important; /* Above the nav bar */
    pointer-events: none; /* Default to no click when hidden */
}

/* OPEN STATE */
.nav-stack.stack-open {
    display: flex !important;
    pointer-events: auto !important; /* Enable clicks */
    animation: slideUp 0.2s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-stack a {
    background: #050505 !important;
    border: 1px solid #333 !important;
    color: #ccc !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8) !important;
    display: block !important;
    cursor: pointer !important;
}

.nav-stack a:hover {
    background: #151515 !important;
    border-color: #ff9900 !important;
    color: #ff9900 !important;
}

.nav-trigger {
    background: none !important;
    border: none !important;
    color: #444 !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.nav-trigger.active-nav-btn {
    color: #ff9900 !important;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.4) !important;
}

.nav-arrow {
    background: none !important;
    border: none !important;
    color: #666 !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

.center-master-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    background: #ff9900 !important;
    border: 3px solid #000 !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3) !important;
    z-index: 100001 !important;
}

.floating-page-icon {
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #00f3ff !important;
    font-size: 14px !important;
    text-shadow: 0 0 10px #00f3ff !important;
    pointer-events: none !important;
}