/* ==========================================================================
   ALEX AI CUBE - STYLESHEET & DESIGN SYSTEM
   Brand: Nextro | Spectrum: Neon Violet & Obsidian Glass
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-primary: #07060c;
    --bg-card: rgba(18, 14, 29, 0.65);
    --bg-card-hover: rgba(28, 22, 46, 0.8);
    --bg-card-solid: #0d0a16;
    
    --purple-primary: #a855f7;
    --purple-light: #c084fc;
    --purple-bright: #d8b4fe;
    --purple-dark: #6b21a8;
    --purple-glow: rgba(168, 85, 247, 0.5);
    --purple-aura: rgba(139, 92, 246, 0.25);

    --glitch-red: #ef4444;
    --glitch-glow: rgba(239, 68, 68, 0.6);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --border-color: rgba(168, 85, 247, 0.18);
    --border-highlight: rgba(192, 132, 252, 0.4);

    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-code: 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* --- Background Ambient Glows --- */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
    top: -150px;
    left: 20%;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-dark) 0%, transparent 70%);
    bottom: -100px;
    right: 15%;
    animation-delay: -6s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.7;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 50px) scale(1.15); }
}

/* --- Typography Utilities --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-main);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--purple-bright) 50%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Container & Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-center { text-align: center; }

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

.section-subtitle {
    font-family: var(--font-code);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--purple-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.15;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 16px auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    color: #fff;
    box-shadow: 0 0 25px var(--purple-glow);
}

.btn-primary:hover, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover, .btn-secondary:active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover, .btn-outline:active {
    border-color: var(--purple-light);
    color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    min-height: 50px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 38px;
}

.btn-block { width: 100%; }

/* --- Navbar & Mobile Hamburger --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(7, 6, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.logo-cube {
    width: 24px;
    height: 24px;
    border: 2px solid var(--purple-primary);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 12px var(--purple-glow);
    transform: rotate(45deg);
}

.logo-cube-face {
    position: absolute;
    inset: 3px;
    background: var(--purple-primary);
    border-radius: 2px;
    animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.logo-badge {
    font-size: 0.7rem;
    font-family: var(--font-code);
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.nav-links.desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--purple-bright);
}

.news-nav-link {
    color: var(--text-main) !important;
    font-family: var(--font-code);
    font-size: 0.85rem !important;
}

.stock-nav-link {
    color: var(--purple-bright) !important;
    font-family: var(--font-code);
    font-size: 0.85rem !important;
    background: rgba(168, 85, 247, 0.12);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stock-nav-link:hover {
    background: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 12px var(--purple-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Hamburger Icon */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 9px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--purple-bright);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 9, 20, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.mobile-nav-drawer.active {
    max-height: 360px;
    padding: 20px 24px;
}

.mobile-link {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease;
}

.mobile-link:hover, .mobile-link:active {
    color: var(--purple-bright);
}

.mobile-link.highlight {
    color: var(--purple-bright);
    font-family: var(--font-code);
    font-size: 0.95rem;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    color: var(--purple-bright);
    font-size: 0.85rem;
    font-family: var(--font-code);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 44px;
}

.hero-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill-dot {
    width: 5px;
    height: 5px;
    background: var(--purple-light);
    border-radius: 50%;
}

/* --- Hero Image Visual Stage & Aura --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.aura-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.6) 0%, rgba(139, 92, 246, 0.2) 45%, transparent 70%);
    filter: blur(35px);
    transition: all 0.5s ease;
    animation: auraPulse 4s infinite alternate ease-in-out;
}

@keyframes auraPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-stage:hover .hero-product-img {
    transform: scale(1.03);
}

/* --- 3D Interactive CSS Cube Section --- */
.cube-interactive-container {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.cube-instructions {
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--purple-bright);
    margin-bottom: 30px;
}

.cube-viewport {
    width: 260px;
    height: 260px;
    margin: 40px auto 60px;
    perspective: 1000px;
    cursor: grab;
    touch-action: none;
}

.cube-viewport:active {
    cursor: grabbing;
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(35deg);
    transition: transform 0.1s ease-out;
}

.cube-3d.auto-spinning {
    animation: autoSpin 16s infinite linear;
}

@keyframes autoSpin {
    from { transform: rotateX(-15deg) rotateY(0deg); }
    to { transform: rotateX(-15deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(15, 12, 26, 0.92);
    border: 2px solid var(--purple-primary);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.3), 0 0 30px rgba(168, 85, 247, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: visible;
    border-radius: 12px;
    overflow: hidden;
}

.face-front  { transform: rotateY(0deg) translateZ(130px); }
.face-back   { transform: rotateY(180deg) translateZ(130px); }
.face-right  { transform: rotateY(90deg) translateZ(130px); }
.face-left   { transform: rotateY(-90deg) translateZ(130px); }
.face-top    { transform: rotateX(90deg) translateZ(130px); background: rgba(22, 17, 38, 0.96); }
.face-bottom { transform: rotateX(-90deg) translateZ(130px); }

.face-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
}

.led-slit-ring {
    position: absolute;
    top: 32px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--purple-primary);
    box-shadow: 0 0 15px var(--purple-primary), 0 0 30px var(--purple-bright);
    border-radius: 2px;
    animation: ledPulse 3s infinite alternate;
    z-index: 1;
}

@keyframes ledPulse {
    0% { opacity: 0.6; filter: brightness(0.9); }
    100% { opacity: 1; filter: brightness(1.4); }
}

.face-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.face-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 0 15px var(--purple-primary);
}

.face-spec {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--purple-bright);
    letter-spacing: 0.1em;
}

.top-touch-surface {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-bright) 0%, var(--purple-primary) 70%);
    box-shadow: 0 0 25px var(--purple-glow);
}

.base-serial {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--purple-bright);
    text-shadow: 0 0 10px var(--purple-primary);
    background: rgba(168, 85, 247, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cube-controls-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Acoustics & Design Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card-solid);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(7, 6, 12, 0.95) 0%, transparent 100%);
}

.gallery-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Technical Specs Section --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.spec-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.spec-box:hover {
    transform: translateY(-4px);
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.spec-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--purple-bright);
    margin-bottom: 8px;
}

.spec-label {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.spec-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- NEXTRO NEWS ARCHIVES SHOWCASE SECTION --- */
.news-section {
    background: linear-gradient(180deg, rgba(13, 10, 22, 0.5) 0%, rgba(7, 6, 12, 0.9) 100%);
    border-top: 1px solid var(--border-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple-primary);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.25);
}

.news-card.danger-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.news-card.danger-card:hover {
    border-color: var(--glitch-red);
    box-shadow: 0 12px 35px var(--glitch-glow);
}

.news-thumb-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.news-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb-box img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 12, 26, 0.9);
    border: 1px solid var(--border-color);
    color: var(--purple-bright);
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.news-date-badge.warning {
    color: #f59e0b;
    border-color: #f59e0b;
}

.news-date-badge.danger {
    color: var(--glitch-red);
    border-color: var(--glitch-red);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.news-tag.positive { color: #10b981; }
.news-tag.warning { color: #f59e0b; }
.news-tag.danger { color: var(--glitch-red); }

.news-headline {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.news-snippet {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-btn {
    align-self: flex-start;
}

.danger-btn {
    border-color: var(--glitch-red) !important;
    color: #fca5a5 !important;
}

.danger-btn:hover {
    background: var(--glitch-red) !important;
    color: #fff !important;
}

/* NEWSPAPER READER LIGHTBOX MODAL */
.news-modal-card {
    max-width: 900px !important;
    width: 94% !important;
    max-height: 94vh !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
}

.news-tab-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.news-tab-btn:hover {
    color: #fff;
    border-color: var(--purple-light);
}

.news-tab-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple-primary);
    color: var(--purple-bright);
    font-weight: 700;
}

.news-tab-btn.danger-tab.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--glitch-red);
    color: #fca5a5;
}

.news-viewer-container {
    flex-grow: 1;
    overflow-y: auto;
    background: #000;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    padding: 12px;
    max-height: 75vh;
}

.news-viewer-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.clickable-milestone {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-milestone:hover {
    transform: scale(1.03);
    border-color: var(--purple-primary);
}

/* --- Footer & Banner --- */
.cta-section {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.08) 100%);
    border-top: 1px solid var(--border-color);
    padding: 100px 0;
}

.cta-title { font-size: 2.8rem; margin-bottom: 12px; }
.cta-subtitle { color: var(--text-muted); font-size: 1.15rem; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: #050408;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--purple-bright); }

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

.status-dot.status-down {
    width: 8px;
    height: 8px;
    background: var(--glitch-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glitch-red);
    animation: pulseRedDot 1.2s infinite alternate;
}

@keyframes pulseRedDot {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text-down {
    color: var(--glitch-red);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --- ARG PROGRESSIVE ANOMALY OVERLAYS --- */
.crash-overlay-container {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 3, 7, 0.85);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.apng-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

.gif-cyber-frame {
    position: relative;
    background: #090712;
    border: 1px solid var(--purple-primary);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 0 50px var(--purple-glow), 0 20px 80px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    animation: framePopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes framePopIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.gif-badge {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--purple-bright);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    background: rgba(168, 85, 247, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.gif-image-holder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.gif-image-holder img,
.gif-image-holder canvas {
    max-width: 80vw;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    mix-blend-mode: lighten;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.gif-scanline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.5;
}

/* HIGH-TECH SLEEK TIMELINE CRASH SCREEN */
.crash-screen {
    position: absolute;
    inset: 0;
    background: #050308;
    color: #ef4444;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 10;
    animation: crashFlicker 0.25s ease;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.6;
}

.crash-content {
    max-width: 540px;
    width: 100%;
    border: 1px solid var(--glitch-red);
    background: rgba(18, 6, 10, 0.95);
    padding: 44px 36px;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.4), inset 0 0 30px rgba(239, 68, 68, 0.15);
    position: relative;
    z-index: 2;
}

.anomaly-warning-pill {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--glitch-red);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.crash-title-timeline {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.crash-subtitle-reality {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #fca5a5;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.crash-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glitch-red), transparent);
    margin: 24px 0 32px;
    opacity: 0.8;
}

.retry-counter-box {
    display: flex;
    justify-content: center;
}

.btn-crash-reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.4) 100%);
    border: 1px solid var(--glitch-red);
    color: #fff;
    font-family: var(--font-heading);
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.btn-crash-reload:hover, .btn-crash-reload:active {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, var(--glitch-red) 0%, #b91c1c 100%);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.7);
}

.btn-crash-reload .btn-text {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.attempts-pill {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

/* --- STOCK SIMULATION MODAL (2044-2049) --- */
.stock-modal-card {
    max-width: 760px !important;
    padding: 28px !important;
    background: #0b0914 !important;
}

.stock-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.stock-ticker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--purple-primary);
    color: var(--purple-bright);
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.stock-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.stock-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--glitch-red);
}

.price-change.negative {
    color: var(--glitch-red);
    font-family: var(--font-code);
    font-size: 0.95rem;
    font-weight: 600;
}

.stock-chart-container {
    position: relative;
    background: #06050b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

#stockCanvas {
    width: 100%;
    height: 240px;
    display: block;
}

.chart-tooltip {
    position: absolute;
    background: rgba(15, 12, 26, 0.95);
    border: 1px solid var(--purple-primary);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

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

.milestone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.milestone-card .m-year {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.milestone-card .m-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.milestone-card.positive .m-price { color: #10b981; }
.milestone-card.warning .m-price { color: #f59e0b; }
.milestone-card.crash .m-price { color: var(--glitch-red); }

.milestone-card .m-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.stock-notice-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--glitch-red);
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 0.85rem;
}

.notice-header {
    color: var(--glitch-red);
    font-family: var(--font-code);
    font-weight: 700;
    margin-bottom: 6px;
}

.stock-notice-box p {
    color: #fecaca;
    line-height: 1.4;
}

/* --- PURCHASE MODAL & ERROR CODE 66.444.66.8.44 --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: border-color 0.3s ease;
}

.modal-card.error-state {
    border-color: var(--glitch-red);
    box-shadow: 0 0 40px var(--glitch-glow);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-header h3 { font-size: 1.5rem; margin-bottom: 4px; color: #fca5a5; }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.order-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.order-preview img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.single-color-tag {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--purple-bright);
    margin-top: 2px;
}

.order-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-bright);
    margin-top: 4px;
}

/* ERROR BANNER DESIGN */
.error-banner-container {
    margin-top: 16px;
}

.error-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--glitch-red);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.error-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--glitch-red);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.error-code-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px dashed var(--glitch-red);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #fca5a5;
    margin-bottom: 10px;
    word-break: break-all;
}

.code-number {
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px var(--glitch-red);
}

.error-message {
    font-size: 0.85rem;
    color: #fecaca;
    line-height: 1.4;
}

.btn-disabled-error {
    background: #37171a !important;
    border-color: var(--glitch-red) !important;
    color: #fca5a5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    font-size: 0.85rem;
    padding: 14px 12px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE MEDIA QUERIES (TABLETS & PHONES)
   ========================================================================== */

@media (max-width: 900px) {
    .hero-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-hamburger {
        display: flex;
    }

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

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

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

@media (max-width: 600px) {
    .container {
        width: 92%;
        padding: 0 12px;
    }

    .section {
        padding: 60px 0;
    }

    .navbar {
        padding: 12px 0;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.3rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-features-row {
        gap: 8px;
    }

    .feature-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .image-stage {
        max-width: 320px;
    }

    .cube-interactive-container {
        padding: 24px 16px;
    }

    .cube-viewport {
        transform: scale(0.85);
        margin: 20px auto 40px;
    }

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

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

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .modal-card {
        padding: 20px;
    }

    .crash-content {
        padding: 28px 18px;
    }

    .gif-cyber-frame {
        padding: 12px;
    }
    
    .crash-title-timeline {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   NX-DIAGNOSTIC TERMINAL :: ERROR CODE INPUT SECTION
   ========================================================================== */

.diagnostic-section {
    padding: 80px 0;
    position: relative;
}

.diagnostic-frame {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(7, 6, 12, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.07), 0 0 120px rgba(168, 85, 247, 0.06);
}

.diag-topbar {
    background: rgba(239, 68, 68, 0.07);
    border-bottom: 1px solid rgba(239, 68, 68, 0.16);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.diag-dots {
    display: flex;
    gap: 6px;
}

.diag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.35);
}
.diag-dot:nth-child(2) { background: rgba(251, 191, 36, 0.3); }
.diag-dot:nth-child(3) { background: rgba(34, 197, 94, 0.2); }

.diag-topbar-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: rgba(239, 68, 68, 0.6);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.diag-body {
    padding: 32px 36px 38px;
}

.diag-log-line {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: rgba(239, 68, 68, 0.45);
    margin-bottom: 5px;
    letter-spacing: 0.04em;
}

.diag-log-line.dim {
    color: rgba(107, 114, 128, 0.4);
    font-size: 0.7rem;
}

.diag-prompt-label {
    font-family: var(--font-code);
    font-size: 0.86rem;
    color: #fca5a5;
    letter-spacing: 0.1em;
    margin-top: 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diag-prompt-label::before {
    content: '▶';
    color: rgba(239, 68, 68, 0.55);
    font-size: 0.68rem;
}

/* Segmented code input */
.code-segments-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 14px;
    margin-bottom: 26px;
}

.code-segment {
    display: flex;
    gap: 5px;
    align-items: center;
}

.code-dot-sep {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: rgba(239, 68, 68, 0.45);
    padding: 0 7px;
    line-height: 1;
    user-select: none;
}

.code-char-box {
    width: 34px;
    height: 46px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-code);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    caret-color: #ef4444;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.code-char-box:focus {
    border-color: rgba(239, 68, 68, 0.65);
    background: rgba(239, 68, 68, 0.09);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.18);
}

.code-char-box.filled {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Action row */
.diag-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-diag-verify {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #fca5a5;
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-diag-verify:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.18);
}

.btn-diag-clear {
    background: transparent;
    border: 1px solid rgba(107, 114, 128, 0.25);
    color: var(--text-dim);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-diag-clear:hover {
    border-color: rgba(107, 114, 128, 0.45);
    color: var(--text-muted);
}

/* Feedback */
.diag-feedback {
    margin-top: 18px;
    min-height: 24px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 0.2s;
}

.diag-feedback.visible { opacity: 1; }
.diag-feedback.error   { color: rgba(239, 68, 68, 0.75); }
.diag-feedback.success { color: #fff; }

.diag-feedback::before {
    content: '> ';
    color: rgba(239, 68, 68, 0.38);
}

/* Scanline overlay on frame */
.diagnostic-frame::after {
    content: '';
    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;
    border-radius: var(--radius-lg);
}
