/* ============================================
   DALI TRADING PULSE - Premium Stylesheet
   Modern, Clean, Professional Design
   Cross-browser Compatible
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
    --gold: #D4AF37;
    --gold-light: #E8C547;
    --gold-dark: #B8960C;
    --black: #000000;
    --bg-dark: #0A0A0A;
    --bg-card: #111111;
    --bg-elevated: #161616;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-800: #262626;
    --green: #22C55E;
    --red: #EF4444;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; 
}
html { 
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    background: #0A0A0A; /* Fallback */
    color: var(--gray-200);
    color: #E5E5E5; /* Fallback */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- RTL ---------- */
body.rtl { direction: rtl; }
body.rtl .nav, body.rtl .header__right { 
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse; 
}

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}
.btn--outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn--outline:hover {
    background: var(--gold);
    color: var(--black);
}
.btn--glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}
.btn--glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.2);
}
.btn--white {
    background: var(--white);
    color: var(--black);
}
.btn--white:hover {
    background: var(--gray-200);
}
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- Ticker ---------- */
.ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(90deg, var(--bg-dark) 0%, #0f0f0f 50%, var(--bg-dark) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker__inner {
    width: 100%;
    height: 100%;
}
/* Hide TradingView branding */
.ticker .tradingview-widget-copyright,
.ticker a[href*="tradingview.com"] {
    display: none !important;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 999;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { height: 44px; width: auto; }
.logo__img--sm { height: 36px; }
.logo__text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}
.logo__text span {
    color: var(--gold);
}

.nav { display: flex; gap: 32px; }
.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
    position: relative;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }

.header__right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-500);
    border-radius: 6px;
    transition: var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 136px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    padding: 32px 24px;
    z-index: 998;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-200);
    border-bottom: 1px solid var(--gray-800);
}
.mobile-menu__lang {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 196px 0 100px;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.7) 0%,
        rgba(10,10,10,0.5) 40%,
        rgba(10,10,10,0.8) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    /* Left aligned, not centered */
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__desc {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat { text-align: left; }
.hero__stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
}
.hero__stat-label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scroll-line 2s infinite;
}
@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Trusted Section ---------- */
.trusted {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.trusted__text {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.trusted__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trusted__logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    opacity: 0.7;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}
.section--dark {
    background: var(--bg-card);
}
.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 16px;
}
.section__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.section__desc {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.feature:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}
.feature--highlight {
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.02) 100%);
    border-color: rgba(212, 175, 55, 0.3);
}
.feature__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--black);
}
.feature__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.feature__desc {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
}
.feature__link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    transition: var(--transition);
}
.feature__link:hover { color: var(--gold-light); }

/* ---------- Showcase ---------- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.showcase__title {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}
.showcase__desc {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 24px;
}
.showcase__tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.tag {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 13px;
    color: var(--gray-400);
}
.tag--gold {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}
.showcase__actions {
    display: flex;
    gap: 16px;
}
.showcase__visual {
    position: relative;
}
.showcase__video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.showcase__video video {
    width: 100%;
    display: block;
}
.showcase__video-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ---------- Services ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}
.service:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}
.service__icon {
    font-size: 32px;
    margin-bottom: 16px;
}
.service__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}
.service__desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ---------- Markets Hub ---------- */
.market-hub {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.market-hub__main {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.market-hub__main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 1;
}
.market-hub__chart {
    height: 580px;
    width: 100%;
}
.market-hub__chart iframe {
    height: 100% !important;
    width: 100% !important;
}

.market-hub__tickers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ticker-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.ticker-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.ticker-card--gold {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, var(--bg-elevated) 100%);
}
.ticker-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-card__icon {
    font-size: 24px;
}
.ticker-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}
.ticker-card__pair {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ticker-card__chart {
    height: 220px;
}

.market-hub__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.market-panel {
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.market-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: rgba(0,0,0,0.2);
}
.market-panel__content {
    height: 480px;
}

.market-hub__heatmap {
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.market-hub__heatmap-widget {
    height: 450px;
}

/* Hide TradingView branding */
.market-hub .tradingview-widget-copyright,
.ticker-card .tradingview-widget-copyright,
.market-panel .tradingview-widget-copyright {
    display: none !important;
}

/* ---------- Chart Section ---------- */
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}
.market-card__widget {
    padding: 16px;
}

/* Animated pulse for live indicator */
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.live-indicator__dot {
    animation: pulse 2s infinite, live-pulse 2s infinite;
}

/* Market stats row */
.market-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.market-stat {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.market-stat:hover {
    border-color: rgba(212, 175, 55, 0.2);
}
.market-stat__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.market-stat__label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide TradingView branding in widgets */
.market-card .tradingview-widget-copyright,
.market-main .tradingview-widget-copyright,
.news-card .tradingview-widget-copyright {
    display: none !important;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
}
.live-indicator__dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

/* ---------- Chart ---------- */
.chart-wrap {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.chart-wrap iframe {
    display: block;
}

/* ---------- News ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.news-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}
.news-card__widget {
    padding: 16px;
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}
.contact__method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact__method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact__method strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 2px;
}
.contact__method span {
    font-size: 13px;
    color: var(--gray-500);
}
.contact__form-wrap {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}
.cta__bg {
    position: absolute;
    inset: 0;
}
.cta__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.85) 0%,
        rgba(10,10,10,0.7) 50%,
        rgba(10,10,10,0.85) 100%
    );
}
.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.cta__desc {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.7;
}
.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--black);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}
.footer__brand p {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 300px;
}
.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.footer__col a {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    padding: 6px 0;
    transition: var(--transition);
}
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__bottom p {
    font-size: 13px;
    color: var(--gray-600);
}
.footer__legal {
    display: flex;
    gap: 24px;
}
.footer__legal a {
    font-size: 13px;
    color: var(--gray-600);
    transition: var(--transition);
}
.footer__legal a:hover { color: var(--gold); }
.footer__disclaimer {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.modal.active,
.modal[style*="flex"] {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
}
.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.modal__content {
    position: relative;
    background: #111111;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-animation: modalIn 0.3s ease;
    animation: modalIn 0.3s ease;
}
@-webkit-keyframes modalIn {
    from { opacity: 0; -webkit-transform: scale(0.95) translateY(20px); transform: scale(0.95) translateY(20px); }
    to { opacity: 1; -webkit-transform: scale(1) translateY(0); transform: scale(1) translateY(0); }
}
@keyframes modalIn {
    from { opacity: 0; -webkit-transform: scale(0.95) translateY(20px); transform: scale(0.95) translateY(20px); }
    to { opacity: 1; -webkit-transform: scale(1) translateY(0); transform: scale(1) translateY(0); }
}
.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--gray-400);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.modal__close:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}
.modal__header {
    text-align: center;
    margin-bottom: 32px;
}
.modal__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.modal__title span {
    color: var(--gold);
}
.modal__subtitle {
    font-size: 14px;
    color: var(--gray-500);
}
.modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal__form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.modal__form .form-group input,
.modal__form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}
.modal__form .form-group input::placeholder,
.modal__form .form-group textarea::placeholder {
    color: var(--gray-600);
}
.modal__form .form-group input:focus,
.modal__form .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .showcase { grid-template-columns: 1fr; gap: 60px; }
    .showcase__visual { order: -1; }
    .contact { grid-template-columns: 1fr; gap: 60px; }
    .footer__main { grid-template-columns: 1fr; gap: 60px; }
    .market-hub__tickers { grid-template-columns: repeat(2, 1fr); }
    .market-hub__row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav, .header__right .btn { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu { display: flex; }
    
    .hero { padding: 176px 0 80px; }
    .hero__stats { flex-wrap: wrap; gap: 24px; }
    .hero__scroll { display: none; }
    
    .section { padding: 80px 0; }
    .features, .services, .news-grid { grid-template-columns: 1fr; }
    .market-hub__tickers { grid-template-columns: 1fr; }
    .market-hub__chart { height: 450px; }
    .market-panel__content { height: 350px; }
    .market-hub__heatmap-widget { height: 300px; }
    .chart-wrap { height: 450px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer__links { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .modal__content { padding: 24px; margin: 16px; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .showcase__actions { flex-direction: column; }
    .showcase__actions .btn { width: 100%; }
    .cta__actions { flex-direction: column; }
    .cta__actions .btn { width: 100%; }
}

/* ---------- Cross-Browser Fixes ---------- */
/* Safari fixes */
@supports (-webkit-touch-callout: none) {
    .hero { min-height: -webkit-fill-available; }
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg-card);
}

/* Webkit scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { 
    background: var(--gold); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover { transform: none; }
    .feature:hover { transform: none; }
    .service:hover { transform: none; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --gold: #FFD700;
        --gray-400: #FFFFFF;
    }
}

/* Print styles */
@media print {
    .ticker, .header, .mobile-menu, .modal, .cta, footer { display: none !important; }
    body { background: white; color: black; }
    .hero { min-height: auto; padding: 20px 0; }
}

/* IE11 Fallbacks */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .hero { height: 100vh; }
    .market-hub__chart { height: 580px; }
}
