/* ============================================
   INTC — Intel-Branded Dark Theme
   ============================================ */

:root {
    --bg: #04080f;
    --bg-alt: #060c17;
    --surface: #0b1424;
    --surface-border: #162033;
    --text: #a8b4c8;
    --text-dim: #5a6a82;
    --text-bright: #e8edf5;
    --accent: #0071c5;
    --accent-light: #0a9fff;
    --accent-glow: rgba(0, 113, 197, 0.12);
    --accent-glow-strong: rgba(0, 113, 197, 0.25);
    --green: #34d399;
    --red: #f87171;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --max-w: 1120px;
    --nav-h: 68px;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-bright); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent-light); }

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
#nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 1000;
    background: rgba(4, 8, 15, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
#nav.scrolled { border-bottom-color: var(--surface-border); }

.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; gap: 28px;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-bright); font-weight: 700; font-size: 18px; letter-spacing: -0.5px;
}
.nav-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-bright); }
.nav-link-x { display: flex; align-items: center; opacity: 0.5; transition: opacity 0.2s; }
.nav-link-x:hover { opacity: 1; }

.nav-cta {
    padding: 8px 20px; background: var(--accent); color: #fff;
    font-weight: 600; font-size: 13px; border-radius: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow-strong); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO ── */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 30% 40%, rgba(0, 113, 197, 0.12), transparent),
        radial-gradient(ellipse 40% 50% at 70% 60%, rgba(0, 159, 255, 0.06), transparent);
}

.hero-content {
    position: relative; z-index: 1; width: 100%; max-width: var(--max-w);
    margin: 0 auto; padding: 80px 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}

.hero-tag {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: 2.5px; color: var(--accent-light); margin-bottom: 16px;
}
.hero-text h1 {
    font-size: clamp(32px, 4.5vw, 52px); font-weight: 800;
    line-height: 1.1; color: var(--text-bright); margin-bottom: 20px; letter-spacing: -1px;
}
.hero-sub { font-size: 16px; color: var(--text); max-width: 460px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; font-family: var(--font); font-size: 14px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.25s; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow-strong); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--surface-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }

.hero-ca {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
    padding: 10px 16px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 8px;
}
.ca-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent-light); letter-spacing: 1.5px; }
.hero-ca code { font-family: var(--mono); font-size: 11px; color: var(--text-dim); user-select: all; }
.ca-copy { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; display: flex; transition: color 0.2s; }
.ca-copy:hover { color: var(--accent-light); }
.ca-copy.copied { color: var(--green); }

/* Hero Card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
    width: 100%; max-width: 360px; padding: 24px;
    background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
    position: relative; overflow: hidden;
}
.hero-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), transparent);
    opacity: 0.8;
}
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.card-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.card-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--green); }

.card-body { display: flex; align-items: center; gap: 20px; }
.card-logo { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.timer-section { flex: 1; }
.timer-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 6px; }
.timer-digits { font-family: var(--mono); font-size: 36px; font-weight: 700; color: var(--text-bright); letter-spacing: 3px; line-height: 1; margin-bottom: 12px; }
.timer-digits.urgent { color: var(--red); }
.timer-bar { width: 100%; height: 3px; background: var(--surface-border); border-radius: 2px; overflow: hidden; }
.timer-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 100%; transition: width 1s linear; }

/* ── STATS BANNER ── */
.section-stats { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text-bright); }
.stat-desc { font-size: 11px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.5px; text-transform: uppercase; }

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }
.section-header { margin-bottom: 48px; }
.section-tag { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 2.5px; color: var(--accent-light); text-transform: uppercase; margin-bottom: 10px; }
.section h2, h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; color: var(--text-bright); letter-spacing: -0.5px; line-height: 1.2; }

/* ── ABOUT FLIP CARDS ── */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flip-card { perspective: 1000px; height: 240px; }
.flip-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
    position: absolute; inset: 0; backface-visibility: hidden;
    padding: 32px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--surface-border);
    display: flex; flex-direction: column; justify-content: center;
}
.flip-back { transform: rotateY(180deg); }
.flip-front .card-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--accent-glow); border-radius: 10px; color: var(--accent-light); margin-bottom: 16px;
}
.flip-front h3 { font-size: 16px; font-weight: 600; color: var(--text-bright); }
.flip-back p { font-size: 14px; color: var(--text); line-height: 1.7; }

/* ── MECHANISM STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
    padding: 28px 20px; background: var(--surface); border: 1px solid var(--surface-border);
    border-radius: var(--radius); transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.step-num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-light); margin-bottom: 14px; }
.step-card h3 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* ── INTEL SECTION ── */
.intel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intel-desc { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.intel-stats { display: flex; gap: 24px; margin-top: 28px; }
.intel-stat { display: flex; flex-direction: column; gap: 2px; }
.intel-stat-val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text-bright); }
.intel-stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.intel-card {
    background: var(--surface); border: 1px solid var(--surface-border);
    border-radius: var(--radius); overflow: hidden;
}
.stock-card { background: #1e1e1e; border: 1px solid #333; border-radius: 12px; padding: 0; }
.stock-card-header { padding: 20px 24px 12px; }
.stock-card-title { font-size: 13px; color: #999; margin-bottom: 6px; }
.stock-card-ticker { color: #666; }
.stock-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stock-price-main { font-size: 32px; font-weight: 600; color: #fff; }
.stock-price-main::before { content: ''; }
.stock-price-currency { font-size: 13px; color: #999; }
.stock-price-change { font-size: 14px; color: #0ecb81; font-weight: 500; }
.stock-arrow { font-size: 12px; }
.stock-card-date { font-size: 11px; color: #0ecb81; margin-top: 4px; }
.stock-card-tabs { display: flex; gap: 0; padding: 0 24px; border-bottom: 1px solid #333; }
.stock-tab { background: none; border: none; padding: 10px 14px; font-size: 12px; color: #888; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; font-family: inherit; }
.stock-tab:hover { color: #ccc; }
.stock-tab.active { color: #4d90fe; border-bottom-color: #4d90fe; }
.stock-chart-area { padding: 20px 24px 12px; display: flex; gap: 12px; }
.stock-chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: #555; font-family: var(--mono); padding: 4px 0; min-width: 28px; height: 160px; }
.stock-chart-main { flex: 1; display: flex; flex-direction: column; }
.stock-chart-line { height: 160px; }
.stock-chart-line svg { width: 100%; height: 100%; display: block; }
.stock-chart-x-axis { display: flex; justify-content: space-between; font-size: 10px; color: #555; font-family: var(--mono); padding: 10px 0 16px; }

/* ── TIERS TABLE ── */
.tiers-intro { font-size: 15px; color: var(--text); max-width: 600px; margin-bottom: 32px; margin-top: -20px; line-height: 1.7; }
.tiers-table-wrap { overflow-x: auto; border: 1px solid var(--surface-border); border-radius: var(--radius); background: var(--surface); }
.tiers-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 400px; }
.tiers-table thead th {
    font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
    color: var(--text-dim); text-transform: uppercase; text-align: left; padding: 14px 20px;
    border-bottom: 1px solid var(--surface-border); background: rgba(0, 113, 197, 0.03);
}
.tiers-table tbody td { padding: 12px 20px; border-bottom: 1px solid rgba(22, 32, 51, 0.8); color: var(--text); }
.tiers-table tbody tr:last-child td { border-bottom: none; }
.tiers-table tbody tr:hover { background: rgba(0, 113, 197, 0.03); }
.tiers-table tbody td:first-child { font-family: var(--mono); font-weight: 500; color: var(--text-bright); font-size: 13px; }

.tier-pct { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 4px; }
.t1 { color: var(--accent-light); background: var(--accent-glow); }
.t2 { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.t3 { color: var(--text); background: rgba(168, 180, 200, 0.08); }
.t4 { color: var(--text-dim); background: rgba(90, 106, 130, 0.08); }

/* ── LEADERBOARD ── */
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.lb-stat { padding: 14px 18px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); text-align: center; }
.lb-stat-label { display: block; font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; }
.lb-stat-value { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text-bright); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-live { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-loading { background: var(--accent-light); animation: pulse 1s ease-in-out infinite; }
.dot-error { background: var(--red); }

.lb-search { position: relative; margin-bottom: 14px; }
.lb-search input {
    width: 100%; padding: 12px 40px 12px 16px;
    background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
    color: var(--text); font-family: var(--mono); font-size: 12px; outline: none; transition: border-color 0.2s;
}
.lb-search input::placeholder { color: var(--text-dim); opacity: 0.5; }
.lb-search input:focus { border-color: var(--accent); }
.lb-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; }

.lb-pinned { margin-bottom: 4px; }
.lb-pinned-row {
    display: grid; grid-template-columns: 50px 1fr 100px 80px 100px 70px; gap: 8px; align-items: center;
    padding: 10px 18px; background: var(--accent-glow); border: 1px solid var(--accent); border-radius: var(--radius); margin-bottom: 10px; font-size: 12px;
}
.lb-pinned-row .lb-rank { color: var(--accent-light); font-weight: 700; }
.lb-pinned-row .lb-wallet { font-family: var(--mono); color: var(--accent-light); font-size: 11px; }

.lb-table-wrap { overflow-x: auto; border: 1px solid var(--surface-border); border-radius: var(--radius); background: var(--surface); }
.lb-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.lb-table thead th {
    font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
    color: var(--text-dim); text-transform: uppercase; text-align: left; padding: 12px 16px;
    border-bottom: 1px solid var(--surface-border); background: rgba(0, 113, 197, 0.03); position: sticky; top: 0;
}
.lb-table tbody td { padding: 10px 16px; border-bottom: 1px solid rgba(22, 32, 51, 0.6); color: var(--text); font-family: var(--mono); font-size: 11px; }
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover { background: rgba(0, 113, 197, 0.03); }

.lb-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; font-weight: 700; font-size: 11px; }
.lb-rank-1 { background: var(--accent-glow); color: var(--accent-light); }
.lb-rank-2 { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.lb-rank-3 { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.lb-wallet-addr { cursor: pointer; transition: color 0.2s; }
.lb-wallet-addr:hover { color: var(--accent-light); }
.lb-tier-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--accent-glow); color: var(--accent-light); }

.lb-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.lb-page-btn { padding: 7px 16px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 6px; color: var(--text); font-family: var(--mono); font-size: 11px; cursor: pointer; transition: border-color 0.2s; }
.lb-page-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.lb-page-btn:disabled { opacity: 0.3; cursor: default; }
.lb-page-info { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.lb-refresh { text-align: center; margin-top: 12px; }
.lb-refresh span { font-family: var(--mono); font-size: 10px; color: var(--text-dim); opacity: 0.5; }

/* ── CTA ── */
.cta-inner { text-align: center; max-width: 580px; }
.cta-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { font-size: 15px; color: var(--text-dim); margin-bottom: 32px; line-height: 1.7; }
.cta-inner .hero-actions { justify-content: center; }

/* ── FOOTER ── */
footer { padding: 56px 0 36px; border-top: 1px solid var(--surface-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text-bright); font-weight: 700; font-size: 15px; letter-spacing: -0.5px; }
.footer-logo { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 12px; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-bright); }
.footer-disclaimer { font-size: 11px; color: var(--text-dim); max-width: 560px; line-height: 1.6; opacity: 0.6; margin-top: 10px; }
.footer-copy { font-size: 11px; color: var(--text-dim); opacity: 0.4; }

/* ── WHITEPAPER ── */
.whitepaper { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 80px; }
.wp-container { max-width: 720px; }
.wp-header { margin-bottom: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--surface-border); }
.wp-header h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; color: var(--text-bright); margin: 10px 0 14px; letter-spacing: -0.5px; }
.wp-subtitle { font-size: 16px; color: var(--text-dim); line-height: 1.7; }
.wp-section { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--surface-border); }
.wp-section:last-of-type { border-bottom: none; }
.wp-section h2 { font-size: 22px; margin-bottom: 16px; }
.wp-section p { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.wp-section p:last-child { margin-bottom: 0; }
.wp-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.wp-table th, .wp-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--surface-border); }
.wp-table th { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; background: var(--surface); }
.wp-table td { color: var(--text); }
.wp-footer { padding-top: 36px; border-top: 1px solid var(--surface-border); margin-top: 36px; }
.wp-footer p { font-size: 11px; color: var(--text-dim); opacity: 0.6; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; padding: 48px 24px; }
    .hero-sub { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-ca { margin: 20px auto 0; }
    .about-grid { grid-template-columns: 1fr; }
    .flip-card { height: auto; }
    .flip-inner { transform: none !important; }
    .flip-front { position: relative; }
    .flip-back { position: relative; transform: none; margin-top: -1px; border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
    .flip-front { border-radius: var(--radius) var(--radius) 0 0; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .intel-split { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .lb-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--bg); padding: 32px 24px; gap: 18px; z-index: 999; }
    .nav-links.open a { font-size: 16px; color: var(--text); }
    .nav-cta.open { display: inline-flex; position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 999; justify-content: center; padding: 12px; border-radius: 10px; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 72px 0; }
}
