/* $67 Crypto Landing Page Styles */

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

:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-muted: #888888;
    --text-dim: #666666;
    --border-color: #333333;
    --border-light: #444444;
    --glow-subtle: rgba(255, 255, 255, 0.3);
    --glow-strong: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Space Mono', 'Share Tech Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor with trail effect */
.cursor {
    width: 10px;
    height: 20px;
    background: var(--text-primary);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    animation: cursorBlink 1s infinite;
    box-shadow: 
        0 0 5px var(--glow-subtle),
        0 0 10px var(--glow-subtle);
    transition: transform 0.1s ease-out;
}

.cursor::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    opacity: 0.3;
    animation: cursorTrail 0.3s ease-out;
}

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

@keyframes cursorTrail {
    from { transform: scale(1.5); opacity: 0.5; }
    to { transform: scale(0.8); opacity: 0; }
}

/* Page Transitions */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page.active {
    opacity: 1;
}

.page.hidden {
    display: none;
}

/* Question Page */
#questionPage {
    text-align: center;
}

.question-text {
    font-size: 32px;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: typeIn 2s forwards;
}

@keyframes typeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.question-cursor {
    display: inline-block;
    width: 15px;
    height: 35px;
    background: var(--text-primary);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--glow-subtle);
}

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

.answer-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

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

.btn {
    padding: 18px 60px;
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease-out;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease-out;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 
        0 0 20px var(--glow-subtle),
        0 0 40px var(--glow-subtle),
        inset 0 0 20px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Main Page */
#mainPage {
    padding: 40px 20px;
}

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

/* ASCII Logo - Tilted Style */
.ascii-logo {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0 auto 50px;
    padding: 0;
    white-space: pre;
    color: var(--text-primary);
    text-shadow: 
        0 0 10px var(--glow-subtle),
        0 0 20px rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: logoFadeIn 1s ease-out forwards;
    font-weight: 700;
    transform: skewX(-12deg);
    display: inline-block;
    transition: all 0.3s ease-out;
    background: transparent;
    border: none;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: skewX(-12deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: skewX(-12deg) translateY(0);
    }
}

.ascii-logo:hover {
    text-shadow: 
        0 0 15px var(--glow-strong),
        0 0 30px var(--glow-subtle),
        0 0 50px rgba(255, 255, 255, 0.15);
    animation: logoGlitch 0.3s ease-out;
}

@keyframes logoGlitch {
    0% { transform: skewX(-12deg) translate(0); }
    20% { transform: skewX(-14deg) translate(-2px, 1px); }
    40% { transform: skewX(-10deg) translate(2px, -1px); }
    60% { transform: skewX(-13deg) translate(-1px, 1px); }
    80% { transform: skewX(-11deg) translate(1px, -1px); }
    100% { transform: skewX(-12deg) translate(0); }
}

/* Terminal Line */
.terminal-line {
    font-size: 24px;
    margin-bottom: 40px;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

.terminal-cursor {
    display: inline-block;
    width: 12px;
    height: 28px;
    background: var(--text-primary);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
    box-shadow: 0 0 6px var(--glow-subtle);
}

/* Main Tagline */
.main-tagline {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.sub-tagline {
    font-size: 20px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 1s 1.3s forwards;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Button Grid */
.button-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.button-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.button-row.row-1 {
    animation: fadeIn 1s 1.6s forwards;
}

.button-row.row-2 {
    animation: fadeIn 1s 1.9s forwards;
}

.main-btn {
    padding: 15px 35px;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.4s ease-out;
}

.main-btn:hover::before {
    left: 100%;
}

.main-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 
        0 0 15px var(--glow-subtle),
        0 0 30px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.main-btn.icon-btn {
    padding: 15px 20px;
    min-width: auto;
}

/* Copy Icon SVG */
.copy-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Arrow */
.arrow {
    margin-left: 5px;
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(255, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

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

/* Glow Effect */
.glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.04) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* CRT Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        transparent 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9997;
    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");
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Inline Terminal */
.inline-terminal {
    width: 75%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px 40px;
    margin: 60px auto 0;
    text-align: left;
    opacity: 0;
    animation: fadeIn 1s 2.2s forwards;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.8), 
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 0 1px var(--glow-subtle);
    transition: box-shadow 0.3s ease-out;
}

.inline-terminal:hover {
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.9), 
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 0 3px var(--glow-subtle);
}

.terminal-header {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-subtle);
}

.terminal-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.terminal-output {
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    padding-right: 10px;
}

.terminal-output .command {
    color: var(--text-muted);
}

.terminal-output .response {
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.prompt {
    color: var(--text-primary);
    margin-right: 5px;
    text-shadow: 0 0 5px var(--glow-subtle);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    outline: none;
    caret-color: var(--text-primary);
}

.terminal-input::placeholder {
    color: var(--border-light);
}

.terminal-input:focus {
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Live Chart Section */
.live-chart-section {
    width: 75%;
    max-width: 900px;
    margin: 60px auto 0;
    opacity: 0;
    animation: fadeIn 1s 2.5s forwards;
}

.chart-header {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-subtle);
}

/* Signal Command Styles */
.signal-scan-line {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.signal-whale {
    margin-top: 15px;
    font-family: 'Space Mono', monospace;
    white-space: pre;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--glow-subtle);
}

.signal-whale.signal-pulse {
    animation: whalePulse 1.5s ease-in-out;
}

@keyframes whalePulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 5px rgba(255,255,255,0.3);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4);
    }
}

.chart-container {
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.8), 
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 0 1px var(--glow-subtle);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.chart-container:hover {
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.9), 
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 0 3px var(--glow-subtle);
}

.chart-container.chart-pulse {
    animation: chartPulse 1.5s ease-in-out;
}

@keyframes chartPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.015);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255,255,255,0.15);
    }
}

.chart-container iframe {
    display: none;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.placeholder-text {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.placeholder-hint {
    font-size: 12px;
    color: var(--border-light);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .question-text {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 15px 40px;
        font-size: 16px;
        min-height: 48px;
    }

    .ascii-logo {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .terminal-line {
        font-size: 16px;
    }

    .main-tagline {
        font-size: 20px;
    }

    .sub-tagline {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .main-btn {
        padding: 14px 25px;
        font-size: 14px;
        min-height: 48px;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .main-btn {
        justify-content: center;
    }

    .inline-terminal,
    .live-chart-section {
        width: 100%;
        padding: 20px;
        margin-top: 40px;
    }

    .terminal-output {
        min-height: 200px;
        max-height: 280px;
    }

    .chart-container {
        height: 400px;
    }

    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .vignette {
        background: radial-gradient(ellipse at center, 
            transparent 40%, 
            rgba(0, 0, 0, 0.5) 100%);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scanline {
        animation: none;
    }

    .ascii-logo {
        animation: none;
        opacity: 1;
    }
}
