* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #162032;
    overflow-x: hidden;
}

img,
video,
svg {
    max-width: 100%;
}


/* =========================
   HEADER / DESKTOP NAV
========================= */

.header {
    min-height: 78px;
    padding: 0 6%;
    background: rgba(7, 17, 31, 0.98);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.logo,
.footer-logo {
    color: white;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span,
.footer-logo span {
    color: #d4a72c;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #d7dee9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.25s ease;
}

nav a:hover {
    color: #d4a72c;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn,
.join-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.25s ease;
}

.login-btn {
    color: #f8fafc;
    background: transparent;
    border: 1px solid #475569;
}

.login-btn:hover {
    color: white;
    border-color: #d4a72c;
    background: rgba(212, 167, 44, 0.08);
}

.join-btn {
    color: #07111f;
    background: #d4a72c;
    border: 1px solid #d4a72c;
}

.join-btn:hover {
    background: #e1b333;
    border-color: #e1b333;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #334155;
    color: white;
    font-size: 22px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
}


/* =========================
   VIDEO HERO
========================= */

.hero {
    min-height: 680px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 86px 8%;
    background: #07111f;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;

    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 10, 19, .96) 0%,
            rgba(3, 10, 19, .84) 42%,
            rgba(3, 10, 19, .52) 72%,
            rgba(3, 10, 19, .38) 100%
        );

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 790px;
    color: white;
}

.small-title {
    color: #e0af29;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(46px, 4.8vw, 66px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 18px 0 24px;
}

.hero h1 span {
    display: block;
    color: #d4a72c;
}

.hero-content > p {
    max-width: 680px;
    font-size: 19px;
    line-height: 1.75;
    color: #d7dee9;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 9px;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;
    transition: 0.25s ease;
}

.primary-btn {
    background: #d4a72c;
    color: #07111f;
    border: 1px solid #d4a72c;
}

.primary-btn:hover {
    background: #e1b333;
    border-color: #e1b333;
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(7, 17, 31, .45);
    color: white;
    border: 1px solid #718096;
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    border-color: #d4a72c;
    background: rgba(7, 17, 31, .7);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 62px;
    margin-top: 58px;
    flex-wrap: wrap;
}

.hero-stats > div {
    min-width: 135px;
}

.hero-stats h3 {
    font-size: 27px;
    color: #d4a72c;
    margin-bottom: 4px;
}

.hero-stats p {
    color: #cbd5e1;
    font-size: 14px;
}


/* =========================
   INVESTMENT STATS
========================= */

.platform-stats {
    width: min(1240px, 88%);
    margin: -48px auto 0;

    position: relative;
    z-index: 10;

    background: #0c1726;
    border: 1px solid #26364b;
    border-radius: 18px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    box-shadow: 0 22px 45px rgba(0,0,0,.22);
    overflow: hidden;
}

.stat-box {
    min-height: 125px;
    padding: 26px 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border-right: 1px solid #26364b;
}

.stat-box:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 29px;
    flex: 0 0 auto;
}

.stat-box h3 {
    color: #e3b341;
    font-size: 28px;
    margin-bottom: 4px;
}

.stat-box p {
    color: #aeb8c7;
    font-size: 14px;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    max-width: 760px;
    margin: auto;
    text-align: center;
}

.section-heading > span,
.section-small {
    color: #b98919;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.section-heading h2 {
    font-size: clamp(31px, 3.4vw, 42px);
    color: #07111f;
    margin: 10px 0 12px;
    letter-spacing: -0.7px;
}

.section-heading p {
    color: #697386;
    line-height: 1.75;
}


/* =========================
   PROJECTS
========================= */

.projects {
    padding: 105px 7% 90px;
    background: #fff;
}

.project-grid {
    max-width: 1250px;
    margin: 46px auto 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.project-card {
    background: white;
    border: 1px solid #e0e5ec;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(0,0,0,.11);
}

.project-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 26px;
}

.project-type {
    color: #b18722;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .3px;
}

.project-content h3 {
    font-size: 25px;
    margin: 10px 0;
    color: #0b1625;
}

.project-content p {
    color: #697386;
    line-height: 1.72;
    margin-bottom: 20px;
}

.project-content a {
    text-decoration: none;
    color: #b18722;
    font-weight: 700;
}


/* =========================
   MARKET
========================= */

.market-section {
    padding: 92px 8%;
    background: #07111f;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 70px;
    align-items: center;
}

.market-left {
    color: white;
}

.market-left h2 {
    font-size: clamp(34px, 3.5vw, 42px);
    margin: 12px 0;
}

.market-left > p {
    color: #aab5c5;
    line-height: 1.7;
}

.market-list {
    margin-top: 35px;
}

.market-item {
    padding: 18px 0;
    border-bottom: 1px solid #263244;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.market-item strong {
    display: block;
    margin-bottom: 4px;
}

.market-item small {
    color: #8591a3;
}

.positive {
    color: #4ade80;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================
   CHART
========================= */

.chart-box {
    background: #101c2d;
    border: 1px solid #263244;
    padding: 25px;
    border-radius: 16px;
    min-width: 0;
    box-shadow: 0 18px 35px rgba(0,0,0,.16);
}

.chart-header {
    color: white;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.chart-header p {
    color: #8793a5;
    font-size: 13px;
}

.chart-header h3 {
    margin-top: 5px;
}

.chart-header span {
    color: #d4a72c;
    font-size: 12px;
    white-space: nowrap;
}

.chart {
    height: 300px;
    position: relative;
    margin-top: 25px;
    overflow: hidden;
}

.chart-lines {
    position: absolute;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-lines div {
    border-top: 1px solid #243144;
}

.chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.chart polyline {
    fill: none;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}

.gold-line {
    stroke: #e3b341;
}

.oil-line {
    stroke: #38bdf8;
}

.gas-line {
    stroke: #4ade80;
}

.chart-legend {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;

    color: #c4ccd8;
    font-size: 13px;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.chart-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.gold-dot {
    background: #e3b341;
}

.oil-dot {
    background: #38bdf8;
}

.gas-dot {
    background: #4ade80;
}

.demo-warning {
    margin-top: 15px;
    color: #6f7c8f;
    font-size: 11px;
}


/* =========================
   HOW IT WORKS
========================= */

.how-it-works {
    padding: 90px 7%;
}

.steps {
    max-width: 1200px;
    margin: 46px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    background: white;
    border: 1px solid #e1e6ec;
    border-radius: 14px;
    padding: 28px;

    box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;

    background: #fff6dc;
    color: #a67911;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 800;
}

.step-card h3 {
    margin: 18px 0 8px;
}

.step-card p {
    color: #697386;
    line-height: 1.65;
}


/* =========================
   CTA
========================= */

.cta {
    margin: 30px 7% 80px;
    padding: 55px;

    border-radius: 18px;

    background:
        linear-gradient(
            100deg,
            #101c2d,
            #172b46
        );

    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta h2 {
    font-size: clamp(29px, 3.5vw, 36px);
    margin: 10px 0;
}

.cta p {
    color: #b4bfce;
}

.cta button,
.cta-register-link {
    min-height: 50px;
    padding: 0 24px;

    background: #d4a72c;
    color: #07111f;

    border: 1px solid #d4a72c;
    border-radius: 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;

    cursor: pointer;
    transition: 0.25s ease;
}

.cta button:hover,
.cta-register-link:hover {
    background: #e1b333;
    border-color: #e1b333;
    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

footer {
    background: #030a13;
    color: #8f9aab;
    text-align: center;
    padding: 46px 20px;
}

footer p {
    margin-top: 13px;
}

.risk {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================
   MOBILE AUTH BUTTONS
========================= */

.mobile-auth-buttons {
    display: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .header {
        padding: 0 4%;
        gap: 18px;
    }

    nav {
        gap: 20px;
    }

    .login-btn,
    .join-btn {
        padding: 0 14px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-section {
        gap: 42px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .header {
        min-height: 70px;
        padding: 0 5%;
        flex-wrap: wrap;
    }

    .header .logo {
        order: 1;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header nav {
        display: none;
        order: 4;

        width: 100%;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px 0 18px;

        border-top: 1px solid #1f2d3f;
    }

    .header nav.active {
        display: flex;
    }

    .header nav > a {
        padding: 12px 4px;
        font-size: 15px;
    }

    .header-buttons {
        display: none;
    }

    .mobile-auth-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;

        margin-top: 14px;
        padding-top: 16px;

        border-top: 1px solid #26364b;
    }

    .mobile-login-btn,
    .mobile-register-btn {
        min-height: 44px;
        padding: 0 14px;

        border-radius: 9px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        text-decoration: none;
        font-size: 14px;
        font-weight: 700;

        transition: 0.25s ease;
    }

    .mobile-login-btn {
        background: transparent;
        color: #f8fafc;
        border: 1px solid #52637a;
    }

    .mobile-register-btn {
        background: #d4a72c;
        color: #07111f;
        border: 1px solid #d4a72c;
    }

    .mobile-login-btn:hover {
        border-color: #d4a72c;
    }

    .mobile-register-btn:hover {
        background: #e1b333;
    }

    .hero {
        min-height: 620px;
        padding: 72px 6% 92px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 10, 19, .95) 0%,
                rgba(3, 10, 19, .84) 60%,
                rgba(3, 10, 19, .6) 100%
            );
    }

    .hero h1 {
        font-size: clamp(39px, 8vw, 49px);
    }

    .hero-content > p {
        font-size: 17px;
    }

    .hero-stats {
        gap: 24px 36px;
        margin-top: 42px;
    }

    .platform-stats {
        width: 90%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -36px;
    }

    .stat-box {
        min-height: 112px;
        border-bottom: 1px solid #26364b;
    }

    .stat-box:nth-child(2) {
        border-right: none;
    }

    .stat-box:nth-child(3),
    .stat-box:nth-child(4) {
        border-bottom: none;
    }

    .projects,
    .how-it-works {
        padding: 72px 6%;
    }

    .project-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 260px;
    }

    .market-section {
        padding: 76px 6%;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .chart {
        height: 260px;
    }

    .cta {
        margin: 30px 6% 65px;
        padding: 42px 32px;

        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 550px) {

    .header {
        padding: 0 18px;
    }

    .logo {
        font-size: 21px;
    }

    .menu-toggle {
        font-size: 21px;
        padding: 7px 9px;
    }

    .mobile-auth-buttons {
        gap: 8px;
        margin-top: 12px;
        padding-top: 14px;
    }

    .mobile-login-btn,
    .mobile-register-btn {
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }

    .hero {
        min-height: 590px;
        padding: 60px 20px 82px;
    }

    .hero-video {
        object-position: center center;
    }

    .small-title {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -.7px;
        margin: 14px 0 18px;
    }

    .hero-content > p {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        min-height: 48px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 12px;
        width: 100%;
        margin-top: 34px;
    }

    .hero-stats > div {
        min-width: 0;
    }

    .hero-stats h3 {
        font-size: 20px;
    }

    .hero-stats p {
        font-size: 11px;
        line-height: 1.4;
    }

    .platform-stats {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        margin-top: -28px;
        border-radius: 14px;
    }

    .stat-box {
        min-height: 90px;
        justify-content: flex-start;

        padding: 20px 24px;

        border-right: none;
        border-bottom: 1px solid #26364b;
    }

    .stat-box:nth-child(3) {
        border-bottom: 1px solid #26364b;
    }

    .stat-box:last-child {
        border-bottom: none;
    }

    .stat-box h3 {
        font-size: 24px;
    }

    .projects,
    .how-it-works {
        padding: 60px 20px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .project-grid,
    .steps {
        margin-top: 32px;
    }

    .project-card img {
        height: 220px;
    }

    .project-content {
        padding: 22px;
    }

    .project-content h3 {
        font-size: 23px;
    }

    .market-section {
        padding: 65px 20px;
    }

    .market-left h2 {
        font-size: 30px;
    }

    .market-item {
        gap: 12px;
    }

    .chart-box {
        padding: 18px;
        border-radius: 12px;
    }

    .chart-header {
        align-items: flex-start;
    }

    .chart {
        height: 220px;
    }

    .chart-legend {
        gap: 16px;
    }

    .cta {
        margin: 24px 16px 55px;
        padding: 32px 24px;
        border-radius: 14px;
    }

    .cta h2 {
        font-size: 27px;
    }

    .cta button,
    .cta-register-link {
        width: 100%;
        min-height: 48px;
    }

    footer {
        padding: 38px 20px;
    }
}


/* =========================
   EXTRA SMALL PHONES
========================= */

@media (max-width: 380px) {

    .mobile-auth-buttons {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-stats > div {
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .hero-stats > div:last-child {
        border-bottom: none;
    }

    .platform-stats {
        width: calc(100% - 24px);
    }

    .projects,
    .how-it-works,
    .market-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .chart {
        height: 200px;
    }
}
