/* --- CORE VARIABLES --- */
:root {
    --bg-main: #050505;
    --bg-surface: #111111;
    --accent: #00e599; 
    --accent-glow: rgba(0, 229, 153, 0.4);
    --text-white: #ffffff;
    --text-grey: #888888;
    --border-color: #222;
    --red: #ff4d4d;
}

/* --- RESET & GLOBAL SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.8s ease forwards; }
.fade-in-delay { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }

/* --- BACKGROUND EFFECTS --- */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,229,153,0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* --- LAYOUT UTILITIES --- */
.container, .container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-nav { max-width: 1400px; }

/* --- NAVBAR --- */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 15px; font-weight: 500; color: var(--text-grey);
    text-decoration: none; transition: 0.3s;
}
.nav-links a:hover { color: var(--text-white); }

.btn-nav {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-nav:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO SECTION --- */
.hero { text-align: center; padding: 140px 0 100px; }

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    font-weight: 800;
}
.hero h1 span { color: var(--accent); }

.hero p {
    color: var(--text-grey);
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-btns { display: flex; justify-content: center; gap: 16px; margin-bottom: 80px; }

.btn-primary {
    background: var(--accent);
    color: #050505;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 229, 153, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 229, 153, 0.5); }

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--text-white); background: rgba(255,255,255,0.05); }

/* --- DASHBOARD PREVIEW --- */
.dashboard-preview {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 100px -30px rgba(0, 229, 153, 0.15);
}

.window-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.address-bar {
    background: #000; color: #444; font-size: 12px;
    padding: 4px 12px; border-radius: 4px; width: 100%; text-align: center;
    font-family: monospace;
}

/* --- THE LIVE CSS CHART --- */
.preview-content {
    height: 480px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.chart-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px 40px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chart-grid-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 79px, #1a1a1a 80px);
    z-index: 0; pointer-events: none;
}

.price-overlay {
    position: absolute; top: 20px; left: 20px;
    z-index: 2;
}
.price-overlay .label { display: block; font-size: 12px; color: #666; font-weight: 700; }
.price-overlay .value { font-size: 32px; font-weight: 700; color: white; }
.price-overlay .change { font-size: 14px; color: var(--accent); margin-left: 10px; }

.candles {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 60%;
    gap: 10px;
    z-index: 1;
}

.candle {
    width: 100%;
    border-radius: 4px;
    opacity: 0.8;
    position: relative;
    transform-origin: bottom;
    animation: grow 1.5s ease-out forwards;
}

.candle.green { background: var(--accent); box-shadow: 0 0 10px rgba(0,229,153,0.3); }
.candle.red { background: var(--red); box-shadow: 0 0 10px rgba(255, 77, 77, 0.3); }

.candle.pulse {
    animation: livePulse 2s infinite ease-in-out;
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes livePulse {
    0% { height: 75%; }
    50% { height: 85%; }
    100% { height: 75%; }
}

/* --- FEATURES GRID & SVG ICONS --- */
.features { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 40px; margin-bottom: 16px; font-weight: 700; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 48px 40px;
    border-radius: 24px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

/* Updated SVG Icon Styles */
.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 229, 153, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: 0.3s;
    border: 1px solid rgba(0, 229, 153, 0.1);
}

.card:hover .card-icon {
    background: rgba(0, 229, 153, 0.15);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 153, 0.2);
}

.card-icon svg {
    stroke: var(--accent);
    transition: 0.3s;
}

.card:hover .card-icon svg {
    filter: drop-shadow(0 0 5px var(--accent));
}

.card h3 { font-size: 24px; margin-bottom: 16px; font-weight: 600; }
.card p { color: var(--text-grey); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }

.card-link { 
    font-size: 15px; font-weight: 600; color: var(--accent); 
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; 
}
.card-link svg {
    margin-left: 6px;
    transition: transform 0.3s;
}
.card-link:hover svg {
    transform: translateX(4px);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: #444;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 42px; }
    .nav-links { display: none; }
    .preview-content { height: 300px; }
    .candles { gap: 5px; padding: 0; }
    .hero-btns { flex-direction: column; padding: 0 40px; }
}