:root {
    /* Brand Colors - Indigo Glass Theme */
    --primary-cyan: #00f0ff;
    /* Brighter neon cyan */
    --primary-cyan-hover: #00bcd4;
    --primary-indigo: #4f46e5;
    /* Deep indigo for gradients */
    --primary-purple: #7c3aed;
    /* Electric purple accent */

    /* Backgrounds */
    --bg-dark: #030712;
    /* Richer dark */
    --bg-darker: #000000;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;

    /* Borders & Glows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Accents */
    --color-up: #10b981;
    /* Emerald green */
    --color-down: #ef4444;
    /* Red 500 */

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Font */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    /* Subtle mesh gradient background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05), transparent 25%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.75rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #9ca3af);
    background-clip: text;
    /* Standard */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    background-clip: text;
    /* Standard */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Glass Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    /* Softer corners */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(79, 70, 229, 0.1));
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(79, 70, 229, 0.2));
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--text-gray);
    padding: 0 20px;
}

.btn-text:hover {
    color: var(--text-white);
}

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Initially not sticky per Dupoin, but can be made sticky */
    position: relative;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

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

.main-nav ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Open State Animation */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav a {
    font-weight: 500;
    color: var(--text-gray);
}

.main-nav a:hover {
    color: var(--text-white);
}

/* Hero Section */
.hero-section {
    padding: 140px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Mesh/Glow for Hero */
.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -300px;
    right: -200px;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.8;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    left: -200px;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 48px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 24px;
}

.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* For 3D floating effect */
}

/* Visual Placeholder Mesh */
.visual-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 70%);
    border-radius: 50%;
}

/* Floating Cards - Glassmorphism */
.floating-card {
    position: absolute;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    width: 220px;
    animation: float 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 1px;
}

.card-1 {
    top: 60px;
    right: 40px;
    transform: rotate(5deg);
}

.card-2 {
    bottom: 100px;
    left: 40px;
    animation-delay: 1.5s;
    transform: rotate(-3deg);
}

.card-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 240px;
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.floating-card .symbol {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-card .price {
    font-family: 'Inter', monospace;
    /* Use Inter with tabular nums if possible, else monospace */
    font-variant-numeric: tabular-nums;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

/* Specific anims if needed, else rely on generic float */

/* Market Data Section */
.market-data-section {
    padding: 100px 0;
    position: relative;
    /* Remove flat bg, rely on body mesh */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom */
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-up);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-up);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-up);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: none;
    padding-bottom: 0;
    overflow-x: auto;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}


/* Glass Table - Reverted to Tech/Terminal Style */
/* Default Table Container (Index Page - Solid) */
.table-container {
    background: #020a1c;
    /* Solid for Index */
    border-radius: 8px;
    border: 1px solid rgba(0, 250, 234, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Market Data Page Specific Overrides (Glass/Transparent) */
.market-page-container .table-container {
    background: rgba(2, 10, 28, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 250, 234, 0.3);
    box-shadow: none;
    /* remove deep shadow */
}

.market-table,
.full-data-table {
    width: 100%;
    border-collapse: collapse;
    /* Collapse borders for sharp look */
}

.market-table th,
.full-data-table th {
    background: rgba(0, 250, 234, 0.05);
    color: var(--text-gray);
    /* Revert to gray for cleaner look */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 25px;
    /* Original padding */
    text-align: right;
    border-bottom: 2px solid rgba(0, 250, 234, 0.4);
    /* Tech border */
}

.market-table th:first-child,
.full-data-table th:first-child {
    text-align: left;
}

.market-table td,
.full-data-table td {
    padding: 20px 25px;
    /* Original padding */
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    color: var(--text-white);
    transition: background 0.2s;
}

.market-table td:first-child,
.full-data-table td:first-child {
    text-align: left;
}

.market-table tr:last-child td,
.full-data-table tr:last-child td {
    border-bottom: none;
}

.market-table tr:hover,
.full-data-table tr:hover {
    background: rgba(0, 250, 234, 0.05);
    /* Cyan hover */
}

/* Symbol Cell */
.symbol-cell {
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Optional logo if we add it later 
.symbol-cell::before {
    content: '';
    display: block;
    width: 24px; 
    height: 24px; 
    background: #333; 
    border-radius: 50%;
} */

.up {
    color: #00ffaa;
}

.down {
    color: #ff3366;
}

.disclaimer {
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* --- Styles ported from market-data.ejs --- */

.market-page-container {
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.controls-bar {
    background: rgba(14, 21, 37, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    /* Original radius */
    border: 1px solid rgba(0, 250, 234, 0.3);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 250, 234, 0.2);
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 4px;
    /* Square/Tech */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 250, 234, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 250, 234, 0.2);
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 320px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 250, 234, 0.2);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 4px;
    /* Square/Tech */
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 250, 234, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: #020a1c;
    border-top: 1px solid rgba(0, 250, 234, 0.3);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 300px;
    margin-top: 15px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--primary-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Typography */
    h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-text p {
        font-size: 1rem;
        /* Fix inconsistent hero text */
    }

    /* Force full width for all containers on mobile */
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 280px;
        /* Reduced height for mobile */
        margin-top: 40px;
    }

    /* Scale down floating cards on mobile */
    .floating-card {
        padding: 15px;
        width: 160px;
    }

    .floating-card .symbol {
        font-size: 1rem;
    }

    .floating-card .price {
        font-size: 1.1rem;
    }

    /* Reposition cards for mobile */
    .card-1 {
        top: 20px;
        right: 10px;
        /* Closer to edge */
    }

    .card-2 {
        bottom: 20px;
        left: 10px;
        /* Closer to edge */
    }

    /* If card-4 exists (from user snippet), position it safely or hide it */
    .card-4 {
        display: none;
        /* Hide 3rd card on mobile to reduce clutter */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide out by default */
        width: 100%;
        height: 100vh;
        background: rgba(2, 10, 28, 0.98);
        /* Almost opaque dark bg */
        backdrop-filter: blur(10px);
        padding-top: 100px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        text-align: center;
    }

    .main-nav.active {
        right: 0;
        /* Slide in */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .main-nav a {
        font-size: 1.5rem;
        display: block;
    }

    /* Move Header Actions mainly access button to bottom of mobile menu */
    .header-actions {
        display: none;
        /* Hide default header button on mobile */
    }

    .main-nav .mobile-action {
        display: block;
        /* Full block */
        margin-top: 40px;
        padding: 0 20px;
        /* Add padding from sides */
    }

    .main-nav .mobile-action .btn {
        width: 100%;
        /* Full width */
        padding: 16px 0;
        /* Taller button */
        font-size: 1.2rem;
        background: linear-gradient(90deg, var(--primary-cyan), #00ffcc);
        /* Vibrant Gradient */
        box-shadow: 0 4px 15px rgba(46, 181, 196, 0.4);
        border: none;
        color: #020a1c;
        /* Dark text for contrast on bright button */
        font-weight: 700;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        gap: 30px;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        margin: 15px auto 0;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .partner-content {
        flex-direction: column;
        text-align: center;
    }

    /* Responsive Table - Card View */
    .table-container {
        border: none;
        background: transparent;
        overflow-x: visible;
        /* Disable scroll, we use cards now */
    }

    .market-table thead,
    .full-data-table thead {
        display: none;
        /* Hide header */
    }

    .market-table tbody,
    .market-table tr,
    .market-table td,
    .full-data-table tbody,
    .full-data-table tr,
    .full-data-table td {
        display: block;
        width: 100%;
    }

    .market-table tr,
    .full-data-table tr {
        margin-bottom: 15px;
        background: rgba(14, 21, 37, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 15px;
    }

    .market-table td,
    .full-data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .market-table td::before,
    .full-data-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-gray);
        margin-right: 15px;
    }

    .symbol-cell {
        font-size: 1.2rem;
        color: var(--primary-cyan);
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px;
    }

    .market-table tr:hover {
        background: rgba(14, 21, 37, 0.8);
        transform: none;
        /* Disable desktop hover effect */
    }
}


/* Partner Section */
.partner-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, rgba(46, 181, 196, 0.02), transparent);
    /* Very faint */
}

.partner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.partner-logo img {
    height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-logo img:hover {
    opacity: 1;
}

.partner-text {
    max-width: 600px;
}

.partner-text h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.partner-text p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}


/* Animation Canvases */
#binary-canvas,
.network-canvas,
#contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Default, overridden in JS if interactive */
}

/* Specific interactivity override */
#network-canvas,
#binary-canvas {
    pointer-events: auto;
    /* Allow mouse interaction */
}

.about-page-wrapper {
    position: relative;
    /* Ensure canvas stays within wrapper */
}


/* About Section Styles */
.about-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: transparent;
    /* Allow canvas to show */
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.mission-section {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Faint border */
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.value-card h3 {
    color: var(--primary-cyan);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

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

/* Dynamic Background Arrows */
.hero-visual {
    position: relative;
    overflow: hidden;
    /* Ensure arrows stay inside */
}

.floating-arrow {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: bold;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    /* Behind the cards */
}

.floating-arrow.up {
    color: #00ff88;
    /* Vivid Neon Green */
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    /* Glow effect */
    animation: floatUp linear forwards;
}

.floating-arrow.down {
    color: #ff3355;
    /* Vivid Neon Red */
    text-shadow: 0 0 10px rgba(255, 51, 85, 0.6);
    /* Glow effect */
    animation: floatDown linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        /* Higher opacity start */
    }

    100% {
        transform: translateY(-200px) scale(1.2);
        opacity: 0;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        /* Higher opacity start */
    }

    100% {
        transform: translateY(200px) scale(1.2);
        opacity: 0;
    }
}

/* Final Mobile Overrides for Specific Pages */
@media (max-width: 768px) {

    /* About Page Hero */
    .about-hero h1 {
        font-size: 2.4rem;
        /* Override the 3rem desktop style */
    }

    .about-hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Value Cards */
    .value-card {
        padding: 20px;
    }

    .value-card h3 {
        font-size: 1.3rem;
    }
}

/* --- New Header Animations --- */

/* 1. Market Data: Digital Pulse */
.header-pulse {
    position: relative;
    background-color: var(--bg-dark);
    /* Grid Pattern */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

/* Scanning Line */
.header-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 181, 196, 0.1), transparent);
    animation: scanLine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform: skewX(-20deg);
    pointer-events: none;
}

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

    50%,
    100% {
        left: 200%;
    }
}

/* 2. About Us: Aurora Gradient */
.header-aurora {
    position: relative;
    background: linear-gradient(-45deg, #020a1c, #0a1f3d, #0f2d4a, #020a1c);
    background-size: 400% 400%;
    animation: auroraFlow 15s ease infinite;
    overflow: hidden;
}

/* Glowing Orbs for Aurora Effect */
.header-aurora::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(46, 181, 196, 0.15), transparent 70%);
    animation: floatingOrb 10s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatingOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Text Reveal Animation */
.animate-reveal {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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


/* --- Header Animations --- */

/* Market Data: Data Stream */
.market-page-container {
    position: relative;
    overflow: hidden;
}

.market-bg-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(14, 21, 37, 0.9), rgba(2, 10, 28, 1)),
        repeating-linear-gradient(0deg, transparent 0, transparent 1px, rgba(46, 181, 196, 0.1) 1px, rgba(46, 181, 196, 0.1) 2px);
    background-size: 100% 20px;
    animation: streamScroll 20s linear infinite;
    z-index: -1;
}

@keyframes streamScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}

/* About Us: Network Mesh Container */
.about-hero {
    position: relative;
    overflow: hidden;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* Ensure content stays on top */
.about-hero .container,
.market-page-container .container {
    position: relative;
    z-index: 1;
}

/* SAFARI RENDERING FIX: Force GPU Acceleration */
#binary-canvas,
.network-canvas,
#contact-canvas {
    /* Create a new stacking context */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;

    /* Improve compositing */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* perspective: 1000px; */

    /* Ensure placement */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Re-enable in JS if needed */
}

#network-canvas,
#binary-canvas {
    pointer-events: auto;
}