/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* BlackSprut Official Colors */
    --primary: #4636ff;
    --dark-bg: #0f0f0f;
    --white: #fff;
    --light-gray: #f1f1f1;
    --dark-gray: #b7b7b7;
    --text-gray: #757575;
    --black: #2f2f2f;
    --red: #ef4444;
    --green: #22c55e;
    --yellow: #facc15;
    --sky: #f0f2ff;
    
    /* Matrix/Terminal Colors */
    --matrix-green: #00ff41;
    --neon-cyan: #00ffff;
    --dark-green: #003300;
    --electric: #00ff88;
    --terminal-bg: #000000;
    --terminal-border: #333333;
    
    /* Fonts */
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    --font-pixel: 'VT323', monospace;
    --font-primary: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--terminal-bg);
    color: var(--matrix-green);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== MATRIX BACKGROUND ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
}

/* ===== SCANLINES EFFECT ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.terminal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--matrix-green);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 30px;
    filter: brightness(0) saturate(100%) invert(1);
}

.nav-title {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--matrix-green);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--dark-gray);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 5px var(--matrix-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--matrix-green);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 50px;
    position: relative;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    margin-bottom: 40px;
    overflow: hidden;
}

.terminal-header {
    background: var(--dark-green);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--matrix-green);
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: var(--red); }
.btn-minimize { background: var(--yellow); }
.btn-maximize { background: var(--green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--matrix-green);
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--matrix-green);
    font-weight: 700;
}

.command {
    color: var(--white);
    margin-left: 10px;
}

.cursor {
    color: var(--matrix-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.ascii-logo {
    color: var(--matrix-green);
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1;
    margin: 20px 0;
    text-align: center;
    white-space: pre;
}

.system-info {
    margin-top: 20px;
}

.info-line {
    color: var(--electric);
    margin-bottom: 5px;
    font-size: 12px;
}

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

.stat-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(70, 54, 255, 0.2);
    overflow: hidden;
}

.stat-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.stat-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--matrix-green);
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--matrix-green);
}

.stat-unit {
    color: var(--matrix-green);
    font-size: 18px;
}

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

.glitch-text {
    font-size: 24px;
    color: var(--white);
    text-align: center;
    position: relative;
    font-family: var(--font-mono);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(2px, -2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(2px, 2px);
        filter: hue-rotate(360deg);
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(0, 51, 0, 0.05);
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 28px;
    color: var(--matrix-green);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.terminal-title .prompt {
    color: var(--matrix-green);
    font-weight: 700;
}

.terminal-output-block {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--matrix-green);
    border-radius: 4px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.output-line {
    color: var(--white);
    margin-bottom: 10px;
}

.output-line:last-child {
    margin-bottom: 0;
}

/* ===== CONTENT GRIDS ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--matrix-green);
    border-radius: 4px;
}

.feature-icon {
    color: var(--matrix-green);
    font-size: 18px;
    font-weight: 700;
}

.feature-text {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
}

.image-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    overflow: hidden;
}

.terminal-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.2);
}

/* ===== SECURITY SECTION ===== */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.security-windows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.security-window {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(70, 54, 255, 0.2);
    overflow: hidden;
}

.window-header {
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.window-content {
    padding: 15px;
    text-align: center;
}

.security-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    filter: brightness(0.9);
}

.window-caption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--matrix-green);
}

/* ===== MIRRORS SECTION ===== */
.mirrors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.mirrors-terminal .terminal-window {
    margin-bottom: 0;
}

.mirror-list {
    font-family: var(--font-mono);
    font-size: 14px;
}

.mirror-line {
    margin-bottom: 15px;
}

.mirror-output {
    margin-top: 15px;
}

.mirror-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
}

.mirror-status {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.mirror-link {
    color: var(--matrix-green);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: all 0.3s ease;
}

.mirror-link:hover {
    color: var(--white);
    text-shadow: 0 0 5px var(--matrix-green);
}

.mirror-cursor {
    color: var(--matrix-green);
    animation: blink 1s infinite;
    margin-top: 10px;
}

/* ===== MARKETPLACE SECTION ===== */
.marketplace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.market-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.metric-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--matrix-green);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--matrix-green);
    margin-bottom: 10px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 0 10px var(--matrix-green);
}

/* ===== DISPUTE SECTION ===== */
.dispute-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.dispute-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 24px;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--matrix-green);
    font-weight: 700;
}

.card-content {
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== VENDORS SECTION ===== */
.vendors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.vendor-rules {
    margin-top: 30px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.rule-item.allowed {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--green);
}

.rule-item.forbidden {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--red);
}

.rule-icon {
    font-size: 16px;
}

.rule-text {
    color: var(--white);
}

/* ===== PROTECTION SECTION ===== */
.protection-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.protection-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.alert-box {
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid;
}

.alert-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--red);
}

.alert-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: var(--green);
}

.alert-box.info {
    background: rgba(70, 54, 255, 0.1);
    border-left-color: var(--primary);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.alert-icon {
    font-size: 18px;
}

.alert-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--matrix-green);
    font-weight: 700;
}

.alert-content {
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== ECONOMICS SECTION ===== */
.economics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.table-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    overflow: hidden;
}

.commission-table {
    font-family: var(--font-mono);
    font-size: 14px;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--terminal-border);
}

.table-row.header {
    background: var(--dark-green);
    color: var(--matrix-green);
    font-weight: 700;
}

.table-cell {
    color: var(--white);
}

.table-cell.success {
    color: var(--green);
}

.table-cell.disabled {
    color: var(--red);
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.readme-block {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

/* ===== FAQ SECTION ===== */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--matrix-green);
    background: rgba(0, 51, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 51, 0, 0.4);
}

.faq-toggle {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer .terminal-output-block {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* ===== DISCLAIMER SECTION ===== */
.disclaimer-section {
    background: rgba(239, 68, 68, 0.1);
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    padding: 60px 0;
}

.disclaimer-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-text {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.warning-line {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 10px;
}

.disclaimer-line {
    color: var(--white);
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid var(--matrix-green);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 30px;
    filter: brightness(0) saturate(100%) invert(1);
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--matrix-green);
    font-weight: 700;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dark-gray);
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--matrix-green);
    text-shadow: 0 0 5px var(--matrix-green);
}

.footer-terminal {
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-terminal .terminal-line {
    margin-bottom: 5px;
}

.footer-terminal .prompt {
    color: var(--matrix-green);
}

.footer-terminal .command {
    color: var(--white);
}

.uptime-text {
    color: var(--green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--terminal-border);
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dark-gray);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--matrix-green);
    border-radius: 50%;
    color: var(--matrix-green);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--matrix-green);
    color: var(--terminal-bg);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.back-to-top-text {
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .content-grid,
    .security-grid,
    .mirrors-content,
    .marketplace-grid,
    .vendors-grid,
    .economics-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .ascii-logo {
        font-size: 6px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .stat-content {
        grid-template-columns: 1fr;
    }
    
    .dispute-features {
        grid-template-columns: 1fr;
    }
    
    .protection-alerts {
        grid-template-columns: 1fr;
    }
    
    .market-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .ascii-logo {
        font-size: 4px;
    }
    
    .glitch-text {
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end);
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--matrix-green);
    }
    50% {
        text-shadow: 0 0 20px var(--matrix-green), 0 0 30px var(--matrix-green);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

