:root {
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --text: #e0e0e0;
    --text-dim: #666;
    --accent: #f7931a; /* bitcoin orange */
    --accent-glow: rgba(247, 147, 26, 0.4);
    --purple: #9d4edd;
    --green: #00ff9f;
    --red: #ff4444;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* noise overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* header */
header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.glitch-wrapper {
    display: inline-block;
}

h1.glitch {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--accent);
    position: relative;
    text-shadow: 0 0 20px var(--accent-glow);
    animation: flicker 3s infinite;
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1.glitch::before {
    color: var(--purple);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

h1.glitch::after {
    color: var(--green);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}

.tagline {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* nav */
.terminal-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    border-top: 1px solid rgba(247, 147, 26, 0.2);
    border-bottom: 1px solid rgba(247, 147, 26, 0.2);
    margin: 2rem 0;
}

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

.terminal-nav a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.terminal-nav a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.terminal-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.terminal-nav a:hover::after {
    width: 100%;
}

/* sections */
.terminal-section {
    background: var(--bg-secondary);
    border: 1px solid rgba(247, 147, 26, 0.15);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    background: rgba(247, 147, 26, 0.1);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(247, 147, 26, 0.15);
}

.bracket {
    color: var(--accent);
}

.content {
    padding: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
}

.content p:last-child {
    margin-bottom: 0;
}

.dim {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.lightning-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.2s;
}

.lightning-link:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* powers grid */
.powers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.power-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(247, 147, 26, 0.1);
    border-radius: 4px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.power-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.1);
}

.power-card .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.power-card h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.power-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

/* quotes */
.quotes-section {
    min-height: 150px;
    position: relative;
}

.quote {
    display: none;
    padding: 0;
    border: none;
    margin: 0;
}

.quote.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.quote cite {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: normal;
}

.quote-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(247, 147, 26, 0.1);
}

.quote-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.quote-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

#quote-counter {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* contact */
.contact-content {
    text-align: center;
}

.ascii-bitcoin {
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 1.5rem;
    white-space: pre;
    text-shadow: 0 0 10px var(--accent-glow);
}

.blink-cursor {
    display: inline-block;
    color: var(--green);
    animation: blink 1s step-end infinite;
    margin-top: 1rem;
}

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

/* footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(247, 147, 26, 0.1);
    margin-top: 2rem;
}

footer p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.timestamp {
    color: var(--accent);
}

/* mobile */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 0 1rem;
    }
    
    .terminal-nav {
        gap: 1rem;
    }
    
    .ascii-bitcoin {
        font-size: 0.4rem;
    }
    
    .quote p {
        font-size: 1.1rem;
    }
}

/* selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffaa33;
}
