/* ==========================================================================
   AI Trading Lab — shared stylesheet
   Based on the Momentum Regime template, extended for multi-page site.
   ========================================================================== */

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

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e17;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-border: #334155;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --text-faint: #475569;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --green: #10b981;
  --green-light: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
}

html, body { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--green-light); }

img { max-width: 100%; }

/* Bilingual helper */
.zh { color: #8b949e; font-size: 0.85em; margin-top: 4px; font-weight: 400; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 30px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.3px;
  color: #f1f5f9;
}
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #0a0e17;
}
.nav-logo .mark::before { content: "AI"; }
.nav-logo .zh-small { font-size: 11px; color: var(--text-mute); margin-left: 6px; font-weight: 500; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #f1f5f9; }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid #1e293b;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; border-top: 1px solid #1e293b; }
  .nav-links a { display: block; padding: 16px 30px; }
  .nav-links a.active::after { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative; padding: 100px 40px 80px; text-align: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(59,130,246,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(16,185,129,0.10) 0%, transparent 55%);
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero .tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-light); margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.08;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span.grad {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .sub {
  font-size: 19px; color: var(--text-mute); margin-top: 18px; font-weight: 300;
  line-height: 1.55; max-width: 680px; margin-left: auto; margin-right: auto;
}
@media (max-width: 680px) {
  .hero { padding: 70px 24px 60px; }
  .hero h1 { font-size: 38px; }
  .hero .sub { font-size: 16px; }
}

/* ============ CONTAINER ============ */
.container { max-width: 1060px; margin: 0 auto; padding: 0 30px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 30px; }

/* ============ NUMBER STRIP ============ */
.numbers {
  display: flex; justify-content: center; gap: 50px; padding: 50px 0; flex-wrap: wrap;
}
.num-item { text-align: center; min-width: 120px; }
.num-item .val {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.num-item .lbl {
  font-size: 11px; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 1.5px; margin-top: 6px;
}

/* ============ SECTION ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section > .container > .zh, .section .zh-center {
  text-align: center; margin-bottom: 6px;
}
.section .sub-h {
  text-align: center; color: var(--text-mute); font-size: 15px;
  margin-bottom: 44px; max-width: 700px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* ============ PILLARS ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid #1e293b; border-radius: 16px; padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.pillar:hover { border-color: var(--blue); transform: translateY(-2px); }
.pillar .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.pillar .icon-blue { background: rgba(59,130,246,0.15); }
.pillar .icon-green { background: rgba(16,185,129,0.15); }
.pillar .icon-purple { background: rgba(139,92,246,0.15); }
.pillar .icon-amber { background: rgba(245,158,11,0.15); }
.pillar h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #f1f5f9; }
.pillar p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.pillar p + .zh { margin-top: 8px; }

/* ============ CARD GRID (2-col) ============ */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 28px;
}
.result-card h3 {
  font-size: 12px; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid #263040; font-size: 14px;
  gap: 12px;
}
.result-row:last-child { border: none; }
.result-row > span:first-child { color: var(--text-dim); }

.green { color: var(--green); }
.blue  { color: var(--blue); }
.amber { color: var(--amber); }
.red   { color: var(--red); }

/* ============ HIGHLIGHT / CALLOUT ============ */
.highlight-box {
  background: linear-gradient(160deg, rgba(59,130,246,0.08), rgba(16,185,129,0.08));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px; padding: 28px; text-align: center; margin-top: 20px;
}
.highlight-box .hb-title {
  font-size: 12px; font-weight: 600; color: var(--blue-light);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.highlight-box p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ============ SUMMARY CARDS (4-col) ============ */
.summary-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 32px;
}
@media (max-width: 820px) { .summary-cards { grid-template-columns: repeat(2, 1fr); } }
.summary-card {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid #1e293b; border-radius: 14px;
  padding: 24px; text-align: center;
}
.summary-card .sc-val {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.summary-card .sc-lbl {
  font-size: 11px; color: var(--text-mute); margin-top: 6px;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--blue), var(--green));
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--blue);
}
.tl-item:last-child::before {
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}
.tl-item h4 { font-size: 16px; font-weight: 600; color: #f1f5f9; }
.tl-item .metrics { font-size: 13px; color: var(--green); margin-top: 4px; }
.tl-item p { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.7; }

/* ============ TEAM ============ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid #1e293b; border-radius: 14px; padding: 28px;
  text-align: center; transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--blue); }
.team-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #0a0e17;
  margin: 0 auto 16px; letter-spacing: 0.5px;
}
.team-card h4 { font-size: 16px; font-weight: 600; color: #f1f5f9; }
.team-card .role {
  font-size: 11px; color: var(--blue-light);
  text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 12px;
}
.team-card p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* ============ TABLE ============ */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel); border-radius: 14px;
  overflow: hidden; border: 1px solid var(--panel-border);
}
.data-table th {
  font-size: 11px; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 1px; padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.2);
  font-weight: 600;
}
.data-table td {
  font-size: 13px; padding: 14px 16px;
  border-bottom: 1px solid #263040; color: var(--text-dim);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(59,130,246,0.04); }
.table-wrap { overflow-x: auto; margin-top: 10px; }

.empty-state {
  text-align: center; padding: 60px 30px;
  border: 1px dashed #334155; border-radius: 14px;
  background: rgba(30, 41, 59, 0.3); margin-top: 20px;
}
.empty-state .es-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.6; }
.empty-state h3 { font-size: 18px; color: #f1f5f9; margin-bottom: 6px; }
.empty-state p { color: var(--text-mute); font-size: 14px; line-height: 1.7; }

/* ============ CONTACT BUTTONS ============ */
.contact-buttons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0;
}
@media (max-width: 760px) { .contact-buttons { grid-template-columns: 1fr; } }
.contact-btn {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid #1e293b; border-radius: 16px;
  padding: 32px 24px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  color: var(--text); display: block;
}
.contact-btn:hover {
  border-color: var(--blue); transform: translateY(-3px); color: var(--text);
}
.contact-btn .c-icon { font-size: 38px; margin-bottom: 14px; display: block; }
.contact-btn .c-name {
  font-size: 16px; font-weight: 600; color: #f1f5f9; margin-bottom: 4px;
}
.contact-btn .c-handle {
  font-size: 13px; color: var(--blue-light); font-family: 'SF Mono', Menlo, monospace;
  word-break: break-all;
}

/* ============ FORM ============ */
.form-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 32px; margin-top: 30px;
}
.form-card h3 { font-size: 18px; color: #f1f5f9; margin-bottom: 6px; }
.form-row { display: flex; gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .form-row { flex-direction: column; } }
.form-row input {
  flex: 1; padding: 14px 16px;
  background: #0a0e17; border: 1px solid var(--panel-border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  font-family: inherit;
}
.form-row input:focus { outline: none; border-color: var(--blue); }
.btn {
  display: inline-block; padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #0a0e17; font-weight: 700; font-size: 14px;
  border-radius: 10px; border: 0; cursor: pointer;
  letter-spacing: 0.3px; transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59,130,246,0.3); color: #0a0e17; }

/* ============ DISCLAIMER / LEGAL ============ */
.legal h3 {
  font-size: 18px; color: #f1f5f9; margin: 30px 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid #1e293b;
}
.legal h3:first-child { margin-top: 0; }
.legal p {
  color: var(--text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 12px;
}
.legal .zh { color: #6b7687; font-size: 13px; }
.legal ul { padding-left: 22px; margin: 10px 0 14px; color: var(--text-dim); font-size: 14px; }
.legal ul li { margin-bottom: 6px; }

/* ============ BADGES ============ */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.badge-on { background: rgba(16,185,129,0.15); color: var(--green-light); }
.badge-off { background: rgba(100,116,139,0.15); color: var(--text-mute); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue-light); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }

/* ============ CTA SECTION ============ */
.cta { text-align: center; padding: 70px 30px; }
.cta h2 { font-size: 30px; font-weight: 700; }
.cta p {
  color: var(--text-mute); margin-top: 12px; font-size: 15px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.cta .btn { margin-top: 28px; }

/* ============ FOOTER ============ */
.footer {
  text-align: center; padding: 40px 30px 30px;
  color: var(--text-faint); font-size: 11px;
  border-top: 1px solid #1e293b; line-height: 1.9;
}
.footer a { color: var(--text-mute); }
.footer a:hover { color: var(--blue-light); }
.footer .brand { color: var(--text-dim); font-weight: 600; letter-spacing: 0.3px; margin-bottom: 8px; display: block; }
