/* ============================================================
   GenLeap Capital — Site Stylesheet
   Colors are defined once below; change them here to re-theme.
   ============================================================ */

:root {
  --blue: #2f7cf6;
  --indigo: #3f3fd8;
  --purple: #7c4dff;
  --gradient: linear-gradient(120deg, #2f9df6 0%, #2f7cf6 30%, #3f3fd8 70%, #7c4dff 100%);
  --gradient-muted: linear-gradient(120deg, #4a5f8f 0%, #4d4894 55%, #6a56a0 100%);
  --ink: #14161f;
  --ink-soft: #4c5266;
  --ink-faint: #8a90a3;
  --bg: #ffffff;
  --bg-tint: #f6f8fd;
  --line: #e7eaf3;
  --shadow: 0 12px 40px rgba(46, 58, 130, 0.10);
  --radius: 18px;
  --maxw: 1160px;
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

html[lang="zh"] body,
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  font-family: "Noto Sans SC", var(--font-body);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}

.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 18px; }
.section-title-lg { font-size: clamp(36px, 5vw, 56px); }
.section-lead  { font-size: 18px; color: var(--ink-soft); max-width: 720px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img { height: 54px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--indigo); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(63, 63, 216, 0.35); }
.nav-cta.active::after { display: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}
.lang-switch a { color: var(--ink-faint); transition: color 0.2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--indigo); }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff url("../assets/hero-bg.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.15) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero-inner { max-width: 680px; padding: 90px 0; }

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 26px;
}

.hero p {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 28px rgba(63, 63, 216, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(63, 63, 216, 0.4); }

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
  margin-left: 14px;
  background: rgba(255,255,255,0.7);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.tint { background: var(--bg-tint); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

.stats.stats-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
  margin: 0 auto;
}
.stats.stats-3 .stat {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}
.stats.stats-3 .stat:last-child { border-right: none; }
.stats.stats-3 .stat h3 { font-size: clamp(22px, 2.4vw, 28px); }
.stats.stats-3 .stat p { font-size: 14px; }

@media (max-width: 680px) {
  .stats.stats-3 {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .stats.stats-3 .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .stats.stats-3 .stat:last-child { border-bottom: none; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.card-icon img { width: 40px; height: 40px; object-fit: contain; }

.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Two-column intro ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Approach pillars (numbered) ---------- */
.pillars { display: grid; gap: 22px; }

.pillar {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.pillar-num {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-num img {
  height: 92px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(63, 63, 216, 0.25));
}

.pillar h3 { font-size: 22px; margin-bottom: 6px; }
.pillar-sub { font-weight: 700; color: var(--indigo); font-size: 15px; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .team-grid.two { grid-template-columns: 1fr; max-width: 480px; }
}

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.member-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(47,124,246,0.10), rgba(124,77,255,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-initials {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.member-info { padding: 26px 28px 30px; }
.member-info h3 { font-size: 20px; }
.member-role { color: var(--indigo); font-weight: 600; font-size: 14px; margin: 4px 0 12px; }
.member-bio { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Opinions ---------- */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.opinion-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.opinion-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.opinion-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(63, 63, 216, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.opinion-card h3 { font-size: 20px; margin-bottom: 12px; }
.opinion-card .excerpt { color: var(--ink-soft); font-size: 15px; flex: 1; }

.opinion-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.read-link { color: var(--indigo); font-weight: 700; }

/* ---------- Article view ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 14px 0 18px; }
.article-meta { color: var(--ink-faint); font-size: 14.5px; }

.article-body p { margin-bottom: 22px; color: #2b2f3d; font-size: 17px; }
.article-body h2 { font-size: 26px; margin: 38px 0 16px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 30px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-item { margin-bottom: 30px; }
.contact-item h3 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 8px;
}
.contact-item p, .contact-item a { color: var(--ink-soft); font-size: 17px; }
.contact-item a:hover { color: var(--indigo); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-tint);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(63, 63, 216, 0.12);
  background: #fff;
}

.contact-form button { border: none; cursor: pointer; margin-top: 26px; width: 100%; }

.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; text-align: center; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(124, 77, 255, 0.10), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(47, 124, 246, 0.08), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 700px; }

.page-hero-img {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-hero-img img {
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: 90px 0;
  background: var(--gradient-muted);
  color: #fff;
  overflow: hidden;
}

.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-band p { opacity: 0.9; max-width: 560px; margin: 0 auto 34px; }

.cta-band .btn {
  background: #fff;
  color: #4d4894;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1224;
  color: #aeb3c7;
  padding: 64px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 48px;
}

.footer-brand img { height: 42px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul li { margin-bottom: 10px; }
.site-footer a { font-size: 14.5px; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  font-size: 13px;
  color: #7c8199;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .team-grid, .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  section { padding: 70px 0; }
  .card-grid, .team-grid, .opinion-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; align-items: flex-start; }
  .pillar-num img { height: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; width: 100%; text-align: center; }
  .nav-links a.active::after { display: none; }
  .nav-cta { width: auto !important; margin: 12px 0; }
}
