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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.nav-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin: 0 -1px;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 0;
    transition: color 0.3s, background 0.3s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    padding: 0.7em 1.2em 0.7em 0.8em;
    color: white;
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    border: none;
    letter-spacing: 0.05em;
    border-radius: 16px;
    text-decoration: none;
}

.nav-cta svg {
    margin-right: 3px;
    transform: rotate(30deg);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-cta span {
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-cta:hover svg {
    transform: translateX(5px) rotate(90deg);
}

.nav-cta:hover span {
    transform: translateX(7px);
}

.nav-cta-mobile {
    display: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 140px;
}

.hero-content h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    color: rgba(255, 255, 255, 0.9);
}

/* Learn More Button */
.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    padding: 14px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    text-decoration: none;
    transition: border-radius 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.hero-cta:hover {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Corner + marks */
.cta-plus {
    position: absolute;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    transition: opacity 0.4s ease;
}

.top-left {
    top: -10px;
    left: -10px;
}

.top-right {
    top: -10px;
    right: -10px;
}

.bottom-left {
    bottom: -10px;
    left: -10px;
}

.bottom-right {
    bottom: -10px;
    right: -10px;
}

/* Hero Visual - wraps image + video together */
.hero-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 1;
}

.hands-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo Video - positioned relative to the image */
.logo-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;
    aspect-ratio: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ===================== MARQUEE SECTION ===================== */
.marquee-section {
    display: flex;
    align-items: center;
    padding: 40px 0;
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.marquee-label {
    flex-shrink: 0;
    padding-left: 60px;
    padding-right: 50px;
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.901);
    white-space: nowrap;
}

.marquee-track {
    overflow: hidden;
    position: relative;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, #000 160px, #000 calc(100% - 160px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 160px, #000 calc(100% - 160px), transparent);
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    white-space: nowrap;
    animation: marquee-scroll 14s linear infinite;
}

.marquee-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* ===================== RECOMMENDED BROKERS MARQUEE ===================== */
.brokers-marquee-section {
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brokers-marquee-label {
    flex-shrink: 0;
    padding-left: 60px;
    padding-right: 50px;
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.901);
    white-space: nowrap;
}

.brokers-marquee-track {
    overflow: hidden;
    position: relative;
    flex: 1;
    mask-image: linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent);
}

.brokers-marquee-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    white-space: nowrap;
    animation: brokers-marquee-scroll 18s linear infinite;
}

.brokers-marquee-inner:hover {
    animation-play-state: paused;
}

.broker-marquee-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.broker-marquee-logo:hover {
    opacity: 1;
    transform: scale(1.15);
}

@keyframes brokers-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Broker Action Popup */
.broker-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.broker-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.broker-popup {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    min-width: 300px;
    max-width: 360px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.broker-popup-overlay.active .broker-popup {
    transform: scale(1);
}

.broker-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.broker-popup-close:hover { color: #fff; }

.broker-popup-logo {
    height: 48px;
    margin-bottom: 16px;
    object-fit: contain;
}

.broker-popup h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.broker-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.broker-popup-btn {
    display: block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.broker-popup-connect {
    background: #2f6bff;
    color: #fff;
}

.broker-popup-connect:hover {
    background: #4a80ff;
    color: #fff;
}

.broker-popup-create {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.broker-popup-create:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ===================== TRADING INFRASTRUCTURE ===================== */
.trading-section {
    padding: 100px 60px 80px;
    background: #000;
}

.trading-header {
    margin-bottom: 60px;
}

.trading-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.trading-header p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    max-width: 600px;
    line-height: 1.7;
}

.trading-cards {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===================== SHARED GRADIENT DOME (reusable) ===================== */
/* Usage: add .gradient-dome to the grid parent, .dome-card to each child card */
/* Cards must have: position:relative, overflow:hidden */
/* Supports 4-column grids with 20px gap */
.gradient-dome>.dome-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(400% + 60px);
    height: 100%;
    background: radial-gradient(ellipse 80% 70% at 50% 100%, #0f1d45 0%, #0a1231 35%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.gradient-dome>.dome-card:nth-child(2)::before {
    left: calc(-100% - 20px);
}

.gradient-dome>.dome-card:nth-child(3)::before {
    left: calc(-200% - 40px);
}

.gradient-dome>.dome-card:nth-child(4)::before {
    left: calc(-300% - 60px);
}

/* 2-column override (gap: 24px) */
.gradient-dome.dome-col-2>.dome-card::before {
    width: calc(200% + 24px);
}

.gradient-dome.dome-col-2>.dome-card:nth-child(2)::before {
    left: calc(-100% - 24px);
}

.trading-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 28px;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trading-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.card-inner {
    flex: 1;
    margin-bottom: 24px;
}

.card-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.card-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-label-row .card-label {
    margin-bottom: 0;
}

.card-label-right {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
}

.card-desc {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-top: auto;
}

/* Latency Card */
.latency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.latency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.exchange-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.exchange-icon-img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
}

.exchange-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.exchange-ms {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.exchange-ms small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.latency-avg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.latency-avg small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
}

/* Liquidity Card - Order Book */
.orderbook {
    font-size: 13px;
    font-family: 'Inter', monospace;
}

.ob-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 8px;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.ob-mid {
    text-align: center;
    padding: 8px 0;
    color: #4ade80;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin: 4px 0;
}

/* Execution Card - Code Block */
.code-block {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.code-line {
    color: rgba(255, 255, 255, 0.45);
}

.line-num {
    display: inline-block;
    width: 20px;
    color: rgba(255, 255, 255, 0.15);
    margin-right: 8px;
}

.code-highlight {
    color: #facc15;
}

/* Safeguard Card */
.safeguard-list {
    font-size: 13px;
}

.safeguard-status {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    margin-bottom: 16px;
    font-style: italic;
}

.safeguard-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.safeguard-row .set {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================== ARCHITECTURE ===================== */
.arch-section {
    padding: 120px 60px;
    background: #000;
    text-align: center;
}

.arch-section h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 24px;
}

.arch-section p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    max-width: 600px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

.arch-img-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.arch-img-wrapper img {
    width: 100%;
    object-fit: contain;
}

/* ===================== WHY ALGORITHMIC ===================== */
.why-section {
    padding: 100px 60px 80px;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.why-header {
    text-align: left;
    margin-bottom: 60px;
}

.why-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.why-header p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 40px;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.why-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: auto;
}

.why-challenge {
    background-image: url('images/left-blob.png');
    background-repeat: no-repeat;
    background-position-y: 20%;
    background-position-x: 100%;
    background-size: 30%;
}

.why-challenge::before {
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(140, 20, 20, 0.85) 0%, rgba(80, 10, 10, 0.5) 35%, transparent 70%) !important;
}

.why-solution {
    background-image: url(images/right-blob.png);
    background-repeat: no-repeat;
    background-position-y: 20%;
    background-size: 30%;
}

.why-solution::before {
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(20, 120, 40, 0.85) 0%, rgba(10, 70, 20, 0.5) 35%, transparent 70%) !important;
}

.why-card p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    max-width: 80%;
    margin-top: auto;
}

/* ===================== BENTO GRID SECTION ===================== */
.bento-section {
    padding: 40px 60px 80px;
    background: #000;
    max-width: 1600px;
    margin: 0 auto;
}

.bento-header {
    text-align: left;
    margin-bottom: 60px;
}

.bento-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.bento-header p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
}

.bento-card {
    border: 1px solid #ffffff1a;
    border-radius: 0;
    padding: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 14px;
}

.bento-card p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.bento-card img {
    width: 100%;
    border-radius: 8px;
    margin-top: 16px;
    object-fit: cover;
}

/* AI Trading Agent - image pushed to bottom */
.bento-sync img {
    margin-top: auto;
    border-radius: 8px;
}

/* Phone card - image fills entire card */
.bento-phone {
    align-items: center;
    justify-content: center;
    grid-column: 4;
    grid-row: 1 / 3;
    padding: 0;
    background: radial-gradient(ellipse at top center, rgba(15, 29, 69, 0.4) 0%, transparent 60%);
}

.bento-phone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-top: 0;
    border-radius: 0;
}

/* Course tracking card - image at top, text at bottom */
.bento-test img {
    margin-top: 0;
    margin-bottom: auto;
    flex-shrink: 0;
}

.bento-test p {
    margin-top: auto;
}

/* Center dashboard - image fills edge to edge */
.bento-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
    border-radius: 0;
}

/* Portfolio Dashboard - text left, image right */
.bento-controls {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    grid-column: 3 / 5;
    grid-row: 4;
    background: radial-gradient(ellipse at bottom right, rgba(15, 29, 69, 0.6) 0%, transparent 70%);
}

.bento-controls .bento-text {
    flex: 1;
}

.bento-controls img {
    flex: 1;
    max-width: 45%;
    margin-top: 0;
    border-radius: 8px;
}

/* Grid placement & card-specific gradients */
.bento-sync {
    grid-column: 1;
    grid-row: 1 / 3;
}

.bento-alerting {
    grid-column: 2;
    grid-row: 1;
    background: radial-gradient(ellipse at top left, rgba(15, 29, 69, 0.6) 0%, transparent 65%);
}

.bento-encryption {
    grid-column: 3;
    grid-row: 1;
    background: radial-gradient(ellipse at top center, rgba(15, 29, 69, 0.9) 0%, rgba(15, 29, 69, 0.4) 45%, transparent 80%);
}

.bento-test {
    grid-column: 1;
    grid-row: 3 / 5;
}

.bento-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    padding: 0;
}

.bento-brand {
    grid-column: 4;
    grid-row: 3;
    background: radial-gradient(ellipse at bottom left, rgba(15, 29, 69, 0.6) 0%, transparent 70%);
}

.bento-deep {
    grid-column: 2;
    grid-row: 4;
    background: radial-gradient(ellipse at bottom center, rgba(15, 29, 69, 0.6) 0%, transparent 70%);
}

/* ===================== SYSTEMATIC PERFORMANCE ===================== */
.performance-section {
    padding: 100px 60px 80px;
    background: #000;
}

.performance-header {
    margin-bottom: 60px;
}

.performance-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.performance-header p {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    max-width: 600px;
    line-height: 1.7;
}

.performance-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.performance-cards::-webkit-scrollbar {
    display: none;
}

.perf-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    width: calc(25% - 15px);
    flex-shrink: 0;
}

.perf-card h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: auto;
}

.perf-value {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 600;
    text-align: center;
    padding: 40px 0;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #0066FF 0%, rgba(0, 102, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.perf-card p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-top: auto;
}

.perf-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
}

.perf-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perf-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.perf-nav-btn.next {
    background: rgba(255, 255, 255, 0.08);
}

/* ===================== ABOUT SECTION ===================== */
.about-section {
    padding: 100px 60px 120px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* .about-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, #1a1040 0%, transparent 100%);
    pointer-events: none;
} */

.about-section h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.about-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 24px;
    line-height: 1.4;
}

.about-card p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
}

.about-num {
    margin-top: auto;
    padding-top: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 80px 60px 0;
    position: relative;
    overflow: hidden;
}


.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-social h5 {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.social-link:hover {
    color: #fff;
}

.social-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-link:hover svg {
    opacity: 1;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.15);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
}

.footer-socials a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.footer-big-text {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px 0 60px;
}

.footer-big-text>span {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.footer-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: baseline;
    -webkit-text-fill-color: initial;
    margin: 0 -0.05em;
}

.footer-logo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.footer-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 500px;
    background: radial-gradient(ellipse at center,
            #0f1d45 0%,
            #0a1231 20%,
            rgba(10, 18, 49, 0.6) 40%,
            rgba(10, 18, 49, 0.3) 55%,
            rgba(10, 18, 49, 0.1) 65%,
            transparent 75%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
}

/* ===================== HAMBURGER MENU (hidden on desktop) ===================== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== TABLET (max-width: 1024px) ===================== */
@media (max-width: 1024px) {

    /* Navbar */
    .navbar {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 16px;
    }

    .nav-cta {
        display: none;
    }

    .nav-cta-mobile {
        display: inline-flex !important;
        margin-top: 8px;
        align-self: center;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Hero */
    .hero-content {
        padding-top: 120px;
    }

    /* Sections padding */
    .trading-section,
    .why-section,
    .performance-section,
    .about-section {
        padding: 80px 40px 60px;
    }

    .arch-section {
        padding: 80px 40px;
    }

    .bento-section {
        padding: 40px 40px 60px;
    }

    /* Trading cards - 2 columns */
    .trading-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gradient dome - 2 column override */
    .gradient-dome>.dome-card::before {
        width: calc(200% + 20px);
    }

    .gradient-dome>.dome-card:nth-child(2)::before {
        left: calc(-100% - 20px);
    }

    .gradient-dome>.dome-card:nth-child(3)::before {
        left: 0;
    }

    .gradient-dome>.dome-card:nth-child(4)::before {
        left: calc(-100% - 20px);
    }

    /* Bento grid - 2 columns */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-sync {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-alerting {
        grid-column: 2;
        grid-row: auto;
    }

    .bento-encryption {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-phone {
        grid-column: 2;
        grid-row: auto;
        min-height: 350px;
    }

    .bento-test {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-center {
        grid-column: 2;
        grid-row: auto;
        min-height: 300px;
    }

    .bento-brand {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-deep {
        grid-column: 2;
        grid-row: auto;
    }

    .bento-controls {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    /* Performance cards */
    .perf-card {
        width: calc(50% - 10px);
        min-height: 350px;
    }

    /* About cards - still 2 columns */
    .about-card {
        padding: 36px 28px;
        min-height: 350px;
    }

    /* Why cards */
    .why-card {
        padding: 32px;
        min-height: 350px;
    }

    .why-card p {
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding: 60px 40px 0;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .footer-social {
        grid-column: 1 / 3;
    }
}

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

    /* Navbar */
    .navbar {
        padding: 14px 20px;
    }

    /* Hero */
    .hero {
        height: 77vh;
        position: relative;
    }

    .hero-content {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-visual {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        bottom: auto;
    }

    .hands-image {
        width: 100%;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 12px;
    }

    .logo-video-wrapper {
        width: 20%;
    }

    /* Marquee */
    .marquee-section {
        padding: 20px 0;
        margin-top: 40px;
    }

    .marquee-label {
        padding-left: 16px;
        padding-right: 12px;
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
        flex-shrink: 0;
        max-width: 30%;
    }

    .marquee-track {
        width: 70%;
        mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent);
    }

    .marquee-inner {
        gap: 40px;
    }

    .marquee-logo {
        font-size: 16px;
    }

    .marquee-inner {
        animation-duration: 5s;
    }

    /* Brokers Marquee */
    .brokers-marquee-section { padding: 20px 0; }
    .brokers-marquee-label {
        padding-left: 16px;
        padding-right: 12px;
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
        max-width: 30%;
    }
    .brokers-marquee-track {
        width: 70%;
        mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent);
    }
    .brokers-marquee-inner { gap: 40px; animation-duration: 8s; }
    .broker-marquee-logo { height: 24px; }
    .broker-popup { padding: 28px 20px; min-width: unset; max-width: 90vw; }

    /* Section padding */
    .trading-section,
    .why-section,
    .performance-section,
    .about-section {
        padding: 60px 20px 50px;
    }

    .arch-section {
        padding: 60px 20px;
    }

    .bento-section {
        padding: 30px 20px 50px;
    }

    /* Section headers */
    .trading-header,
    .why-header,
    .bento-header,
    .performance-header {
        margin-bottom: 40px;
    }

    /* Trading cards - 1 column */
    .trading-cards {
        grid-template-columns: 1fr;
    }

    .gradient-dome>.dome-card::before {
        width: 100%;
        left: 0 !important;
    }

    /* Why cards - 1 column */
    .why-cards {
        grid-template-columns: 1fr;
    }

    .why-card {
        padding: 28px;
        min-height: auto;
    }

    /* Bento grid - 1 column */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-sync,
    .bento-alerting,
    .bento-encryption,
    .bento-phone,
    .bento-test,
    .bento-center,
    .bento-brand,
    .bento-deep,
    .bento-controls {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-phone {
        min-height: 400px;
    }

    .bento-center {
        min-height: 250px;
    }

    .bento-controls {
        flex-direction: column;
    }

    .bento-controls img {
        max-width: 100%;
    }

    .brand-text {
        font-size: 40px;
    }

    /* Performance cards */
    .perf-card {
        width: 80vw;
        min-height: 350px;
    }

    /* About cards - 1 column */
    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 28px 24px;
        min-height: auto;
    }

    .about-section h2 {
        margin-bottom: 40px;
    }

    /* Architecture */
    .arch-img-wrapper {
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding: 50px 20px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-social {
        grid-column: auto;
        text-align: center;
    }

    .footer-social h5 {
        font-size: 22px;
    }

    .social-links {
        align-items: center;
    }

    .newsletter-input {
        flex-direction: column;
        padding: 0;
        background: transparent;
        border: none;
        gap: 12px;
        max-width: 100%;
    }

    .newsletter-input .cta-plus {
        display: none;
    }

    .newsletter-input input {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        padding: 14px 20px;
        border-radius: 0;
        width: 100%;
    }

    .newsletter-input button {
        width: 100%;
        padding: 14px;
    }

    .footer-divider {
        margin-top: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px 0;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-big-text {
        padding: 20px 0 40px;
    }

    .footer-big-text>span {
        font-size: 48px;
    }

    .footer-logo-wrapper {
        width: 0.8em;
        height: 0.8em;
    }

    .footer-glow {
        height: 300px;
        bottom: -150px;
    }
}

/* ===================== SMALL MOBILE (max-width: 480px) ===================== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-cta {
        padding: 10px 24px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hands-image {
        width: 100%;
    }

    .logo-video-wrapper {
        width: 18%;
    }

    .marquee-label {
        font-size: 14px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .marquee-logo {
        font-size: 14px;
    }

    .trading-section,
    .why-section,
    .performance-section,
    .about-section {
        padding: 50px 16px 40px;
    }

    .arch-section {
        padding: 50px 16px;
    }

    .bento-section {
        padding: 24px 16px 40px;
    }

    .trading-card {
        padding: 20px;
    }

    .bento-card {
        padding: 20px;
    }

    .perf-card {
        width: 85vw;
        min-height: 300px;
        padding: 24px 20px;
    }

    .perf-value {
        font-size: 48px;
        padding: 28px 0;
    }

    .about-card {
        padding: 24px 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 16px 0;
    }

    .footer-big-text>span {
        font-size: 50px;
    }

    .footer-legal {
        font-size: 11px;
    }
}