/* 龙象投资 — Swiss-minimal financial design system */

:root {
  /* Deep navy "financial terminal" base */
  --bg:        #0d1a30;        /* deep navy */
  --bg-alt:    #112441;        /* one stop lighter */
  --bg-card:   #15294a;        /* card surface */
  --ink:       #f3f5fa;        /* near white text */
  --ink-soft:  #c8d2e3;
  --ink-mute:  #8b97ad;
  --ink-faint: #5b6a85;
  --line:      rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent:        #6da3f5;    /* bright corporate blue on dark */
  --accent-deep:   #1959c3;
  --accent-soft:   #aac7fa;
  --gold:          #c9a45a;    /* restrained gold for KPI accents */

  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --sans:  'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --en-display: 'Tenor Sans', 'Inter', sans-serif;
  --en-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --en-sans: 'Inter', system-ui, sans-serif;

  --container: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ── Type ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--en-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}

.section-sub {
  font-family: var(--en-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}

.num-label {
  font-family: var(--en-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  position: relative;
  padding: 140px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}

.section-head .eyebrow-col { padding-top: 8px; }
.section-head .sub-col { padding-top: 14px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 14px 28px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
}
.btn-arrow::after {
  content:''; position:absolute; right:-1px; top:-3px;
  width:7px; height:7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── Decorative ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.tick-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.tick-row span {
  width: 1px; height: 8px; background: var(--ink-faint);
}
.tick-row span.tall { height: 14px; background: var(--ink); }

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(11, 26, 51, 0.06);
}

/* ── Nav ─────────────────────────────────────── */
.nav-link {
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after,
.nav-link:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
}

/* ── Anim ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(.2,.7,.2,1) both; }

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* ── Variants ─────────────────────────────────────── */
body[data-variant="navy"] {
  --bg: #0b1a33;
  --bg-alt: #11243f;
  --bg-card: #11243f;
  --ink: #f5f3ee;
  --ink-soft: #d2d8e2;
  --ink-mute: #95a0b3;
  --ink-faint: #5e6b80;
  --line: rgba(245, 243, 238, 0.10);
  --line-strong: rgba(245, 243, 238, 0.22);
  --accent: #6da3f5;
}

body[data-variant="mono"] {
  --accent: #0b1a33;
  --gold: #0b1a33;
}

body[data-variant="warm"] {
  --bg: #f0ebe1;
  --bg-alt: #e6dfd0;
  --bg-card: #faf6ee;
  --ink: #2a2418;
  --ink-soft: #4a4232;
  --ink-mute: #7a6f5c;
  --ink-faint: #a89d88;
  --line: rgba(42, 36, 24, 0.10);
  --line-strong: rgba(42, 36, 24, 0.22);
  --accent: #b48b3a;
  --gold: #b48b3a;
}

body[data-variant="paper"] {
  --bg: #f5f1e8;
  --bg-alt: #ece6d6;
  --bg-card: #fbf8f0;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-mute: #6b6b6b;
  --ink-faint: #a8a39a;
  --line: rgba(20, 20, 20, 0.10);
  --line-strong: rgba(20, 20, 20, 0.22);
  --accent: #8c1d18;
  --gold: #8c1d18;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Mobile nav ─────────────────────────────────────── */
.nav-burger { display: none; }
.nav-mobile-overlay { display: none; }

/* ── Responsive: mobile + tablet (< 1024) ─────────────────────────────────────── */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0 !important; }
  body[data-density="executive"] section { padding: 64px 0 !important; }
  body[data-density="expansive"] section { padding: 100px 0 !important; }

  .section-head {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 32px !important;
  }
  .section-head .eyebrow-col { padding-top: 0; }
  .section-head .sub-col { padding-top: 4px; }
  .section-title,
  .section-title > span {
    font-size: 26px !important;
    line-height: 1.2 !important;
    width: auto !important;
    white-space: normal !important;
  }
  body[data-density="executive"] .section-title { font-size: 26px !important; }
  body[data-density="expansive"] .section-title { font-size: 30px !important; }
  .section-sub { font-size: 14px !important; line-height: 1.6 !important; }

  /* Nav: hide desktop links, show burger */
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-bar { padding: 12px 0 !important; }

  /* Mobile menu overlay */
  .nav-mobile-overlay {
    display: flex !important;
    position: fixed; inset: 0;
    z-index: 99;
    background: var(--bg);
    flex-direction: column;
    padding: 80px 28px 32px;
    gap: 20px;
    opacity: 0; pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s;
  }
  .nav-mobile-overlay.is-open {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
  }
  .nav-mobile-overlay .nav-mobile-link {
    font-size: 22px; font-weight: 500;
    color: var(--ink); padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .nav-mobile-overlay .nav-mobile-link.active { color: var(--accent); }
  .nav-mobile-overlay .nav-mobile-link span:last-child {
    font-family: var(--en-mono); font-size: 11px;
    color: var(--ink-mute); letter-spacing: 0.18em;
  }

  /* Hero */
  .hero-topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-top: 80px !important;
    padding-bottom: 16px !important;
  }
  .hero-topbar > div:nth-child(2) {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .hero-main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 28px 0 !important;
  }
  .hero-headline,
  .hero-headline > span {
    font-size: 28px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  .hero-paragraph { font-size: 14px !important; line-height: 1.7 !important; }
  .hero-buttons { flex-wrap: wrap !important; gap: 12px !important; }
  .hero-buttons .btn { font-size: 12px !important; padding: 12px 20px !important; }
  .hero-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 20px !important;
  }
  .hero-kpis > div {
    border-left: none !important;
    padding-left: 0 !important;
  }
  .hero-kpis > div > div:nth-of-type(2) { font-size: 26px !important; }

  .data-panel { padding: 24px 20px !important; }
  .data-panel-grid {
    grid-template-columns: 130px 1fr !important;
    gap: 16px !important;
  }
  .data-panel-grid svg { width: 130px !important; height: 130px !important; }
  .data-panel-foot {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .about-narrative-lead { font-size: 17px !important; line-height: 1.65 !important; }
  .about-pillars { grid-template-columns: 1fr !important; }
  .about-conviction { padding: 32px 24px !important; }
  .about-conviction h3 { font-size: 22px !important; line-height: 1.5 !important; }

  /* Focus */
  .focus-grid {
    grid-template-columns: 1fr !important;
  }
  .focus-grid > div {
    padding: 24px 16px 28px !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .focus-grid > div:last-child { border-bottom: none !important; }
  .focus-grid > div h3 { font-size: 20px !important; }

  /* Cases */
  .cases-logowall {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cases-logowall > div {
    border-right: none !important;
    padding: 18px 10px !important;
    min-height: 100px !important;
  }
  .cases-logowall > div:nth-child(2n+1) {
    border-right: 1px solid var(--line) !important;
  }
  .cases-logowall > div:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid var(--line) !important;
  }
  /* Stack tile + text vertically inside each cell of the wall */
  .cases-logowall .portfolio-logo {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    text-align: center;
  }
  .cases-logowall .portfolio-logo-name { font-size: 13px !important; }
  .cases-logowall .portfolio-logo-en { font-size: 8px !important; }

  /* Inside case-row on mobile, also stack so logo + name fit nicely */
  .case-row .portfolio-logo { gap: 12px !important; }
  .case-row .portfolio-logo-name { font-size: 15px !important; }

  .cases-table-head { display: none !important; }
  .case-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 22px 18px !important;
  }
  .case-row > :nth-child(1),
  .case-row > :nth-child(7) { display: none !important; }
  .case-row > :nth-child(4) { font-size: 13px !important; }
  .case-row-meta {
    display: flex !important;
    gap: 16px;
    align-items: center;
  }

  /* News */
  .news-row {
    display: grid !important;
    grid-template-columns: auto auto 1fr !important;
    grid-template-areas:
      "date cat tag"
      "title title title" !important;
    gap: 10px 12px !important;
    padding: 20px 8px !important;
  }
  .news-row > :nth-child(1) { grid-area: date; }
  .news-row > :nth-child(2) { grid-area: cat; }
  .news-row > :nth-child(3) {
    grid-area: title;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  .news-row > :nth-child(4) {
    grid-area: tag;
    text-align: right;
    font-size: 9px !important;
  }
  .news-row > :nth-child(5) { display: none !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 28px 24px !important;
    min-height: auto !important;
  }
  .contact-grid > div:last-child { border-bottom: none !important; }
  .contact-grid > div > div:nth-of-type(3) {
    font-size: 18px !important;
    margin-top: 8px !important;
  }

  .contact-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding: 24px !important;
    margin-top: 36px !important;
  }
  .contact-cta > div > div:nth-of-type(2) { font-size: 20px !important; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 40px !important;
  }
  .footer-grid > :nth-child(4) { display: block !important; }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .footer-bottom > div:nth-child(2) {
    gap: 14px !important;
    flex-wrap: wrap;
  }
}

/* Hide tweaks panel on touch devices to avoid blocking content */
@media (max-width: 768px), (pointer: coarse) {
  .twk-panel { display: none !important; }
}
