@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

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

:root {
    --terminal-green: #00ff41;
    --terminal-green-dark: #00cc34;
    --terminal-green-muted: #4a9d5a;
    --muted-orange: #cc7a00;
    --muted-red: #cc3434;
    --void-black: #0c0c0c;
    --steel-gray: #2f3542;
    --ghost-white: #f1f2f6;
    --neon-blue: #3742fa;
    --grid-dark: #1a1a1a;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--void-black);
    color: var(--ghost-white);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Terminal Window Effect */
.terminal-window {
    border: 2px solid var(--steel-gray);
    border-radius: 8px 8px 0 0;
    background: var(--void-black);
    margin: 2rem 0;
    overflow: hidden;
}

.terminal-header {
    background: var(--steel-gray);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.terminal-dots {
    display: flex;
    gap: 0.3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--danger-red); }
.dot.yellow { background: var(--warning-amber); }
.dot.green { background: var(--terminal-green); }

.terminal-content {
    padding: 1.5rem;
    background: var(--void-black);
    font-family: 'JetBrains Mono', monospace;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--steel-gray);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--terminal-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--ghost-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    border-color: var(--terminal-green);
    color: var(--terminal-green);
    background: rgba(0, 255, 65, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--ghost-white);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover {
    background: transparent;
    color: var(--muted-orange);
    box-shadow: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    margin-top: 80px;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-content {
    z-index: 2;
}

.threat-level {
    display: inline-block;
    background: var(--danger-red);
    color: var(--void-black);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ghost-white);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--terminal-green);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(241, 242, 246, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    background: transparent;
    border: 2px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--terminal-green);
    color: var(--void-black);
}

.btn-danger {
    border-color: var(--danger-red);
    color: var(--danger-red);
}

.btn:hover {
    background: var(--terminal-green);
    color: var(--void-black);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.btn-danger:hover {
    background: var(--danger-red);
    color: var(--ghost-white);
    border-color: var(--danger-red);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Section Styling */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    background: var(--neon-blue);
    color: var(--ghost-white);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--ghost-white);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(241, 242, 246, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Threat Cards */
.threats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.threat-card {
    background: var(--grid-dark);
    border: 1px solid var(--steel-gray);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.threat-card:hover {
    border-color: var(--muted-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 122, 0, 0.2);
}

.threat-header {
    background: var(--muted-orange);
    color: var(--ghost-white);
    padding: 1rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.threat-level-badge {
    background: var(--void-black);
    color: var(--muted-orange);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0;
}


.threat-content {
    padding: 2rem 1.5rem;
}

.threat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.threat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--ghost-white);
    font-weight: 600;
}

.threat-card p {
    color: rgba(241, 242, 246, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.threat-impact {
    background: var(--void-black);
    border: 1px solid var(--steel-gray);
    padding: 1rem;
    margin-top: 1.5rem;
}

.impact-label {
    font-size: 0.8rem;
    color: var(--muted-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.impact-text {
    color: var(--ghost-white);
    font-weight: 600;
}

/* Challenge Box */
.challenge-box {
    background: var(--void-black);
    border: 3px solid var(--muted-orange);
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
    position: relative;
}

.challenge-box::before {
    content: 'OPSEC';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--muted-orange);
    color: var(--void-black);
    padding: 0.5rem 2rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.challenge-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--muted-orange);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.challenge-description {
    font-size: 1.2rem;
    color: rgba(241, 242, 246, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Wallet Security Matrix - Simplified Visual Hierarchy */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.wallet-card {
    background: var(--grid-dark);
    border: 1px solid var(--steel-gray);
    transition: all 0.3s ease;
    position: relative;
}

.wallet-card:hover {
    border-color: var(--terminal-green-muted);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 157, 90, 0.2);
}

.wallet-header {
    background: var(--steel-gray);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-icon {
    font-size: 2.5rem;
}

.wallet-title h3 {
    color: var(--ghost-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-subtitle {
    color: rgba(241, 242, 246, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.wallet-content {
    padding: 2rem 1.5rem;
}

/* Typography Hierarchy - Green for positive, Red for negative */
.wallet-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--terminal-green-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--terminal-green-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Target "Critical Failure Points" specifically */
.failure-points h5 {
    color: var(--muted-red) !important;
}

.wallet-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--terminal-green-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Target "When They Fail" specifically */
.when-fails h6 {
    color: var(--muted-red) !important;
}

.wallet-content p {
    color: rgba(241, 242, 246, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.wallet-concept,
.wallet-promise,
.wallet-reality,
.failure-points,
.when-works,
.when-fails {
    margin-bottom: 1.5rem;
}

.failure-points ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.8rem;
}

.failure-points li {
    color: rgba(241, 242, 246, 0.8);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
    font-weight: 400;
}

.failure-points li::before {
    content: '▸';
    color: var(--muted-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Brutal Truth - Styled like original with new colors - 30% smaller box */
.brutal-truth {
    background: var(--void-black);
    border: 3px solid var(--muted-red);
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
    position: relative;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.brutal-truth::before {
    content: 'REALITY CHECK';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--muted-red);
    color: var(--ghost-white);
    padding: 0.5rem 2rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.truth-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--muted-red);
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.truth-content h3 {
    font-size: 1.3rem;
    color: var(--muted-red);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.truth-content p {
    font-size: 1.1rem;
    color: rgba(241, 242, 246, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: left;
    font-weight: 400;
}

.truth-content strong {
    color: var(--terminal-green);
    font-weight: 700;
}

/* Mobile Responsiveness for Brutal Truth */
@media (max-width: 768px) {
    .brutal-truth {
        max-width: 100%;
        margin: 2rem 0;
        padding: 2rem 1.5rem;
    }

    .brutal-truth::before {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
    }

    .truth-header h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        letter-spacing: 1px;
    }

    .truth-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.5px;
    }

    .truth-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
}

/* Footer */
footer {
    background: var(--steel-gray);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 3px solid var(--terminal-green);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--terminal-green);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: rgba(241, 242, 246, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--terminal-green);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid var(--steel-gray);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border: none;
        border-bottom: 1px solid var(--steel-gray);
    }

    .nav-menu a:hover {
        background: rgba(0, 255, 65, 0.1);
        border-bottom: 1px solid var(--steel-gray);
    }

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

    .btn-group {
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* Code blocks */
.code-block {
    background: var(--void-black);
    border: 1px solid var(--steel-gray);
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.code-line {
    color: var(--ghost-white);
    margin-bottom: 0.5rem;
}

.code-comment {
    color: var(--terminal-green);
}

.code-error {
    color: var(--danger-red);
}

.code-warning {
    color: var(--warning-amber);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ghost-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.logo-image {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}