:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-cyan: #00f2ff;
    --accent-blue: #0066ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    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;
}

/* Background Glow Effect */
.glow-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: fixed;
    /* Changed from absolute to fixed for better accessibility */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 0.8rem 10%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.launch-btn {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    padding: 0.8rem 1.5rem;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 5rem 10%;
    min-height: 90vh;
}

.hero-content {
    flex: 1;
}

.gradient-text {
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.hero-tech-card {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 242, 255, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: floating 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(rgba(0, 242, 255, 0.05) 0px, transparent 1px),
        repeating-linear-gradient(90deg, rgba(0, 242, 255, 0.05) 0px, transparent 1px);
    background-size: 30px 30px;
    transform: rotate(15deg);
}

.tech-orb {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px) rotateX(2deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(5deg);
    }
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 10%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title.left {
    text-align: left;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: transform 0.3s, border-color 0.3s;
}

.glass:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Strategy Section */
.strategy {
    padding: 8rem 10%;
    background: rgba(0, 102, 255, 0.02);
}

.content-wrapper {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.strategy-text {
    flex: 1;
}

.strategy-item {
    margin-bottom: 2.5rem;
}

.strategy-item h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.strategy-chart {
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Safety Section */
.safety {
    padding: 8rem 10%;
    text-align: center;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.safety-card {
    padding: 2rem;
    border-bottom: 2px solid var(--accent-blue);
}

.safety-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

/* Footer */
footer {
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    nav {
        padding: 0.8rem 5%;
        background: rgba(5, 7, 10, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links {
        display: none;
    }

    /* Hamburger Menu Button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        /* Fix position to screen */
        top: 20px;
        right: 5%;
        background: rgba(10, 14, 20, 0.8);
        /* Darker background for contrast */
        border: 1px solid rgba(0, 242, 255, 0.5);
        color: var(--accent-cyan);
        width: 50px;
        /* Slightly larger */
        height: 50px;
        border-radius: 12px;
        cursor: pointer;
        z-index: 9999;
        /* Highest priority */
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.4);
        backdrop-filter: blur(8px);
        transition: transform 0.2s, background 0.2s;
    }

    .mobile-menu-btn:active {
        transform: scale(0.92);
        background: rgba(0, 242, 255, 0.2);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }

    .hero-visual {
        margin-top: 4rem;
        justify-content: center;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 1.8rem;
    }
}

@media (min-width: 969px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Drawer */
/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    /* Fully hidden */
    width: 280px;
    height: 100vh;
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(30px);
    /* Stronger blur */
    z-index: 10000;
    /* Above overlay and button */
    padding: 2.5rem;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    visibility: hidden;
    /* Hide when closed to prevent clicks */
}

.mobile-drawer.active {
    right: 0 !important;
    visibility: visible;
}

.mobile-drawer.active {
    right: 0 !important;
}

.mobile-drawer .drawer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.mobile-drawer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s;
}

.mobile-drawer a:hover {
    color: var(--accent-cyan);
}

.mobile-drawer .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(5px);
    z-index: 9998;
    /* Just below drawer */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Analysis Section */
.analysis {
    padding: 6rem 10%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 255, 0.05), transparent 40%);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.analysis-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.chart-card {
    flex: 2;
    min-width: 300px;
    background: rgba(5, 7, 10, 0.6);
}

.comparison-chart {
    margin-top: 2rem;
    height: 300px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 60px;
    position: relative;
}

.bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 250px;
}

.bar {
    width: 15px;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar.predict {
    background: var(--text-secondary);
    opacity: 0.5;
}

.bar.actual {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.bar-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.legend {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.dot.predict {
    background: var(--text-secondary);
}

.dot.actual {
    background: var(--accent-cyan);
}

.insight-card {
    flex: 1;
    min-width: 250px;
}

.insight-item {
    margin-top: 2rem;
    border-left: 2px solid var(--glass-border);
    padding-left: 1rem;
}

.insight-item h4 {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.insight-item .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.badge.high-hit {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.badge.miss {
    background: rgba(255, 50, 50, 0.2);
    color: #ff3232;
}

/* Results Section */
.results {
    padding: 6rem 10%;
    background: rgba(0, 0, 0, 0.3);
}

.results-wrapper {
    padding: 2rem;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.1);
    overflow-x: auto;
    /* Ensure horizontal scroll for tables on mobile */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .trade-log-list {
        min-width: 650px;
        /* Ensure content is readable via scroll */
    }
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr 0.8fr;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: bold;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.trade-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr 0.8fr;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.trade-row:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.trade-row .profit {
    color: #00ff88;
}

.trade-row .loss {
    color: #ff3232;
}

.status-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

.status-tag.closed {
    background: rgba(0, 102, 255, 0.2);
    color: var(--accent-blue);
}

.status-tag.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.total-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    text-align: center;
}

.summary-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.big-number.profit {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 10%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.05), transparent 40%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.stock-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stock-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stock-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stock-logo.energy {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.stock-logo.semi {
    background: linear-gradient(135deg, #4facfe, #00f2ff);
}

.stock-logo.defense {
    background: linear-gradient(135deg, #434343, #7F7FD5);
}

.stock-logo.finance {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stock-logo.robot {
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
}

.stock-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.sector-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.rationale {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.rationale strong {
    color: var(--accent-cyan);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.metric .value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}