:root {
    --bg: #050505;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --primary: #2979ff; /* Tech Blue */
    --accent: #00e5ff; /* Cyan */
    --up: #00c853; /* Trading Green */
    --down: #ff1744; /* Trading Red */
    
    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* K-Line Canvas */
canvas#market-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.35; /* Reduced opacity to prevent text interference */
}

/* UI Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 8px; height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 6px;
    border-radius: 8px;
    display: flex;
    gap: 4px;
}

.nav-item {
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    transition: 0.3s;
}
.nav-item:hover, .nav-item.active { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to move up */
    text-align: center;
    padding: 100px 0 80px; /* Adjusted padding */
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-tag::before {
    content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent);
}

h1 {
    font-size: clamp(48px, 6vw, 90px);
    line-height: 1.1; /* Increased line-height to prevent clipping of descenders like 'g' */
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff; /* Fallback */
    /* Clean white gradient */
    background: linear-gradient(180deg, #fff 30%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Add subtle drop shadow to separate from background noise */
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
    padding-bottom: 10px; /* Extra space for descenders */
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
}

/* Action Area */
.actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--text-main);
    color: #000;
}
.btn-primary:hover { box-shadow: 0 0 25px rgba(255,255,255,0.3); transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Feature Cards (Bottom Overlay) */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 80px;
}

.f-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    padding: 28px;
    border-radius: 12px;
    backdrop-filter: blur(40px); /* Increased blur */
    -webkit-backdrop-filter: blur(40px);
    transition: 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.f-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.f-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.f-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
}

.live-indicator {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--up);
    background: rgba(0, 200, 83, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.f-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.f-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Footer */
footer {
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-meta {
    font-family: var(--font-mono);
    display: flex;
    gap: 20px;
}

@media (max-width: 900px) {
    .features-container { grid-template-columns: 1fr; }
    h1 { font-size: 42px; }
    .nav-pill { display: none; }
}