:root {
    --hack-bg: #050505;
    --hack-text: #00ff00;
    --hack-dim: #005500;
    --hack-border: #00aa00;
    --hack-surface: #0a0a0a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--hack-bg); color: var(--hack-text);
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 15px; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--hack-text); color: #000; }

/* Matrix Rain Background (CSS simulation) */
.matrix-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(180deg, rgba(0,255,0,0.05) 0%, transparent 100%);
    z-index: -1; pointer-events: none;
}

.hack-container { max-width: 1000px; margin: 0 auto; padding: 20px;}

/* Header */
.hack-header {
    border-bottom: 1px solid var(--hack-border); padding-bottom: 20px; margin-bottom: 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.hack-brand { font-size: 24px; font-weight: bold; text-shadow: 0 0 5px var(--hack-text);}
.hack-brand::before { content: 'root@'; color: var(--hack-dim);}
.hack-nav { display: flex; gap: 30px; }
.hack-nav a { padding: 5px 10px; transition: all 0.2s;}
.hack-nav a:hover, .hack-nav a.active { background: var(--hack-text); color: #000; box-shadow: 0 0 10px var(--hack-text);}

/* Hero */
.hack-hero { margin-bottom: 60px; padding: 40px; border: 1px solid var(--hack-dim); background: var(--hack-surface); position: relative;}
.hack-hero::before { content: '[ SYSTEM ACCESS GRANTED ]'; position: absolute; top: -10px; left: 20px; background: var(--hack-bg); padding: 0 10px; color: var(--hack-border);}
.hack-hero h1 { font-size: 48px; margin-bottom: 20px; text-transform: uppercase;}
.hack-hero p { font-size: 18px; margin-bottom: 30px; color: #00cc00;}
.btn-hack {
    display: inline-block; border: 1px solid var(--hack-text); color: var(--hack-text);
    padding: 12px 24px; font-size: 16px; font-weight: bold; text-transform: uppercase;
    transition: all 0.2s; cursor: pointer; background: transparent;
}
.btn-hack:hover { background: var(--hack-text); color: #000; box-shadow: 0 0 15px var(--hack-text);}

/* Stats */
.hack-stats { display: flex; justify-content: space-between; margin-bottom: 60px; border-top: 1px dashed var(--hack-dim); border-bottom: 1px dashed var(--hack-dim); padding: 20px 0;}
.hs-item { text-align: center; flex: 1; border-right: 1px dashed var(--hack-dim);}
.hs-item:last-child { border-right: none; }
.hs-val { font-size: 32px; font-weight: bold; text-shadow: 0 0 8px var(--hack-text);}
.hs-lbl { font-size: 12px; color: var(--hack-dim); text-transform: uppercase;}

/* Grid */
.hack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px;}
.hg-card { border: 1px solid var(--hack-dim); padding: 30px; background: rgba(0,255,0,0.02); transition: all 0.3s;}
.hg-card:hover { border-color: var(--hack-text); box-shadow: inset 0 0 10px rgba(0,255,0,0.1);}
.hg-icon { font-size: 24px; margin-bottom: 15px;}
.hg-card h3 { font-size: 18px; margin-bottom: 15px; border-bottom: 1px solid var(--hack-dim); padding-bottom: 5px;}
.hg-card p { font-size: 14px; color: #00aa00;}

/* Terminal block */
.hack-term { background: #000; border: 1px solid var(--hack-border); padding: 20px; margin-bottom: 60px; font-family: monospace;}
.ht-line { margin-bottom: 8px; }
.ht-line span.prompt { color: var(--hack-dim); margin-right: 10px;}
.ht-line span.cmd { color: #fff; }
.ht-line span.out { color: var(--hack-text); }

/* FAQ */
.hack-faq { margin-bottom: 60px;}
.hack-faq h2 { border-bottom: 1px solid var(--hack-border); padding-bottom: 10px; margin-bottom: 30px;}
.fq-item { margin-bottom: 20px; padding-left: 20px; border-left: 2px solid var(--hack-dim);}
.fq-q { font-weight: bold; margin-bottom: 5px; font-size: 16px;}
.fq-q::before { content: '?> '; color: var(--hack-dim);}
.fq-a { color: #00aa00; font-size: 14px;}
.fq-a::before { content: '-> '; color: var(--hack-dim);}

footer { text-align: center; padding: 20px; border-top: 1px solid var(--hack-dim); font-size: 12px; color: var(--hack-dim);}

@media (max-width: 900px) {
    .hack-header { flex-direction: column; gap: 20px; }
    .hack-stats { flex-direction: column; gap: 20px; border: none;}
    .hs-item { border-right: none; border-bottom: 1px dashed var(--hack-dim); padding-bottom: 20px;}
    .hack-grid { grid-template-columns: 1fr; }
}