/* --- CSS RESET & GLOBAL VARIABLES --- */
:root {
    --bg-void: #0A0B10;
    --text-white: #ffffff;
    --text-silver: #E2E4E9;
    --accent: #00D4BD;
    --border: rgba(0, 212, 189, 0.5);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body, html {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-sans);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- SCENE BACKGROUND (MOVING GRID) --- */
body {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* --- LAYOUT WRAPPERS --- */
.arx-scene-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.arx-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* --- HEADER --- */
.custom-header-wrapper {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,212,189,0.15);
    padding-bottom: 30px;
    padding-top: 40px;
}

.custom-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 48px;
    color: var(--text-white);
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0, 212, 189, 0.2); 
    position: relative;
}

.custom-logo::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    margin-left: 8px;
    box-shadow: 0 0 10px var(--accent);
}

.custom-motto {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    opacity: 0.9;
    letter-spacing: 4px;
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- HOLOGRAPHIC DECORATIONS --- */
.holo-layer {
    position: fixed; /* Fixed so they stay put while scrolling */
    top: 0; bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}
.left-col { left: 2%; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.right-col { right: 2%; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 60px; }

.data-stream {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    line-height: 1.4;
    text-shadow: 0 0 10px var(--accent);
    font-weight: 700;
}

.reticle-target {
    width: 100px; height: 100px;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    position: relative;
    animation: spin 10s linear infinite;
    box-shadow: 0 0 20px var(--accent);
}
.reticle-target::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #fff;
}

.radar-circle {
    width: 150px; height: 150px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(0,212,189,0.2) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(0, 212, 189, 0.3);
}
.radar-circle::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 50%; height: 3px; background: var(--accent);
    transform-origin: 0% 0%;
    animation: radarSweep 3s infinite linear;
    box-shadow: 0 0 10px #fff;
}

.orbital-ring {
    width: 80px; height: 80px;
    border: 2px dotted #fff;
    border-radius: 50%;
    animation: spinReverse 15s linear infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.data-block {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--accent);
    text-align: right;
    font-weight: bold;
    text-shadow: 0 0 8px var(--accent);
}

/* --- HERO SECTION --- */
.arx-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px;
}
.hero-content { flex: 1; min-width: 300px; }

h1 {
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.brand-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-shadow: 0 0 15px var(--accent);
}

.subtext {
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-silver);
}

/* --- BUTTONS --- */
.cta-row { display: flex; align-items: center; gap: 16px; }

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 212, 189, 0.6);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 212, 189, 1);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(1px);
}
.btn-primary.deploy-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid #fff;
    color: #fff;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: 0.3s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}
.view-docs-lock {
    display: inline-block;
    margin-left: 8px;
}

/* --- TELEMETRY PANEL --- */
.arx-panel {
    background: #000;
    border: 1px solid var(--accent);
    padding: 24px;
    width: 100%;
    max-width: 320px;
    font-family: var(--font-mono);
    box-shadow: 0 0 40px rgba(0,212,189,0.1);
}

.panel-header {
    font-size: 12px; color: #fff; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.blink-status {
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 50%; box-shadow: 0 0 10px var(--accent);
    animation: blink 2s infinite;
}

.panel-row {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; font-size: 11px;
}
.label { color: var(--text-silver); }
.value { color: #fff; }
.value.active { color: var(--accent); text-shadow: 0 0 5px var(--accent); }

.panel-graph {
    display: flex; align-items: flex-end; gap: 6px;
    height: 100px; margin: 24px 0;
    border-bottom: 2px solid rgba(0, 212, 189, 0.3);
    padding-bottom: 0px;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), rgba(0,212,189,0.4));
    opacity: 1;
    transform-origin: bottom;
    animation: barBounce 1.5s infinite alternate ease-in-out;
    box-shadow: 0 0 15px rgba(0, 212, 189, 0.4);
    border-top: 1px solid #fff;
    transition: all 0.2s ease;
    cursor: crosshair;
}
.graph-bar:hover {
    background: #fff;
    box-shadow: 0 0 20px #fff;
    transform: scaleY(1.2) !important;
}

.anim-bar-1 { height: 20%; animation-duration: 0.9s; }
.anim-bar-2 { height: 50%; animation-duration: 1.3s; }
.anim-bar-3 { height: 80%; animation-duration: 0.7s; }
.anim-bar-4 { height: 40%; animation-duration: 1.6s; }
.anim-bar-5 { height: 90%; animation-duration: 1.1s; }
.anim-bar-6 { height: 60%; animation-duration: 1.4s; }

.terminal-line {
    font-size: 10px; color: var(--accent); margin-top: 15px; opacity: 0.7;
}

/* --- STATS & GRID --- */
.arx-stats-bar {
    display: flex;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    margin-bottom: 120px;
}
.stat-item {
    flex: 1; text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border: none; }
.stat-item h3 { font-size: 48px; font-weight: 300; margin-bottom: 5px; }
.stat-item p { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 2px; }

.arx-grid-section { margin-bottom: 120px; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.arx-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 32px;
    transition: all 0.3s;
}
.arx-card:hover {
    border-color: #fff;
    background: rgba(0, 212, 189, 0.05);
    box-shadow: 0 0 30px rgba(0, 212, 189, 0.2);
    transform: translateY(-5px);
    cursor: pointer;
}
.card-icon {
    font-size: 24px; color: var(--accent);
    margin-bottom: 20px; text-shadow: 0 0 15px var(--accent);
}
.arx-card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.arx-card p { font-family: var(--font-mono); font-size: 12px; color: var(--text-silver); line-height: 1.5; }
.module-status {
    margin-top: 14px;
    color: var(--accent) !important;
    letter-spacing: 0.5px;
}
.mode-x-card {
    margin-top: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 32px;
    width: 100%;
}
.mode-x-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}
.mode-x-card p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-silver);
    line-height: 1.6;
}

/* --- TECH STACK --- */
.arx-stack { text-align: center; margin-bottom: 120px; }
.arx-stack p { margin-bottom: 20px; font-size: 12px; letter-spacing: 2px; }
.stack-tags span {
    color: #fff; margin: 0 10px;
    font-size: 12px; font-family: var(--font-mono);
}
.tag-wip { opacity: 0.5; font-style: italic; }

/* --- RELEASE FOOTER & CONTACT --- */
.arx-release-footer {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(0, 212, 189, 0.2);
}

.release-tag {
    font-family: var(--font-mono); color: var(--accent);
    font-size: 12px; letter-spacing: 3px;
    margin-bottom: 16px; text-shadow: 0 0 10px var(--accent);
}
.arx-release-footer h2 {
    font-size: 32px; margin-bottom: 40px;
    text-transform: uppercase; letter-spacing: 2px;
}
.patch-notes-section {
    max-width: 900px;
    margin: 60px auto 40px auto;
    padding: 28px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(12, 12, 12, 0.95) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.patch-notes-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.patch-notes-section h3 {
    font-size: 24px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.patch-notes-section p {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #f0e3b0;
    line-height: 1.7;
}

.countdown-grid {
    display: flex; justify-content: center; gap: 15px;
    flex-wrap: wrap; margin-bottom: 50px;
}
.time-block {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(0, 20, 20, 0.5);
    border: 1px solid rgba(0, 212, 189, 0.3);
    padding: 15px 10px; min-width: 70px; border-radius: 4px;
}
.time-block span:first-child {
    font-family: var(--font-mono); font-size: 24px; font-weight: 700;
    color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.time-block .label {
    font-family: var(--font-sans); font-size: 9px;
    color: var(--accent); margin-top: 5px; letter-spacing: 1px;
}

/* CONTACT MODULE TRANSITIONS */
#contact-trigger, #contact-input { transition: opacity 0.3s ease; }
.fake-form {
    display: flex; align-items: center;
    border: 1px solid var(--border);
    background: #000;
}
.input-line {
    flex: 1; padding: 16px;
    font-family: var(--font-mono); font-size: 12px;
    color: #fff;
}
.input-line::placeholder { color: #555; }
.submit-btn {
    padding: 16px 24px;
    background: #fff; color: #000;
    font-family: var(--font-mono); font-size: 12px;
    font-weight: 700; cursor: pointer;
}
.submit-btn:hover { background: var(--accent); }

/* DEPLOY DOWNLOAD MODAL */
.os-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
}

.os-modal.hidden {
    display: none;
}

.os-modal-content {
    width: 100%;
    max-width: 460px;
    background: #06070c;
    border: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(0, 212, 189, 0.25);
    padding: 24px;
    text-align: center;
}

.os-modal-content h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.os-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.os-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 10px 14px;
    cursor: pointer;
}

.os-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.docs-password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-password-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #000;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
}

.docs-password-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 189, 0.35);
}

.docs-password-error {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #ff6b6b;
}

.hidden {
    display: none !important;
}


/* --- ANIMATION KEYFRAMES --- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes radarSweep { 
    0% { transform: rotate(0deg); opacity: 0; }
    20% { opacity: 1; } 
    100% { transform: rotate(360deg); opacity: 0; }
}
@keyframes barBounce { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1.0); } }

/* --- MOBILE --- */
@media(max-width: 900px) {
    .holo-layer { display: none; }
    .arx-hero { flex-direction: column; }
    .arx-panel { width: 100%; max-width: 100%; }
    .custom-logo { font-size: 36px; }
    .stat-item h3 { font-size: 32px; }
}
