:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

/* Background Glow Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: 20%;
    right: -150px;
    opacity: 0.3;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: #00FF41; /* Matrix Green */
    bottom: -200px;
    left: 20%;
    opacity: 0.15;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 5% 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), #b055ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Glass Panel Reusable Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Live Demo Section */
.live-demo {
    padding: 2rem 5% 5rem;
}

/* Animated Flow Pipeline */
.animated-pipeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Keep nodes perfectly level at the top */
    padding: 5rem 1rem 2rem 1rem; /* Extra top padding to accommodate the branch shifting up */
    position: relative;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px; /* Exact width of the circle to ensure lines connect perfectly */
    height: 115px; /* Locked height to ensure exact fork math */
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s, opacity 0.4s;
    position: relative;
    z-index: 2;
    opacity: 0.6;
    flex-shrink: 0; /* Prevents line strike-through on small screens */
}

.pipeline-node:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
    opacity: 0.8;
}

.pipeline-node.active-node {
    transform: scale(1.15) !important;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.node-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1e1f22;
    border: 3px solid #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    z-index: 3;
}

.pipeline-node.active-node .node-circle {
    box-shadow: 0 0 25px currentColor;
}

.pipeline-branch {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    margin-top: -68px; /* Shifts the branch so the two circles are perfectly symmetric around the horizontal flow line */
    flex-shrink: 0;
}

.pipeline-connector {
    flex: 1;
    height: 2px;
    margin-top: 34px; /* Perfectly aligned to the center of the 70px circles */
    background: rgba(255,255,255,0.1);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

/* Mathematically perfect SVG Fork Container */
.pipeline-fork {
    position: relative;
    width: 60px;
    height: 135px; /* Exact distance from top circle center to bottom circle center */
    margin-top: -33px; /* Centers the SVG to Y=35px */
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
}

/* SVG Flow Animation */
.svg-flow {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: svgScan 3s linear infinite;
    filter: drop-shadow(0 0 5px currentColor);
}

@keyframes svgScan {
    0% { stroke-dashoffset: 120; }
    100% { stroke-dashoffset: -120; }
}

.conn-1, .conn-3 { background: rgba(0, 229, 255, 0.3); }
.conn-2 { background: rgba(255, 95, 86, 0.3); }
.conn-4 { background: rgba(254, 231, 92, 0.3); }

.node-label {
    position: absolute;
    top: 85px; /* Sits directly below the 70px circle */
    left: 50%;
    transform: translateX(-50%);
    width: 180px; /* Wide enough for any text */
    text-align: center;
    color: #dbdee1;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
    pointer-events: none; /* Let clicks pass through to the node */
}

.flow-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    animation: flowScan 1.5s linear infinite;
}

.particle-cyan { background: linear-gradient(90deg, transparent, #00E5FF, transparent); }
.particle-red { background: linear-gradient(90deg, transparent, #ff5f56, transparent); }
.particle-yellow { background: linear-gradient(90deg, transparent, #FEE75C, transparent); }

@keyframes flowScan {
    0% { transform: translateX(-40px); }
    100% { transform: translateX(200px); }
}

.cmd-badge {
    display: inline-block;
    background: #00E5FF;
    color: #0B0F19;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .animated-pipeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .pipeline-connector {
        width: 3px;
        height: 30px;
        margin: 5px 0;
    }
    .flow-particle {
        width: 100%;
        height: 15px;
        animation: flowScanVert 1.5s linear infinite;
    }
    .particle-cyan { background: linear-gradient(180deg, transparent, #00E5FF, transparent); }
    .particle-red { background: linear-gradient(180deg, transparent, #ff5f56, transparent); }
    .particle-yellow { background: linear-gradient(180deg, transparent, #FEE75C, transparent); }
}

@keyframes flowScanVert {
    0% { transform: translateY(-15px); }
    100% { transform: translateY(50px); }
}

.demo-container {
    max-width: 1250px;
    margin: 0 auto;
}

/* Discord UI Simulation */
.discord-ui {
    display: flex;
    flex-direction: column;
    height: auto; /* Dynamic height based on content */
    min-height: 480px;
    max-width: 900px; /* Compact realistic width */
    margin: 0 auto; /* Center it */
    background: #313338; /* Authentic Discord Dark */
    border: 1px solid #1e1f22;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.discord-header {
    background: #2b2d31;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e1f22;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.discord-server-name {
    font-weight: 800;
    margin-right: 1.5rem;
    color: #f2f3f5;
    font-size: 1.4rem;
}

.discord-channel-name {
    color: #80848e;
    font-weight: 600;
    font-size: 1.1rem;
}

.discord-layout {
    display: flex;
    flex: 1;
    background: #313338;
}


.discord-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
}

.discord-feed {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow: visible; /* Prevent internal scrolling, let parent expand */
}

.discord-input-area {
    padding: 1rem 1.5rem;
    background: #313338;
}

.discord-input-box {
    background: #383a40;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #80848e;
    font-size: 0.9rem;
}

/* Discord Message Area */
.discord-feed {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: opacity 0.3s ease;
}

.msg-wrapper {
    display: flex;
    gap: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.msg-wrapper:hover {
    background: rgba(255,255,255,0.02);
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.avatar-user {
    background-color: #5865F2;
    background-image: url('https://api.dicebear.com/7.x/avataaars/svg?seed=Felix');
}

.avatar-bot {
    background-color: #1e1f22;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300E5FF"><path d="M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a3 3 0 0 1 3 3v2h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2v2a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-2H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2V10a3 3 0 0 1 3-3h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2z"/></svg>');
    background-size: 60%;
    background-repeat: no-repeat;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.msg-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.msg-author {
    font-weight: 700;
    color: #f2f3f5;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.bot-tag {
    background: linear-gradient(90deg, #5865F2, #00E5FF);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.msg-time {
    font-size: 0.75rem;
    color: #80848e;
    font-weight: 500;
}

.msg-text {
    color: #dbdee1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Hyper-Modern Embeds */
.embed {
    border-left: 3px solid var(--accent-primary);
    background: rgba(43, 45, 49, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.4rem;
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.embed.success { border-left-color: #00FF41; box-shadow: -2px 0 10px rgba(0,255,65,0.1); }
.embed.danger { border-left-color: #FF003C; box-shadow: -2px 0 10px rgba(255,0,60,0.1); }
.embed.warning { border-left-color: #FEE75C; box-shadow: -2px 0 10px rgba(254,231,92,0.1); }

.embed-title {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.embed-desc {
    color: #b5bac1;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.embed-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}

.embed-field {
    background: rgba(30, 31, 34, 0.5);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
}

.embed-field-name {
    font-weight: 800;
    color: #f2f3f5;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.embed-field-value {
    color: #dbdee1;
    font-size: 0.95rem;
    font-family: 'Inter', monospace;
}

/* Sleek Terminal Tables */
.term-table-wrapper {
    background: rgba(30, 31, 34, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    margin-top: 0.5rem;
    width: fit-content;
    max-width: 100%;
}

.term-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-align: left;
}

.term-table th {
    background: rgba(43, 45, 49, 0.9);
    color: #949ba4;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.term-table td {
    padding: 0.5rem 0.8rem;
    color: #dbdee1;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.term-table tr:last-child td {
    border-bottom: none;
}

.term-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.val-green { color: #00FF41 !important; font-weight: 600; }
.val-red { color: #FF003C !important; font-weight: 600; }
.val-cyan { color: #00E5FF !important; font-weight: 600; }

/* Features Section */
.features {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 5% 8rem;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: 800;
}

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

.disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .cta-group { flex-direction: column; }
    .dashboard-showcase, .ai-showcase { grid-template-columns: 1fr; }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

/* Typing Effect */
.type-text {
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: fit-content;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-primary); }
}

/* Execution Side-by-Side */
.execution-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.execution-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

@media (max-width: 768px) {
    .execution-split {
        grid-template-columns: 1fr;
    }
}

/* Showcase Sections */
.dashboard-showcase, .ai-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-list {
    list-style: none;
    margin-top: 2rem;
}

.stats-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-list li::before {
    content: "⚡";
}

.stat-highlight {
    color: var(--accent-primary);
    font-weight: 800;
}

/* Mockups */
.chart-mockup {
    padding: 1.5rem;
    background: rgba(11, 15, 25, 0.8); /* Dark plotly theme */
    border: 1px solid #1E293B;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.chart-badge {
    background: rgba(0, 255, 65, 0.2);
    color: #00FF41;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.chart-area {
    position: relative;
    height: 250px;
    background: #0B0F19;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.candlestick-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 41, 59, 0.4) 1px, transparent 1px),
    font-weight: 800;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: 800;
}

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

.disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .cta-group { flex-direction: column; }
    .dashboard-showcase, .ai-showcase { grid-template-columns: 1fr; }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

/* Typing Effect */
.type-text {
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: fit-content;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-primary); }
}

/* Execution Side-by-Side */
.execution-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.execution-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

@media (max-width: 768px) {
    .execution-split {
        grid-template-columns: 1fr;
    }
}

/* Showcase Sections */
.dashboard-showcase, .ai-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-list {
    list-style: none;
    margin-top: 2rem;
}

.stats-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-list li::before {
    content: "⚡";
}

.stat-highlight {
    color: var(--accent-primary);
    font-weight: 800;
}

/* Mockups */
.chart-mockup {
    padding: 1.5rem;
    background: rgba(11, 15, 25, 0.8); /* Dark plotly theme */
    border: 1px solid #1E293B;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.chart-badge {
    background: rgba(0, 255, 65, 0.2);
    color: #00FF41;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.chart-area {
    position: relative;
    height: 250px;
    background: #0B0F19;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.candlestick-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 41, 59, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.candlestick {
    position: absolute;
    width: 6px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transform-origin: bottom;
    transform: scaleY(0);
}

.reveal.active .candlestick {
    animation: growCandle 1.5s ease-out forwards;
}

@keyframes growCandle {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.chart-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.reveal-rect {
    width: 0;
}

.reveal.active .reveal-rect {
    animation: revealChart 3s linear forwards 0.5s;
}

@keyframes revealChart {
    from { width: 0; }
    to { width: 100%; }
}

.profit-zone {
    fill: rgba(0, 255, 65, 0.15);
    opacity: 0;
}

.reveal.active .profit-zone {
    animation: fadeInProfit 0.5s ease forwards 2s;
}

@keyframes fadeInProfit {
    to { opacity: 1; }
}

.chart-line-slow {
    fill: none;
    stroke: #B5179E; /* Purple */
    stroke-width: 3;
}

.chart-line-glow {
    fill: none;
    stroke: rgba(0, 229, 255, 0.3);
    stroke-width: 8;
    filter: blur(4px);
}

.chart-line {
    fill: none;
    stroke: #00E5FF;
    stroke-width: 3;
}

.buy-marker {
    fill: #00FF41;
    stroke: #fff;
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.sell-marker {
    fill: #FF003C;
    stroke: #fff;
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.marker-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.reveal.active .buy-text {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.4s;
}

.buy-text {
    fill: #00FF41;
}

.reveal.active .sell-text {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.3s;
}

.sell-text {
    fill: #FF003C;
}

.pulse-buy {
}
.reveal.active .pulse-buy {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.4s, pulseGlow 2s infinite 1.9s;
}

.pulse-sell {
}
.reveal.active .pulse-sell {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.3s, pulseGlow 2s infinite 2.8s;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px #00FF41); }
    50% { filter: drop-shadow(0 0 12px #00FF41); }
    100% { filter: drop-shadow(0 0 2px #00FF41); }
}

.volume-bars {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 5%;
    z-index: 1;
    opacity: 0.6;
}

.vbar {
    width: 6px;
    border-radius: 2px 2px 0 0;
}
.vbar.green { background: #27c93f; }
.vbar.red { background: #ff5f56; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes popIn {
    to { opacity: 1; transform: scale(1.5); }
}

/* AI Mockup */
.ai-mockup {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    font-family: 'Inter', sans-serif;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.ai-mockup:hover {
    transform: translateY(0);
}

.ai-header {
    border-bottom: 1px solid #334155;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.ai-header h3 {
    color: #F8FAFC;
    font-size: 1.2rem;
}

.ai-body p {
    margin-bottom: 0.8rem;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.ai-buy { color: #00FF41; font-weight: bold; }
.ai-score { color: #00E5FF; font-weight: bold; }
.ai-summary { color: #CBD5E1; font-size: 0.9rem; line-height: 1.5; display: inline-block; margin-top: 0.5rem;}

.ai-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

.tag-green {
    color: #86EFAC;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

/* Brokerage Showcase */
.brokerage-showcase {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.brokerage-container {
    padding: 3rem;
}

.brokerage-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.brokerage-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.broker-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.broker-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #F8FAFC;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.centered-list {
    display: inline-block;
    text-align: left;
}

/* Pricing Section */
.pricing {
    padding: 5rem 5%;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #F8FAFC;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .features-list {
    margin-bottom: 2.5rem;
    text-align: left;
    width: 100%;
}

.pricing-card .features-list li {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card.premium {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
    transform: scale(1.05);
}

.pricing-card.elite {
    border-color: rgba(254, 231, 92, 0.3);
}

.popular-tag {
    position: absolute;
    top: -15px;
    background: var(--accent-primary);
    color: #0B0F19;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Institutional Showcase */
.institutional-showcase {
    padding: 5rem 5%;
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.inst-card {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

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

.inst-card p {
    color: #94A3B8;
    line-height: 1.6;
}

/* --- NEW ENHANCEMENTS FOR AI & BROKERAGE --- */

/* AI Showcase Enhancements */

.ai-body p {
    margin-bottom: 0.8rem;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.ai-buy { color: #00FF41; font-weight: bold; }
.ai-score { color: #00E5FF; font-weight: bold; }
.ai-summary { color: #CBD5E1; font-size: 0.9rem; line-height: 1.5; display: inline-block; margin-top: 0.5rem;}

.ai-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

.tag-green {
    color: #86EFAC;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

/* Brokerage Showcase */
.brokerage-showcase {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.brokerage-container {
    padding: 3rem;
}

.brokerage-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.brokerage-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.broker-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.broker-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #F8FAFC;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.centered-list {
    display: inline-block;
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    text-align: left;
    margin: 0 auto;
    max-width: 700px;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing Section */
.pricing {
    padding: 5rem 5%;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #F8FAFC;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .features-list {
    margin-bottom: 2.5rem;
    text-align: left;
    width: 100%;
}

.pricing-card .features-list li {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card.premium {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
    transform: scale(1.05);
}

.pricing-card.elite {
    border-color: rgba(254, 231, 92, 0.3);
}

.popular-tag {
    position: absolute;
    top: -15px;
    background: var(--accent-primary);
    color: #0B0F19;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Institutional Showcase */
.institutional-showcase {
    padding: 5rem 5%;
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.inst-card {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

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

.inst-card p {
    color: #94A3B8;
    line-height: 1.6;
}

/* --- NEW ENHANCEMENTS FOR AI & BROKERAGE --- */

/* AI Showcase Enhancements */
.ai-mockup {
    position: relative;
    overflow: hidden;
}

.ai-scanner-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.05), transparent);
    border-bottom: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 20px -10px rgba(0, 229, 255, 0.3);
    animation: scanLine 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #FEE75C;
    border-radius: 50%;
    box-shadow: 0 0 10px #FEE75C;
    animation: pulseDot 1.5s infinite alternate;
}

@keyframes pulseDot {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.ai-stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.glowing-text {
    color: #00FF41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    font-weight: 800;
}

.score-bar-bg {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00E5FF, #7000ff);
    box-shadow: 0 0 10px #00E5FF;
}

.reveal.active .score-bar-fill {
    animation: fillScore 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s;
}

@keyframes fillScore {
    to { width: 85%; }
}

.ai-summary-box {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 2px solid #FEE75C;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.typing-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    opacity: 0;
}

.reveal.active .typing-text {
    animation: typewriter 3s steps(40) 1s forwards;
}

@keyframes typewriter {
    0% { opacity: 1; clip-path: inset(0 100% 0 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* Brokerage Visuals */
.routing-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.routing-node {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.core-node {
    background: #1e1f22;
    border: 2px solid #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.destination-nodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dest-node {
    background: #1e1f22;
}
.dest-node.moomoo { border: 2px solid #ff5f56; box-shadow: 0 0 15px rgba(255, 95, 86, 0.2); }
.dest-node.ibkr { border: 2px solid #FEE75C; box-shadow: 0 0 15px rgba(254, 231, 92, 0.2); }

.routing-paths {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100px;
    position: relative;
    margin: 0 20px;
}

.routing-path {
    height: 2px;
    background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    background-size: 20px 100%;
    animation: flowDash 1s linear infinite;
    position: relative;
    width: 100%;
}

@keyframes flowDash {
    from { background-position: 0 0; }
    to { background-position: -40px 0; }
}

.data-packet {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    top: -6px; left: 0;
    animation: sendPacket 1.5s ease-in-out infinite;
    opacity: 0;
}

.packet-1 { background: #ff5f56; box-shadow: 0 0 15px 5px rgba(255, 95, 86, 0.5); }
.packet-2 { background: #FEE75C; box-shadow: 0 0 15px 5px rgba(254, 231, 92, 0.5); animation-delay: 0.75s; }

@keyframes sendPacket {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Execution Terminal */
.execution-terminal {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    text-align: left;
}

.term-header {
    background: #1e293b;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #FEE75C; }
.term-dot.green { background: #00FF41; }
.term-title {
    margin-left: 10px;
    color: #94A3B8;
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0;
}
.reveal.active .term-title {
    animation: slideUpFade 0.4s ease-out forwards;
}

.term-body {
    padding: 15px;
    color: #cbd5e1;
}

/* Abstract Log Styling */
.abstract-log {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 20px;
}

.log-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(10px);
}

.reveal.active .log-step {
    animation: slideUpFade 0.4s ease-out forwards;
}

.step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    background-size: 100% 20px;
    margin: 4px 0 4px 11px;
    clip-path: inset(0 0 100% 0);
}

@keyframes revealConnector {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes flowDown {
    from { background-position: 0 0; }
    to { background-position: 0 20px; }
}

.reveal.active .step-connector.conn-1 {
    animation: revealConnector 0.6s linear forwards 0.6s, flowDown 1s linear infinite 0s;
}
.reveal.active .log-step.step-2 {
    animation: slideUpFade 0.4s ease-out forwards 1.4s;
}
.reveal.active .step-connector.conn-2 {
    animation: revealConnector 0.6s linear forwards 2.0s, flowDown 1s linear infinite 0s;
}
.reveal.active .log-step.step-3 {
    animation: slideUpFade 0.4s ease-out forwards 2.8s;
}

.step-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-top: 2px solid #00E5FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.step-text {
    color: #cbd5e1;
}

.highlight-cyan { color: #00E5FF; font-weight: bold; }
.highlight-yellow { color: #FEE75C; font-weight: bold; }
.highlight-green { color: #00FF41; font-weight: bold; }

.success-step .step-text {
    color: #fff;
}

.latency-badge {
    background: rgba(0, 255, 65, 0.1);
    color: #00FF41;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: bold;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes showLine {
    to { opacity: 1; }
}
