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

:root {
    --primary: #ffffff;
    --accent: #888888;
    --dark: #000000;
    --dark-card: #0a0a0a;
    --text: #ffffff;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
    --status-active: #ffffff;
    --status-idle: #555555;
    --status-transit: #333333;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100vh;
    overflow-y: auto;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><rect x="0" y="0" width="4" height="4" fill="white"/><rect x="4" y="0" width="4" height="4" fill="transparent"/><rect x="0" y="4" width="4" height="4" fill="transparent"/><rect x="4" y="4" width="4" height="4" fill="white"/><rect x="8" y="0" width="4" height="4" fill="white"/><rect x="12" y="0" width="4" height="4" fill="transparent"/><rect x="8" y="4" width="4" height="4" fill="transparent"/><rect x="12" y="4" width="4" height="4" fill="white"/><rect x="0" y="8" width="4" height="4" fill="white"/><rect x="4" y="8" width="4" height="4" fill="transparent"/><rect x="8" y="8" width="4" height="4" fill="white"/><rect x="12" y="8" width="4" height="4" fill="transparent"/><rect x="0" y="12" width="4" height="4" fill="transparent"/><rect x="4" y="12" width="4" height="4" fill="white"/><rect x="8" y="12" width="4" height="4" fill="transparent"/><rect x="12" y="12" width="4" height="4" fill="white"/></svg>'), auto;
}

button, a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect x="6" y="2" width="4" height="4" fill="%2300ff00"/><rect x="10" y="2" width="4" height="4" fill="%2300ff00"/><rect x="2" y="6" width="4" height="4" fill="%2300ff00"/><rect x="6" y="6" width="8" height="8" fill="%2300ff00"/><rect x="14" y="6" width="4" height="4" fill="%2300ff00"/><rect x="2" y="10" width="4" height="4" fill="%2300ff00"/><rect x="14" y="10" width="4" height="4" fill="%2300ff00"/><rect x="6" y="14" width="4" height="4" fill="%2300ff00"/><rect x="10" y="14" width="4" height="4" fill="%2200ff00"/></svg>'), pointer;
}

/* Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 120s linear infinite;
}

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

.container-full {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.header .container-full {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
}

.ca-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.ca-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ca-address {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text);
    background: transparent;
    border: none;
    padding: 0;
}

.ca-copy-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ca-copy-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.1);
}

.ca-copied {
    position: absolute;
    right: -60px;
    background: var(--primary);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ca-copied.show {
    opacity: 1;
    animation: copiedPop 0.3s ease;
}

@keyframes copiedPop {
    0% {
        transform: scale(0.8) translateY(5px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* How It Works Button */
.how-it-works-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    animation: catchAttention 3s ease-in-out infinite;
}

.how-it-works-btn:hover {
    border-color: var(--primary);
    animation: none;
}

@keyframes catchAttention {
    0%, 93%, 100% {
        transform: rotate(0deg);
    }
    94% {
        transform: rotate(-4deg);
    }
    95.5% {
        transform: rotate(4deg);
    }
    97% {
        transform: rotate(-4deg);
    }
    98.5% {
        transform: rotate(4deg);
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.nav-link:hover {
    color: var(--primary);
}

.x-link span {
    display: none;
}

.btn-buy {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000000;
    padding: 8px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #00cc00, #00aa00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.6);
}

/* Main Content - Single Page Layout */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
}

.main-content .container-full {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
}

/* Left Section */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-content {
    margin-bottom: 40px;
}

.main-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    color: var(--text);
    animation: titleFloat 3s ease-in-out infinite;
}

.title-subtitle {
    display: block;
    font-size: 32px;
    color: var(--text-muted);
    font-weight: 400;
    animation: titleFloat 3s ease-in-out infinite 1.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Stats Dashboard */
.stats-dashboard {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.stats-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.stat-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateX(3px);
}

.stat-icon {
    display: none;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.stat-dot.green {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.stat-dot.orange {
    background: #ff9500;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.5);
}

/* Right Section - Inventory */
.right-section {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.inventory-container {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    max-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.inventory-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.03) 0%, transparent 70%);
    animation: inventoryGlow 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes inventoryGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 1;
    }
}

.inventory-container > * {
    position: relative;
    z-index: 1;
}

.inventory-header {
    margin-bottom: 24px;
}

.inventory-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.inventory-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Inventory List */
.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar */
.inventory-list::-webkit-scrollbar {
    width: 6px;
}

.inventory-list::-webkit-scrollbar-track {
    background: transparent;
}

.inventory-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.inventory-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

.inventory-item {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out backwards;
}

.inventory-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
}

.item-type {
    display: inline-block;
    padding: 3px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.item-price-stock {
    text-align: right;
}

.item-price {
    font-size: 16px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 4px;
}

.item-stock {
    font-size: 12px;
    color: var(--text-muted);
}

.status-row {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-dot.blue {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.status-dot.orange {
    background: #ff9500;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.5);
}

.status-dot.red {
    background: #ff3b30;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Header Mobile */
    .header .container-full {
        grid-template-columns: 1fr;
        padding: 15px 20px;
        gap: 15px;
    }

    .header-left {
        justify-content: center;
    }

    .ca-container {
        font-size: 11px;
        padding: 6px 10px;
    }

    .ca-label {
        font-size: 10px;
    }

    .ca-address {
        font-size: 10px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ca-copy-btn svg {
        width: 12px;
        height: 12px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .how-it-works-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .nav-link {
        font-size: 11px;
    }

    .btn-buy {
        padding: 8px 20px;
        font-size: 11px;
    }

    .header-right {
        display: none;
    }

    /* Main Content Mobile */
    .main-content {
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start;
    }

    .main-content .container-full {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    /* Title Mobile */
    .main-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .title-subtitle {
        font-size: 24px;
    }

    .tagline {
        font-size: 13px;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    /* Stats Dashboard Mobile */
    .stats-dashboard {
        padding: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 9px;
    }

    /* Inventory Mobile */
    .inventory-container {
        max-height: 500px;
        padding: 20px;
    }

    .inventory-title {
        font-size: 10px;
    }

    .inventory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
        min-width: auto;
        font-size: 11px;
    }

    .filter-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .filter-btn {
        flex: 1;
        font-size: 10px;
        padding: 8px 10px;
    }

    .inventory-item {
        padding: 14px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-type {
        font-size: 8px;
        padding: 2px 8px;
    }

    .item-price {
        font-size: 14px;
    }

    .item-stock {
        font-size: 11px;
    }

    .status-item {
        font-size: 11px;
    }

    /* Footer Mobile */
    .footer {
        padding: 20px;
        font-size: 11px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 25px;
        margin: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .manifesto-content h3 {
        font-size: 16px;
    }

    .manifesto-content p,
    .manifesto-intro {
        font-size: 13px;
    }

    .modal-highlight {
        font-size: 14px;
    }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .header .container-full {
        padding: 20px 30px;
    }

    .main-content .container-full {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
    }

    .inventory-container {
        max-height: 600px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 60px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    border-color: var(--primary);
    background: var(--dark-card);
}

.modal-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 48px;
    color: var(--text);
    letter-spacing: -1px;
}

.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 32px;
    animation: fadeIn 0.5s ease-out backwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }

.step-number {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    min-width: 40px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text);
}

.step-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

.modal-cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.modal-highlight {
    font-size: 16px;
    font-weight: 300;
    color: var(--text);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    z-index: 100;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content .container-full {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .left-section {
        position: relative;
        top: 0;
    }

    .main-title {
        font-size: 48px;
    }

    .title-subtitle {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 16px;
        flex-wrap: wrap;
    }

    .how-it-works-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .main-title {
        font-size: 36px;
    }

    .title-subtitle {
        font-size: 24px;
    }

    .inventory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .modal-content {
        padding: 40px 24px;
        margin: 20px;
    }

    .modal-title {
        font-size: 24px;
    }
}
