* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050b14;
    --card: #0b131f;
    --card2: #101a28;
    --border: rgba(255,255,255,.10);
    --text: #ffffff;
    --muted: #9aa4b2;
    --gold: #f5b800;
    --green: #00c981;
    --red: #ff4d4d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 70% 25%, rgba(245,184,0,.18), transparent 28%),
        linear-gradient(180deg, #03070d, #07101b 45%, #04080e);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.topbar {
    height: 72px;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(5,11,20,.88);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(180deg, #ffd633, var(--gold));
    color: #050b14;
    border-radius: 8px 16px 16px 8px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.nav {
    display: flex;
    gap: 36px;
    color: #dce2ea;
    font-weight: 600;
}

.nav a:hover {
    color: var(--gold);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 26px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn.gold {
    background: linear-gradient(180deg, #ffd633, var(--gold));
    color: #080b10;
    border: none;
}

.btn.ghost {
    background: rgba(255,255,255,.04);
}

.btn.big {
    padding: 15px 30px;
}

.btn.full {
    width: 100%;
}

.lang,
.menu-btn {
    background: none;
    color: white;
    border: none;
    font-size: 16px;
}

.menu-btn {
    display: none;
    font-size: 24px;
}

/* HERO */
.hero {
    max-width: 1400px;
    margin: auto;
    min-height: 620px;
    padding: 80px 36px 40px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
    background:
        radial-gradient(circle at 58% 52%, rgba(245,184,0,.20), transparent 22%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    color: #dce2ea;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.badge span {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    color: #c1cad6;
    font-size: 22px;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.market-widget {
    background: linear-gradient(180deg, rgba(18,29,45,.96), rgba(8,14,24,.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    min-height: 430px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    overflow: hidden;
}

/* SHARED SECTIONS */
.tv-ticker,
.markets,
.features,
.stats,
.preview,
.market-overview,
.security,
.cta {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 36px;
    padding-right: 36px;
}

.tv-ticker {
    margin-top: 10px;
}

.tv-ticker .tradingview-widget-container {
    background: rgba(11,19,31,.78);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title h2,
.preview-header h2 {
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-title p,
.preview-header p {
    color: var(--muted);
    line-height: 1.5;
    max-width: 760px;
    margin: auto;
}

/* MARKET CARDS */
.markets {
    margin-top: 42px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.market-card,
.feature-card,
.stat-card,
.security-card,
.dashboard-preview,
.cta,
footer,
.overview-box {
    background: rgba(11,19,31,.78);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.market-card,
.feature-card,
.stat-card,
.security-card {
    padding: 28px;
}

.market-card i,
.feature-card i,
.security-card i {
    color: var(--gold);
    font-size: 34px;
    margin-bottom: 18px;
}

.market-card h3,
.feature-card h3,
.security-card h3 {
    margin-bottom: 10px;
}

.market-card p,
.feature-card p,
.security-card p,
.cta p,
footer p,
.trade-note {
    color: var(--muted);
    line-height: 1.5;
}

.market-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.market-list span {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: #dce2ea;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}

/* STATS */
.stats {
    margin-top: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--gold);
    font-size: 34px;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

/* DASHBOARD PREVIEW */
.preview {
    margin-top: 48px;
}

.preview-header {
    text-align: center;
    margin-bottom: 24px;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    padding: 22px;
}

.chart-panel,
.trade-panel {
    background: #07101b;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    min-width: 0;
}

.chart-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.up {
    color: var(--green);
}

.down {
    color: var(--red);
}

.chart-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.chart-tabs button {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.chart-tabs button.active {
    background: var(--gold);
    color: #050b14;
    border-color: transparent;
}

.tradingview-chart {
    height: 360px;
    overflow: hidden;
    border-radius: 12px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.tabs button {
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: white;
    font-weight: 700;
}

.tabs .active {
    background: var(--green);
}

.trade-panel input {
    width: 100%;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0b1420;
    color: white;
    padding: 0 14px;
}

.trade-note {
    font-size: 13px;
    margin-top: 14px;
}

/* MARKET OVERVIEW */
.market-overview {
    margin-top: 48px;
}

.overview-box {
    overflow: hidden;
    min-height: 520px;
}

/* SECURITY */
.security {
    margin-top: 48px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* CTA */
.cta {
    margin-top: 44px;
    margin-bottom: 28px;
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 34px;
    padding-right: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 8px;
}

/* FOOTER */
footer {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-bottom {
    display: none;
}

/* TABLET */
@media (max-width: 1200px) {
    .topbar {
        padding: 0 30px;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 64px;
    }

    .market-widget {
        max-width: 760px;
        width: 100%;
    }

    .market-grid,
    .features,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-preview {
        grid-template-columns: 1fr;
    }

    .trade-panel {
        display: none;
    }

    .security-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* MOBILE */
@media (max-width: 900px) {
    .topbar {
        height: 66px;
        padding: 0 18px;
    }

    .logo {
        font-size: 23px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(5,11,20,.97);
        border-bottom: 1px solid var(--border);
        padding: 18px;
        flex-direction: column;
        gap: 16px;
        z-index: 80;
    }

    .nav.open {
        display: flex;
    }

    .top-actions .btn,
    .lang {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding: 42px 22px 20px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .market-widget {
        min-height: 380px;
        padding: 12px;
    }

    .tv-ticker,
    .markets,
    .features,
    .stats,
    .preview,
    .market-overview,
    .security,
    .cta {
        padding-left: 22px;
        padding-right: 22px;
    }

    .market-grid,
    .features,
    .stats-grid,
    .security-grid {
        grid-template-columns: 1fr 1fr;
    }

    .market-card,
    .feature-card,
    .stat-card,
    .security-card {
        padding: 22px;
    }

    .dashboard-preview {
        padding: 14px;
    }

    .chart-panel {
        padding: 14px;
    }

    .chart-top {
        flex-direction: column;
    }

    .tradingview-chart {
        height: 320px;
    }

    .cta {
        flex-direction: column;
        text-align: center;
    }

    .cta .btn {
        width: 100%;
    }

    footer {
        margin-bottom: 95px;
        padding: 24px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .mobile-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5,11,20,.95);
        border-top: 1px solid var(--border);
        padding: 16px;
        z-index: 90;
        backdrop-filter: blur(16px);
    }
}

/* SMALL PHONE */
@media (max-width: 520px) {
    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .badge {
        font-size: 13px;
        padding: 9px 14px;
    }

    .tv-ticker,
    .markets,
    .features,
    .stats,
    .preview,
    .market-overview,
    .security,
    .cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-grid,
    .features,
    .stats-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .market-widget {
        min-height: 340px;
    }

    .tradingview-chart {
        height: 280px;
    }

    .mobile-bottom {
        padding: 12px;
    }

    .btn {
        padding: 12px 18px;
    }
}