/* Variables & Reset */
:root {
    --bg-color: #020c1b;
    --card-bg: rgba(10, 25, 47, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --accent-green: #00f2fe; /* Cyan/Aqua */
    --accent-purple: #ff003c; /* Blood Red */
    --accent-blue: #00bfff;
    --accent-red: #ff003c;
    --glass-border: rgba(0, 242, 254, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Effects */
.bg-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.blur-purple {
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%);
}

.blur-green {
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 60%);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-green);
    font-size: 1.5rem;
}

.highlight {
    color: var(--accent-purple);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-glow {
    background: var(--accent-green);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hero Graphic (Glassmorphism Card) */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 450px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-2deg) rotateX(2deg); }
    100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-header .title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.text-green {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.pulse-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    width: 100%;
    margin: 1.5rem 0;
    opacity: 0.5;
    animation: pulse-width 2s infinite;
}

@keyframes pulse-width {
    0% { transform: scaleX(0.8); opacity: 0.2; }
    50% { transform: scaleX(1); opacity: 0.8; }
    100% { transform: scaleX(0.8); opacity: 0.2; }
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.active-bar {
    background: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Features Section */
.features {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.purple { background: rgba(138, 43, 226, 0.1); color: var(--accent-purple); }
.icon-box.green { background: rgba(0, 255, 136, 0.1); color: var(--accent-green); }
.icon-box.blue { background: rgba(0, 191, 255, 0.1); color: var(--accent-blue); }
.icon-box.red { background: rgba(255, 51, 102, 0.1); color: var(--accent-red); }

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Live Showcase */
.live-showcase {
    padding: 5rem 5%;
    margin-bottom: 5rem;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.live-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent-red);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.fade-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: normal;
    margin-left: 10px;
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #0a0a0f;
    border: 1px solid #1f1f2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.terminal-header {
    background: #15151e;
    border-bottom: 1px solid #1f1f2e;
    padding: 0 1rem;
}

.tabs {
    display: flex;
}

.tab {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.05);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Custom Scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0f; 
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #1f1f2e; 
    border-radius: 4px;
}

/* Dynamic Feed Items */
.feed-item {
    padding: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
    animation: slideIn 0.3s ease-out forwards;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-item.buy { border-left-color: var(--accent-green); }
.feed-item.sell { border-left-color: var(--accent-red); }
.feed-item.info { border-left-color: var(--accent-blue); }
.feed-item.close { border-left-color: var(--accent-purple); }

.feed-time { color: #666; width: 80px; }
.feed-action { font-weight: bold; width: 100px; }
.buy .feed-action { color: var(--accent-green); }
.sell .feed-action { color: var(--accent-red); }
.info .feed-action { color: var(--accent-blue); }
.close .feed-action { color: var(--accent-purple); }

.feed-symbol { color: #fff; width: 120px; }
.feed-detail { color: #aaa; flex: 1; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content .logo {
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .hero p { margin: 0 auto 2.5rem; }
    
    .hero-buttons { justify-content: center; }
    
    .stats { justify-content: center; margin-bottom: 3rem; }
    
    .hero-graphic {
        width: 100%;
        justify-content: center;
    }
    
    .glass-card {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 600px) {
    nav { display: none; }
    .hero-buttons { flex-direction: column; }
    .stats { flex-direction: column; gap: 1.5rem; }
}

/* Live Signal Box */
.live-signal-box {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    position: relative;
    overflow: hidden;
}

.live-signal-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.1), transparent);
    animation: sweep 3s infinite linear;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.signal-header {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.signal-content {
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.waiting-text {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.waiting-text i {
    animation: spin 4s infinite linear;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sig-item {
    display: flex;
    flex-direction: column;
}

.sig-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.sig-val {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.sig-val.long { color: var(--accent-green); }
.sig-val.short { color: var(--accent-red); }


/* Dashboard Floating Cards */
.dashboard-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2;
}

.dc-1 {
    top: -30px;
    left: -50px;
    animation: float-alt 5s ease-in-out infinite;
}

.dc-2 {
    bottom: -40px;
    right: -30px;
    animation: float 7s ease-in-out infinite reverse;
}

.dc-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

@keyframes float-alt {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.real-trade-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.real-trade-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
}
.real-trade-card.long::before { background: var(--accent-green); box-shadow: 0 0 15px var(--accent-green); }
.real-trade-card.short::before { background: var(--accent-red); box-shadow: 0 0 15px var(--accent-red); }

.rtc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}
.rtc-sym { font-weight: 800; font-size: 1.2rem; color: #fff; }
.rtc-side { font-weight: bold; font-size: 0.9rem; padding: 2px 8px; border-radius: 4px; }
.rtc-side.long { background: rgba(0,242,254,0.1); color: var(--accent-green); }
.rtc-side.short { background: rgba(255,0,60,0.1); color: var(--accent-red); }

.rtc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.rtc-item { display: flex; flex-direction: column; }
.rtc-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }
.rtc-val { font-size: 1.1rem; font-family: monospace; color: #fff; }
.rtc-val.profit { color: var(--accent-green); }
.rtc-val.loss { color: var(--accent-red); }

.rtc-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}
