/* OKX Original Style - Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=HarmonyOS+Sans+SC:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --okx-bg: #000000;
    --okx-card-bg: #121212;
    --okx-hover: #1e1e1e;
    --okx-text-primary: #ffffff;
    --okx-text-secondary: #929292;
    --okx-brand: #fff; /* OKX often uses stark white on black, or specific blue/green */
    --okx-green: #00c087; /* Trading Buy Green */
    --okx-red: #ea3943;   /* Trading Sell Red */
    --okx-blue: #2962ff;
    --border-color: #2c2c2c;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'HarmonyOS Sans SC', 'Roboto', sans-serif;
    background-color: var(--okx-bg);
    color: var(--okx-text-primary);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover { color: var(--okx-blue); }

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #ddd;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--okx-text-secondary);
    margin-bottom: 40px;
}

.input-group {
    display: inline-flex;
    background: var(--okx-card-bg);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    width: 400px;
    max-width: 100%;
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    flex: 1;
    outline: none;
    font-size: 16px;
}

.input-group button {
    border-radius: 26px;
    padding: 12px 30px;
}

/* Crypto Ticker Animation */
.ticker-container {
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    background: rgba(255,255,255,0.02);
}

.ticker-scroll {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

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

.ticker-item {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

/* Why OKX Section */
.why-okx {
    padding: 100px 20px;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.why-card {
    background: var(--okx-card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.why-card:hover {
    border-color: #333;
    background: var(--okx-hover);
    transform: translateY(-5px);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

/* Ecosystem Section */
.ecosystem {
    padding: 80px 20px;
    background: #0a0a0a;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.eco-card {
    background: linear-gradient(135deg, #121212 0%, #000 100%);
    border: 1px solid #222;
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eco-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    z-index: 2;
}

.eco-card p {
    color: var(--okx-text-secondary);
    max-width: 60%;
    z-index: 2;
}

.eco-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 180px;
    color: rgba(255,255,255,0.03);
    z-index: 1;
}

/* Partners Section */
.partners {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    opacity: 0.6;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}


.percent-up { color: var(--okx-green); }
.percent-down { color: var(--okx-red); }

/* Market Table */
.market-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table th {
    text-align: left;
    color: var(--okx-text-secondary);
    font-weight: 400;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.market-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
}

.trade-btn {
    color: var(--okx-blue);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
}

.trade-btn:hover {
    border-color: var(--okx-blue);
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--okx-card-bg);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--okx-hover);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

/* Download Section */
.app-download {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.qr-box {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 40px;
    vertical-align: middle;
}

.download-text {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

/* Footer */
.footer {
    padding: 60px 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    color: var(--okx-text-secondary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 12px;
}

.footer li a:hover {
    color: #fff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1a1a;
    width: 600px;
    max-width: 90%;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid #333;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #fff;
    background: #333;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.modal-body {
    color: #aaa;
    line-height: 1.8;
    font-size: 16px;
}

/* Make cards clickable */
.why-card, .eco-card {
    cursor: pointer;
}
