/* TradePilot · Product-first dark system
   Structure and typography follow OpenVlab (openvlab.cn): compact 56px nav,
   Geist, product UI as the hero, 1px rules, precise small labels.
   Palette: near-black / graphite, white primary, restrained teal accent. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --bg-2: #0b0c0d;
  --panel: #0e0f11;
  --panel-2: #131416;
  --ink: #f4f4f5;
  --text: #d4d4d8;
  --text-2: #a1a1aa;
  --mut: #71717a;
  --line: #1f2124;
  --line-2: #2d3035;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-soft: rgba(45, 212, 191, .07);
  --dark: #0b0c0d;
  --cream: #f4f4f5;
  --sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(45, 212, 191, .055), transparent 65%),
    #08090a;
  color: var(--text);
  font: 14px/1.65 var(--sans);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(45, 212, 191, .18); }
.container { width: min(1200px, calc(100% - 48px)); }

/* ---------- nav ---------- */
.site-nav {
  height: 56px;
  gap: 26px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(8, 9, 10, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand { font: 600 13px/1 var(--mono); letter-spacing: 2.4px; color: var(--ink); gap: 9px; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { gap: 0; margin-left: 2px; }
.nav-links a { color: #a1a1aa; font-size: 13px; padding: 7px 11px; border-radius: 5px; }
.nav-links a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-links a.on { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-cta { gap: 6px; }

/* ---------- buttons ---------- */
.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 5px; }
.btn-primary { background: #f4f4f5; border: 1px solid #f4f4f5; color: #0a0a0a; box-shadow: none; }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: #e4e4e7; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .26); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding: 128px 0 0;
  background: transparent;
}
.hero::before { display: none; }
.hero::after { display: none; }
.hero .container { text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: #a1a1aa;
  font: 10px/1 var(--mono);
  letter-spacing: .14em;
  box-shadow: none;
}
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: none; }
.hero h1 {
  max-width: 900px;
  margin: 24px 0 18px;
  font-family: var(--sans);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: #fafafa;
}
.hero h1 .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fafafa; }
.hero-sub { max-width: 620px; color: #a1a1aa; font-size: 15px; line-height: 1.75; margin: 0; }
.hero-actions { justify-content: flex-start; gap: 8px; margin-top: 26px; }
.hero-meta { justify-content: flex-start; gap: 22px; margin-top: 26px; color: #71717a; font-size: 11px; }
.hero-meta span::before { display: none; }

.shot-wrap { margin: 52px auto 0; max-width: 1200px; }
.shot {
  padding: 5px;
  border: 1px solid #2a2d31;
  border-radius: 10px;
  background: #0b0c0d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
}
.shot img { border-radius: 6px; }
.shot::after { display: none; }
.shot-tag {
  background: rgba(11, 12, 13, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  color: #a1a1aa;
  font-size: 10px;
  box-shadow: none;
}
.shot-tag b { color: #fafafa; font-weight: 500; }
.shot-tag .d { background: var(--accent); box-shadow: none; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 760px; margin: 0 0 40px; text-align: left; }
.section-eyebrow { color: #71717a; font: 10px/1 var(--mono); letter-spacing: .18em; }
.section-head h2 {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #fafafa;
}
.section-head p { margin: 12px 0 0; max-width: 620px; color: #a1a1aa; font-size: 14px; line-height: 1.75; }

/* ---------- features ---------- */
.features { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.card {
  padding: 26px 28px 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: none;
}
.card:nth-child(3n+2) { padding-left: 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.card:nth-child(3n) { padding-left: 28px; }
.card:hover { transform: none; border-color: var(--line); background: transparent; }
.card::before { display: none; }
.card-ico {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .02);
  color: #d4d4d8;
}
.card h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #f4f4f5; }
.card p { margin: 0; color: #a1a1aa; font-size: 13px; line-height: 1.7; }

/* ---------- pricing ---------- */
#pricing .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: start;
}
#pricing .section-head { margin: 0; position: sticky; top: 96px; }
#pricing .pricing-wrap { min-width: 0; }
#pricing .price-card { max-width: none; margin: 0; }
.price-card {
  padding: 30px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0e0f11;
  box-shadow: none;
}
.price-badge {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: #a1a1aa;
  font: 9.5px/1 var(--mono);
  letter-spacing: .1em;
  box-shadow: none;
}
.price-name { font-size: 14px; font-weight: 600; color: #f4f4f5; }
.price-name small { color: var(--mut); }
.price-num b { font-family: var(--sans); font-weight: 500; font-size: 52px; letter-spacing: -.045em; color: #fafafa; }
.price-num span, .price-cny { color: var(--mut); }
.price-list li { color: #d4d4d8; font-size: 13px; }
.price-list svg { color: var(--accent); }
.price-note { color: var(--mut); }

/* ---------- instrument strip ---------- */
.strip {
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.strip div { padding: 20px 22px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; color: #fafafa; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .03em; }
.strip span { color: var(--mut); font-size: 11.5px; }

/* ---------- faq ---------- */
.faq { max-width: 100%; gap: 0; border-top: 1px solid var(--line); }
.faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; }
.faq details[open] { border-color: var(--line); }
.faq summary { padding: 18px 0; font-size: 13.5px; color: #f4f4f5; }
.faq summary::after { color: #71717a; }
.faq p { margin: 0 0 18px; padding-right: 42px; color: #a1a1aa; font-size: 13px; line-height: 1.75; }

/* ---------- AI band ---------- */
.ai-band {
  padding: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0e0f11;
  color: var(--text);
  gap: 40px;
}
.ai-band::before { display: none; }
.ai-band .section-eyebrow { color: #71717a; }
.ai-band h2 { margin: 10px 0 12px; font-family: var(--sans); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; color: #fafafa; }
.ai-band p { color: #a1a1aa; font-size: 13px; line-height: 1.75; }
.ai-band .ai-chips span { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #a1a1aa; border-radius: 4px; padding: 4px 8px; font-size: 10px; }
.ai-band .btn-primary { background: #f4f4f5; border-color: #f4f4f5; color: #0a0a0a; }
.ai-band .btn-ghost { border-color: rgba(255, 255, 255, .16); color: #e4e4e7; background: transparent; }
.ai-band-demo { border: 1px solid #26282c; border-radius: 8px; background: #0b0c0d; box-shadow: none; }
.abd-head { border-bottom-color: #26282c; color: #a1a1aa; }
.abd-msg { border-radius: 5px; }
.abd-msg.ai { background: #15171a; border: 1px solid #26282c; }

/* ---------- CTA ---------- */
.cta-band {
  padding: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0e0f11;
  box-shadow: none;
  color: var(--cream);
}
.cta-band::after { display: none; }
.cta-band h2 { font-family: var(--sans); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.035em; color: #fafafa; }
.cta-band p { color: #a1a1aa; }
.cta-band .btn-primary { background: #f4f4f5; border-color: #f4f4f5; color: #0a0a0a; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .16); color: #e4e4e7; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; padding: 48px 0 26px; border-top: 1px solid var(--line); background: #08090a; color: var(--text); }
.footer-brand p { color: var(--mut); }
.footer-col h4 { color: #71717a; font: 10px/1 var(--mono); letter-spacing: .14em; }
.footer-col a { color: #a1a1aa; font-size: 12px; }
.footer-col a:hover { color: #fafafa; }
.footer-bottom { border-top: 1px solid var(--line); color: #71717a; }
.footer-bottom .risk { color: #71717a; }
.site-footer .brand { color: #fafafa; }

/* ---------- forms / auth ---------- */
.input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: #0b0c0d;
  color: #f4f4f5;
  font-size: 13px;
  box-shadow: none;
}
.input:focus { border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.input::placeholder { color: #71717a; }
.field label { color: #a1a1aa; font-size: 11.5px; }
.auth { min-height: 100vh; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-side {
  padding: 48px max(40px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    #0b0c0d;
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.auth-side::after { display: none; }
.auth-side .brand { color: #fafafa; }
.auth-copy h1 { font-family: var(--sans); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; color: #fafafa; }
.auth-copy h1 em { background: none; color: #a1a1aa; font-style: normal; }
.auth-copy p { color: #a1a1aa; }
.auth-points li { color: #d4d4d8; }
.auth-points svg { color: var(--accent); }
.auth-mini div { color: #71717a; }
.auth-mini b { color: #fafafa; }
.auth-main { padding: 48px 24px; background: var(--bg); }
.auth-card {
  width: min(400px, 100%);
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0e0f11;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.auth-card > .brand { justify-content: center; margin-bottom: 26px; color: #fafafa; }
.auth-title { font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: -.035em; color: #fafafa; }
.auth-sub { color: var(--mut); }
.tabs { padding: 3px; border: 1px solid var(--line-2); border-radius: 6px; background: #0b0c0d; }
.tabs button { border-radius: 4px; color: #a1a1aa; font-size: 12px; padding: 7px; }
.tabs button.active { background: #1b1d20; color: #fafafa; box-shadow: none; }
.pw-toggle { color: #71717a; }
.auth-foot { color: #71717a; }
.auth-foot a { color: #a1a1aa; }

/* ---------- legal ---------- */
.legal { padding: 128px 0 72px; }
.legal h1 { font-family: var(--sans); font-size: 38px; font-weight: 500; letter-spacing: -.04em; color: #fafafa; }
.legal .upd { color: var(--mut); }
.legal h2 { font-size: 13.5px; color: #f4f4f5; }
.legal p, .legal li { color: #a1a1aa; font-size: 13px; line-height: 1.85; }
.legal a { color: var(--accent); }

/* ---------- buy / panels ---------- */
.buy-page { padding: 120px 0 72px; }
.buy-head { margin-bottom: 36px; }
.buy-head h1 { font-family: var(--sans); font-size: clamp(32px, 3.8vw, 44px); font-weight: 500; letter-spacing: -.04em; color: #fafafa; }
.buy-head p { color: #a1a1aa; }
.panel { border: 1px solid var(--line-2); border-radius: 10px; background: #0e0f11; box-shadow: none; }
.panel h2 { font-size: 13.5px; font-weight: 600; color: #f4f4f5; }
.panel .sub { color: var(--mut); }
.buy-plan { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-plan .name { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: #fafafa; }
.buy-price b { font-family: var(--sans); font-weight: 500; font-size: 36px; color: #fafafa; }
.demo-tip { background: #0b0c0d; border: 1px solid var(--line-2); color: #a1a1aa; border-radius: 6px; }
.total b { color: #fafafa; }
.buy-note { color: var(--mut); }

/* ---------- AI page ---------- */
.ai-page { padding: 120px 0 48px; }
.ai-hero h1 { font-family: var(--sans); font-size: clamp(36px, 4.4vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; color: #fafafa; }
.ai-hero h1 .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fafafa; }
.ai-hero p { color: #a1a1aa; }
.ai-page .ai-chips span { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #a1a1aa; border-radius: 4px; padding: 4px 8px; font-size: 10px; }
.ai-config h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: #fafafa; }
.prov { border: 1px solid var(--line-2); border-radius: 6px; background: #0b0c0d; }
.prov:hover { border-color: #3f4247; }
.prov b { color: #f4f4f5; }
.prov span { color: var(--mut); }
.prov.on { border-color: rgba(45, 212, 191, .55); background: rgba(45, 212, 191, .05); }
.prov.on span { color: var(--accent); }
.ai-auto { border: 1px dashed var(--line-2); border-radius: 5px; color: #a1a1aa; background: rgba(255, 255, 255, .02); }
.ai-auto b { color: var(--accent); }
.ai-netwarn { background: rgba(245, 158, 11, .06); border-color: rgba(245, 158, 11, .2); color: #d6b06a; }
.ai-status { color: var(--mut); }
.ai-status.ok { color: var(--accent); }
.ai-status.err { color: #f87171; }
.ai-priv { color: var(--mut); border-top-color: var(--line); }
.ai-priv b { color: #a1a1aa; }
.ai-chat { background: #0b0c0d; border-color: #1f2124; border-radius: 10px; color: #fafafa; }
.chat-head { border-bottom-color: #26282c; }
.chat-model { color: #d4d4d8; }
.chat-model b { color: #fafafa; }
.chat-model .dot.on { background: var(--accent); box-shadow: none; }
.ai-chat .ctx-chip { background: #15171a; border-color: #26282c; color: #a1a1aa; }
.chat-msgs { background: #09090b; }
.msg .role { color: #71717a; }
.chat-welcome { color: #a1a1aa; }
.chat-welcome h3 { color: #fafafa; font-family: var(--sans); font-weight: 500; }
.chat-prompts button { border: 1px solid #26282c; background: #15171a; color: #a1a1aa; border-radius: 4px; }
.chat-prompts button:hover { border-color: #3f4247; color: #fafafa; }
.chat-compose textarea { background: #15171a; border-color: #26282c; color: #fafafa; }
.chat-compose textarea:focus { border-color: #3f4247; box-shadow: 0 0 0 3px rgba(45, 212, 191, .08); }
.chat-foot { color: #71717a; }
.chat-compose .btn { background: #fafafa; border-color: #fafafa; color: #0a0a0a; }

/* ---------- admin ---------- */
.admin-card, .stat { background: #0e0f11 !important; border-color: var(--line-2) !important; border-radius: 8px !important; }
.admin-card h3 { color: #f4f4f5; }
.stat b { color: #fafafa; }
.stat span { color: var(--mut); }
th { color: #71717a; }
td { color: #a1a1aa; border-bottom-color: var(--line); }
td code { color: var(--accent); }
.admin-wrap { background: var(--bg); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 112px; }
  .features { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n+2), .card:nth-child(3n) { padding-left: 0; border-left: 0; border-right: 0; }
  .card:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .ai-band { grid-template-columns: 1fr; padding: 28px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .ai-page, .buy-page { padding-top: 100px; }
  #pricing .container { grid-template-columns: 1fr; gap: 0; }
  #pricing .section-head { position: static; margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .site-nav { height: 52px; gap: 10px; }
  .nav-links { display: none; }
  .hero { padding-top: 92px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .card, .card:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2n) { border-right: 0; }
  .price-card, .ai-band, .cta-band { padding: 22px; }
  .auth-card { padding: 24px; }
  .site-footer { padding-top: 40px; }
}
