:root {
    --bg: #06070A;
    --flash-red: #D90B1C;
    --lightning-yellow: #FFD400;
    --text-white: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --font-head: 'Kanit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --container-width: 1000px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Animation */
.speed-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.02) 40px,
        rgba(255, 255, 255, 0.02) 41px
    );
    z-index: -1;
    animation: speedMove 20s linear infinite;
    pointer-events: none;
}

@keyframes speedMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, .logo, .stat-value {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 800;
    font-style: italic;
}

p {
    color: var(--text-secondary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--lightning-yellow);
    text-shadow: 0 0 10px rgba(255, 212, 0, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--lightning-yellow);
}

.x-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.x-icon svg {
    width: 24px;
    height: 24px;
}

.x-icon:hover {
    color: var(--lightning-yellow);
    transform: scale(1.1);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--text-white);
    letter-spacing: -2px;
}

.subheadline {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-terminal {
    margin-bottom: 30px;
    width: 100%;
    max-width: 700px;
    text-align: left;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--font-head);
    font-style: italic;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--flash-red);
    color: var(--text-white);
    border: 2px solid var(--flash-red);
}

.btn-primary:hover {
    background-color: #c00010;
    border-color: #c00010;
    box-shadow: 0 0 20px rgba(217, 11, 28, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--lightning-yellow);
    color: var(--lightning-yellow);
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.3);
    transform: translateY(-2px);
}

/* Cards (How It Works) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--flash-red);
    box-shadow: 0 0 15px rgba(217, 11, 28, 0.15), inset 0 0 10px rgba(217, 11, 28, 0.05);
    transform: translateY(-3px);
}

.card h3 {
    color: var(--lightning-yellow);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Why It Matters */
.benefit-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.benefit-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--text-white);
}

.bolt {
    color: var(--lightning-yellow);
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Lightning Divider & Stats */
.lightning-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--lightning-yellow), transparent);
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    opacity: 0.5;
}

.lightning-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(4px);
    animation: zap 3s infinite linear;
}

@keyframes zap {
    0% { left: -50%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.stats-row {
    padding: 40px 0;
    background: rgba(255, 212, 0, 0.02);
    border-top: 1px solid rgba(255, 212, 0, 0.1);
    border-bottom: 1px solid rgba(255, 212, 0, 0.1);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    color: var(--text-white);
}

/* Terminal */
.terminal-window {
    background: #0f111a;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    overflow: hidden;
}

.terminal-header {
    background: #1a1c25;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    transform: translateX(-24px); /* Offset for dots to center title */
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.log-line {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: baseline;
    animation: fadeIn 0.3s ease-out;
}

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

.log-timestamp {
    color: #6c757d;
}

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

.system-msg {
    color: var(--text-secondary);
    font-style: italic;
}

.log-action {
    color: var(--lightning-yellow);
    font-weight: bold;
    margin-right: 10px;
}

.log-hash {
    color: var(--flash-red);
    opacity: 0.8;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--lightning-yellow);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

.wallet-bar {
    background: #1a1c25;
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wallet-label {
    margin-right: 10px;
    color: var(--lightning-yellow);
    font-weight: bold;
}

.wallet-address {
    font-family: var(--font-mono);
    user-select: all;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer-brand {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

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

    .stats-container {
        flex-direction: column;
    }
    
    .log-line {
        grid-template-columns: 1fr; /* Stack timestamp on mobile */
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .log-timestamp {
        display: block;
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .wallet-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 12px;
    }
    
    .wallet-address {
        word-break: break-all;
        font-size: 0.75rem;
    }
}

/* Terminal Loading Animation */
.terminal-loader {
    display: flex;
    align-items: center;
    color: var(--lightning-yellow);
    font-weight: bold;
    font-family: var(--font-mono);
    padding: 10px 0;
}

.terminal-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--lightning-yellow);
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: terminalSpin 1s linear infinite;
}

@keyframes terminalSpin {
    to { transform: rotate(360deg); }
}

.blink-text {
    animation: blinkText 1.5s infinite;
}

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