:root {
    --primary-bg: #0A101F;
    --secondary-bg: #121A2C;
    --header-bg: rgba(18, 26, 44, 0.85);
    --border-color: #2A3B5A;
    --text-primary: #E6F1FF;
    --text-secondary: #A9B8D2;
    --accent-primary: #00A8FF;
    /* Bright cyan/blue */
    --accent-secondary: #00E0C7;
    /* Bright teal */
    --accent-hover: #0086CC;
    --accent-gold: #F0B90B;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-short: 180ms;
    --dur-mid: 280ms;
    --dur-long: 420ms;
    --shadow-halo: 0 10px 30px rgba(0, 168, 255, 0.16);
}


/* --- General & Reset --- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

main {
    flex-grow: 1;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Motion Utilities --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-long) var(--ease-soft), transform var(--dur-long) var(--ease-soft);
}

.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-ghost-hover {
    transition: transform var(--dur-short) var(--ease-soft), box-shadow var(--dur-short) var(--ease-soft), color var(--dur-short);
}

.btn-ghost-hover:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-halo);
    color: var(--accent-secondary);
}

.card-hover {
    transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.chart-reveal {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}

.chart-reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

.loader-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    animation: line-progress 1.2s infinite;
}

@keyframes line-progress {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-2px);
    }

    .btn-ghost-hover:hover {
        transform: scale(1.01);
    }

    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-search {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-search-form {
        max-width: none;
    }
}


/* --- Header --- */

header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    overflow: visible;
    min-height: 48px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 16px;
}

.logo {
    height: 64px;
    width: 64px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 64px;
    overflow: hidden;
    border-radius: 50%;
    line-height: 0;
}

.logo img,
header .logo img {
    max-height: 64px;
    max-width: 64px;
    object-fit: contain;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-search-form {
    width: 100%;
    max-width: 320px;
}

.nav-search-form input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.97rem;
    transition: border-color var(--dur-short) var(--ease-soft), box-shadow var(--dur-short) var(--ease-soft), background var(--dur-short);
}

.nav-search-form input[type="search"]:focus {
    outline: none;
    border-color: rgba(0, 168, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.nav-actions > li {
    display: flex;
    align-items: center;
    margin-left: 0;
}

nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft), border-color var(--dur-mid) var(--ease-soft), background var(--dur-mid) var(--ease-soft), color var(--dur-mid);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    box-shadow: 0 10px 24px rgba(0, 168, 255, 0.15);
}

.nav-link-ghost {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link-ghost:hover {
    color: var(--text-primary);
}

.nav-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--text-primary);
    transition: transform var(--dur-short) var(--ease-soft), opacity var(--dur-short) var(--ease-soft);
}

.nav-dropdown.open .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-dropdown.open .nav-burger span:nth-child(2) {
    opacity: 0;
}

.nav-dropdown.open .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0;
    color: var(--text-primary);
    transition: transform var(--dur-short) var(--ease-soft), box-shadow var(--dur-short) var(--ease-soft), border-color var(--dur-short), background var(--dur-short);
}

.nav-dropdown-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.nav-caret {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 115%;
    right: 0;
    min-width: 200px;
    background: rgba(12, 18, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity var(--dur-short) var(--ease-soft), transform var(--dur-short) var(--ease-soft);
    z-index: 2000;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu .nav-link {
    width: 100%;
    border: none;
    background: transparent;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
}

.nav-dropdown-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0A101F;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(0, 168, 255, 0.35);
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 32px rgba(0, 168, 255, 0.45);
}

.cta-button,
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #0A101F;
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
}


/* --- Hero Section --- */

.hero {
    position: relative;
    padding: 90px 5% 120px;
    background: radial-gradient(1200px at 15% 20%, rgba(240, 185, 11, 0.08), transparent), var(--primary-bg);
    overflow: hidden;
}

.hero-trust .hero-grid {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(360px, 420px);
    gap: 50px;
    align-items: start;
}

.hero-left {
    max-width: 760px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-left {
    padding-top: 60px;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.05;
}

.big-number {
    font-size: 4.5rem;
    color: var(--accent-gold);
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.wreath {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.trust-title {
    font-weight: 800;
    color: var(--text-primary);
}

.trust-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.cta-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 1rem;
}

.cta-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
}

.cta-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ghost-pill {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition: transform var(--dur-short) var(--ease-soft), border-color var(--dur-short), background var(--dur-short);
}

.ghost-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.panel {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tabs {
    display: inline-flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
}

.tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dur-short) var(--ease-soft), color var(--dur-short) var(--ease-soft);
}

.tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.panel-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.market-panel {
    padding: 18px;
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background var(--dur-short) var(--ease-soft);
}

.market-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.asset {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0A101F;
    font-size: 1.1rem;
}

.asset-name {
    font-weight: 700;
    color: var(--text-primary);
}

.asset-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.asset-price {
    font-weight: 700;
    color: var(--text-primary);
}

.asset-change {
    font-weight: 700;
    text-align: right;
}

.asset-change.negative {
    color: #F16B6B;
}

.asset-change.positive {
    color: #20c17f;
}

.btc {
    background: linear-gradient(135deg, #f2a900, #f8c23c);
}

.eth {
    background: linear-gradient(135deg, #7b7ff7, #9fa4ff);
}

.bnb {
    background: linear-gradient(135deg, #f0b90b, #f5d25c);
}

.xrp {
    background: linear-gradient(135deg, #555, #777);
    color: #fff;
}

.alt {
    background: linear-gradient(135deg, #00c9a7, #00e0c7);
}

.news-panel {
    padding: 18px;
    margin-bottom: 20px;
}

.panel-title {
    font-weight: 800;
    color: var(--text-primary);
}

.panel-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reviews-panel {
    padding: 18px;
}

.reviews-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.review-card {
    min-width: 240px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform var(--dur-mid) var(--ease-soft), box-shadow var(--dur-mid) var(--ease-soft), border-color var(--dur-mid);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-name {
    font-weight: 800;
    color: var(--text-primary);
}

.review-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.review-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.review-add-panel {
    min-height: 200px;
}

.review-add-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.review-add-plus {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--dur-mid) var(--ease-soft), background var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
}

.review-add-plus:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
}

.review-add-text {
    margin: 0;
    color: var(--text-secondary);
}

.carousel-controls {
    display: inline-flex;
    gap: 8px;
}

.carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform var(--dur-short) var(--ease-soft), background var(--dur-short) var(--ease-soft);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-list li a {
    color: var(--text-primary);
    font-weight: 600;
}

.news-list li a:hover {
    color: var(--accent-primary);
}

.news-item-meta {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.news-loading {
    color: var(--text-secondary);
}

.news-list li {
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-timeline {
    position: relative;
    padding-left: 18px;
}

.news-timeline li {
    position: relative;
    padding-left: 18px;
}

.news-timeline li::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(0, 224, 199, 0.12);
}

.news-timeline li::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 1.3em;
    width: 1px;
    height: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.08);
}

.news-timeline li:last-child::after {
    display: none;
}
@media (max-width: 960px) {
    .hero-trust .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 70px 6% 140px;
    }

    .hero-left {
        padding-top: 40px;
    }

    .cta-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px 6%;
    }

    .content-layout.reverse .content-text {
        order: 1;
    }

    .content-layout.reverse .content-media {
        order: 2;
    }

    .content-text h2 {
        font-size: 2.2rem;
    }

    .content-media {
        min-height: 240px;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .content-media img,
    .content-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* Angled divider */

.section-divider {
    position: relative;
    height: 100px;
    background-color: var(--primary-bg);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}


/* --- Features Section --- */

.features-section {
    padding: 80px 5%;
    background-color: var(--primary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.features-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.features-grid.show-backtest {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.features-grid.show-backtest .feature-card:not(.backtest-card) {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    filter: blur(1px);
}

.features-grid.show-backtest .feature-card:not(.backtest-card) {
    display: none;
}

.backtest-graph {
    background: linear-gradient(145deg, rgba(0, 168, 255, 0.08), rgba(21, 181, 137, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
    display: none;
    flex-direction: column;
    gap: 12px;
}

.features-grid.show-backtest .backtest-graph {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.graph-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-primary);
}

.graph-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.graph-canvas {
    position: relative;
    height: 220px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.graph-line {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.graph-svg {
    position: absolute;
    inset: 0;
}

.graph-grid line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.graph-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: path-draw 1.6s var(--ease-soft) forwards;
}

.graph-arrow {
    filter: drop-shadow(0 0 10px rgba(32, 193, 127, 0.8));
}

.graph-arrow path {
    filter: drop-shadow(0 0 8px rgba(32, 193, 127, 0.6));
}

@keyframes path-draw {
    to { stroke-dashoffset: 0; }
}

.graph-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background: linear-gradient(135deg, #15b589, #00a8ff);
}

.backtest-card {
    position: relative;
    overflow: hidden;
}

.backtest-diagram {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(0, 224, 199, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-soft);
}

.backtest-card.hovered .backtest-diagram {
    opacity: 1;
    transform: translateY(0);
}

.bt-line {
    position: relative;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(21, 181, 137, 0.4), rgba(0, 168, 255, 0.4));
    overflow: hidden;
    margin-bottom: 12px;
}

.bt-point {
    position: absolute;
    top: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-secondary);
    border: 2px solid var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(0, 224, 199, 0.2);
}

.bt-point.p1 { left: 4%; }
.bt-point.p2 { left: 30%; }
.bt-point.p3 { left: 62%; }
.bt-point.p4 { left: 88%; }

.bt-legend {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}


/* --- Content Layouts --- */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}


/* Reverse layout for alternating sections */

.content-layout.reverse {
    grid-template-columns: 1fr 1fr;
    /* Keep this for explicitness */
}

.content-layout.reverse .content-text {
    order: 2;
}

.content-layout.reverse .content-media {
    order: 1;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-height: 260px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(21, 181, 137, 0.08));
    aspect-ratio: 4 / 3;
}

.content-media img,
.content-media .video-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.video-placeholder::after {
    content: '▶';
}


/* --- Final CTA Section --- */

.final-cta-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(18, 26, 44, 0.9), rgba(18, 26, 44, 0.9)), url('../images/hero-bg.svg') no-repeat center center/cover;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}


/* --- Footer --- */

footer {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
    padding: 40px 5%;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer ul li {
    margin-left: 20px;
}

footer ul li a {
    color: var(--text-secondary);
}

footer ul li a:hover {
    color: var(--accent-primary);
}


/* --- Under Development Banner --- */

.dev-banner {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
}


/* --- Generic Page Styles --- */

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #A9B8D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}


/* --- Article/Indicator Grid --- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-preview {
    display: block;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.article-preview:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-preview h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.article-preview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-preview .learn-more-btn {
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.article-preview .learn-more-btn::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.3s ease;
}

.article-preview:hover .learn-more-btn::after {
    transform: translateX(5px);
}


/* --- Forms --- */

.form-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Moderator Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.stat-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Mobile (phones) --- */
@media (max-width: 640px) {
    body {
        font-size: 0.95rem;
    }

    .section-divider,
    .section-divider::before {
        height: 60px;
    }

    header {
        padding: 0.35rem 5%;
    }

    nav {
        gap: 10px;
    }

    .logo,
    header .logo img,
    .logo img {
        max-height: 56px;
        max-width: 56px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu {
        right: -6px;
        top: 110%;
        min-width: 180px;
    }

    .hero {
        padding: 60px 5% 70px;
    }

    .hero-trust .hero-grid {
        gap: 28px;
    }

    .hero-left {
        padding-top: 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.6rem;
        line-height: 1.08;
    }

    .big-number {
        font-size: 3.2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .cta-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cta-input {
        padding: 14px 15px;
        font-size: 0.95rem;
    }

    .hero-right {
        gap: 14px;
    }

    .panel {
        padding: 16px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .reviews-carousel {
        gap: 12px;
    }

    .review-card {
        min-width: 220px;
    }

    .review-add-plus {
        margin: 0;
    }

    .features-section {
        padding: 60px 5%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px;
        text-align: left;
    }

    .feature-card .icon {
        margin-bottom: 14px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 70px 6%;
    }

    .content-layout.reverse .content-text {
        order: 1;
    }

    .content-layout.reverse .content-media {
        order: 2;
    }

    .content-text h2 {
        font-size: 2rem;
    }

    .content-media {
        min-height: 220px;
        width: 100%;
    }

    .final-cta-section {
        padding: 70px 14px;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    footer {
        padding: 30px 5%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    footer ul {
        gap: 12px;
        flex-wrap: wrap;
    }

    .dev-banner {
        font-size: 0.95rem;
    }
}
