/* ============================================
   马一喵 · 跨境投资与财富顾问
   暖奶白 · Light + Deep Gold
   ============================================ */

/* --------- Local Fonts --------- */
@font-face {
  font-family: "AlibabaPuHuiTi3";
  src: url('../fonts/alibaba/AlibabaPuHuiTi-3-45-Light.woff2') format('woff2'),
       url('../fonts/alibaba/AlibabaPuHuiTi-3-45-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AlibabaPuHuiTi3";
  src: url('../fonts/alibaba/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
       url('../fonts/alibaba/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AlibabaPuHuiTi3";
  src: url('../fonts/alibaba/AlibabaPuHuiTi-3-65-Medium.woff2') format('woff2'),
       url('../fonts/alibaba/AlibabaPuHuiTi-3-65-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #FAFAF9;
  --bg-elevated: #F2EFE8;
  --bg-card: #ffffff;
  --bg-card-hover: #FDFBF8;
  --border: #E6E1D8;
  --border-gold: rgba(232, 126, 40, 0.25);

  --gold: #E87E28;
  --gold-soft: #CC6018;
  --gold-dim: #F09848;
  --gold-glow: rgba(232, 126, 40, 0.09);

  --text: #0C0A09;
  --text-soft: #3A3632;
  --text-dim: #6A6460;
  --text-faint: #9A9490;

  --warn: #b84a2a;

  --radius: 14px;
  --radius-lg: 20px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans:    "AlibabaPuHuiTi3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --------- Reset --------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --------- Ambient Background --------- */
body > * { position: relative; z-index: 1; }

/* --------- Navigation --------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.nav-brand-mark {
  color: var(--gold);
  font-weight: 600;
  font-size: 24px;
}
.nav-brand-name {
  color: var(--text);
  font-family: var(--font-sans);
}
.nav-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  transition: border-color var(--transition), transform var(--transition);
  display: block;
}
.nav-brand:hover .nav-brand-logo {
  border-color: var(--gold);
  transform: scale(1.05);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-soft);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--gold); }
.lang-toggle {
  color: var(--text-soft);
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

@media (max-width: 640px) {
  .nav-inner { padding: 14px 20px; }
  .nav-right { gap: 16px; }
  .nav-link { font-size: 13px; }
  .nav-link:not(:last-of-type) { display: none; }
}

/* --------- Hero (stays dark for visual impact) --------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  background: #111009;
  color: #f0f0f0;
}
.hero-inner {
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 60px rgba(232, 126, 40, 0.18);
  position: relative;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold-soft));
  z-index: -1;
  opacity: 0.4;
}
.hero-name {
  font-family: var(--font-sans);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f5f0ea 20%, #F09848 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-lang="en"] .hero-name {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.hero-title {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0;
  font-weight: 400;
}
[data-lang="en"] .hero-title {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 22px;
}
.hero-bar {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 18px;
  border-radius: 2px;
}
.hero-subtitle {
  font-family: var(--font-sans);
  color: rgba(200, 190, 178, 0.85);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-size: 17px;
  color: #d8d4cc;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 44px;
}
[data-lang="en"] .hero-tagline {
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 20px;
  background: var(--gold);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -20px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

@media (max-width: 640px) {
  .hero-avatar { width: 96px; height: 96px; }
  .hero-name { font-size: 36px; }
  .hero-title { font-size: 13px; letter-spacing: 0.1em; }
  .hero-subtitle { font-size: 12px; }
  .hero-tagline { font-size: 15px; margin-bottom: 36px; }
  .hero-bar { margin: 16px auto 14px; }
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 100px;
  transition: all var(--transition);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #ffffff;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(232, 126, 40, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border-gold);
}
.btn-ghost:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* Hero 内的 ghost button 用亮色 */
.hero .btn-ghost {
  color: #E87E28;
  border-color: rgba(232, 126, 40, 0.4);
}
.hero .btn-ghost:hover {
  background: rgba(232, 126, 40, 0.12);
  border-color: #E87E28;
}

/* --------- Sections --------- */
.section {
  padding: 120px 32px;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 10%, var(--bg-elevated) 90%, transparent);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-num {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 300;
  color: var(--gold);
  line-height: 0.85;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-num::before {
  content: '';
  display: block;
  width: 3px;
  height: 36px;
  background: var(--gold);
  margin-bottom: 16px;
  border-radius: 2px;
  opacity: 0.6;
}
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}
[data-lang="en"] .section-title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 44px;
}
.section-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 560px;
  margin: 0 auto;
}
[data-lang="en"] .section-sub {
  font-family: var(--font-sans);
  font-size: 17px;
}

@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 14px; }
}

/* --------- Grid --------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --------- Product Card --------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 2px 0 var(--gold-dim);
}
.card:hover::before {
  opacity: 1;
}
.card-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.card-emoji {
  font-size: 32px;
  margin-bottom: 20px;
  filter: saturate(0.85);
}
.card-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
[data-lang="en"] .card-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
}
.card-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.card-hook {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 24px;
  min-height: 54px;
}
[data-lang="en"] .card-hook {
  font-family: var(--font-sans);
  font-size: 15px;
}
.card-bullets {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.card-bullets li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px 0 8px 22px;
  position: relative;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.card-meta {
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px 0;
  margin-bottom: 16px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  letter-spacing: 0.04em;
}
.card-meta.warn {
  color: var(--warn);
}
.card-action {
  margin-top: auto;
  padding-top: 16px;
}
.card-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  background: var(--gold);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background var(--transition), transform var(--transition);
}
.card:hover .card-btn {
  background: var(--gold-soft);
}

/* --------- Institutions --------- */
.institutions {
  padding: 120px 32px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.institutions-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 72px 0 56px;
  text-align: left;
}
@media (max-width: 640px) {
  .institutions-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Credentials strip */
.inst-credentials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.inst-cred-item {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
}
.inst-cred-num {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.inst-cred-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.inst-cred-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .inst-credentials { max-width: 100%; }
  .inst-cred-num { font-size: 20px; }
  .inst-cred-label { font-size: 11px; }
}

.inst-item {
  padding: 28px 28px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-gold);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.inst-item:hover {
  border-left-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.inst-num {
  font-family: var(--font-sans);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.inst-item h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
[data-lang="en"] .inst-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
}
.inst-item p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.75;
}
.institutions-cta p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

/* --------- Contact --------- */
.contact {
  padding: 120px 32px 80px;
  text-align: center;
  position: relative;
}
.contact-title {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.04em;
}
[data-lang="en"] .contact-title {
  font-family: var(--font-display);
  font-size: 48px;
}
.contact-sub {
  font-family: var(--font-sans);
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 56px;
  letter-spacing: 0.02em;
}
[data-lang="en"] .contact-sub {
  font-family: var(--font-sans);
  font-size: 17px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 340px));
  gap: 24px;
  justify-content: center;
  margin-bottom: 40px;
}
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto 32px; }
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  color: var(--gold);
}
.contact-icon svg {
  width: 100%;
  height: 100%;
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.contact-copy {
  font-size: 12px;
  color: var(--gold);
  padding: 8px 20px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  letter-spacing: 0.1em;
  transition: all var(--transition);
}
.contact-copy:hover {
  background: var(--gold);
  color: #0a0a0a;
}
.contact-copy.copied {
  background: var(--gold);
  color: #0a0a0a;
}
.contact-hint {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* --------- Footer --------- */
.footer {
  padding: 60px 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0f0e0b;
}
.footer-disclaimer {
  font-size: 12px;
  color: #555248;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  letter-spacing: 0.02em;
}
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #555248;
  letter-spacing: 0.08em;
}
.footer-dot { margin: 0 12px; color: #CC6018; }

/* --------- Modal --------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal.active {
  display: flex;
  animation: modalFade 0.3s ease-out;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 48px 44px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--bg);
  color: var(--gold);
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 640px) {
  .modal-dialog { padding: 40px 24px; }
}

/* Modal body */
.modal-head { margin-bottom: 28px; }
.modal-emoji { font-size: 40px; margin-bottom: 16px; }
.modal-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
[data-lang="en"] .modal-title {
  font-family: var(--font-display);
  font-size: 32px;
}
.modal-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.modal-hook {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  line-height: 1.8;
  padding: 18px 22px;
  margin-bottom: 24px;
  background: var(--gold-glow);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  letter-spacing: 0.03em;
}
.modal-section { margin-bottom: 24px; }
.modal-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal-section-content {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.modal-section-content p { margin: 0 0 14px; }
.modal-section-content p:last-child { margin-bottom: 0; }
.modal-section-content strong {
  color: var(--gold-soft);
  font-weight: 500;
}
.modal-bullets { list-style: none; }
.modal-bullets li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}
.modal-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.modal-meta-item {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.modal-meta-item:nth-child(2n) { border-right: none; }
.modal-meta-item:nth-last-child(-n+2) { border-bottom: none; }
.modal-meta-item .modal-meta-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.modal-meta-item .modal-meta-value {
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.modal-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.modal-cta-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
  letter-spacing: 0.02em;
}
.modal-disclaimer {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  font-size: 12px;
  color: var(--warn);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* --------- Reveal animation --------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------- Selection --------- */
::selection {
  background: var(--gold);
  color: #0a0a0a;
}


/* --------- Card Icons (SVG line icons) --------- */
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--gold);
}
.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--gold);
}
.modal-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------- Broker Logos --------- */
.card-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 20px;
}
.card-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.modal-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.modal-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* --------- Scrollbar --------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* --------- Product Detail Page --------- */
#product-view {
  min-height: 100vh;
  padding: 120px 32px 100px;
  background: var(--bg);
}
.product-view-inner {
  max-width: 800px;
  margin: 0 auto;
}
.product-view-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 56px;
  transition: color var(--transition);
  cursor: pointer;
}
.product-view-back:hover { color: var(--gold); }

.product-view-head {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.product-view-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.product-view-logo img { height: 48px; width: auto; display: block; }
.product-view-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  color: var(--gold);
}
.product-view-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.product-view-title {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.2;
}
[data-lang="en"] .product-view-title {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.02em;
}
.product-view-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gold-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.product-view-hook {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.75;
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--gold-glow);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  letter-spacing: 0.02em;
}
.product-view-section { margin-bottom: 40px; }
.product-view-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.product-view-bullets { list-style: none; }
.product-view-bullets li {
  font-size: 16px;
  color: var(--text-soft);
  padding: 14px 0 14px 28px;
  position: relative;
  letter-spacing: 0.02em;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.product-view-bullets li:first-child { border-top: 1px solid var(--border); }
.product-view-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 23px;
  width: 14px; height: 1px;
  background: var(--gold);
}
.product-view-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  margin-bottom: 40px;
}
.product-view-meta-item {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-view-meta-item:nth-child(2n) { border-right: none; }
.product-view-meta-item:nth-last-child(-n+2) { border-bottom: none; }
.product-view-meta-item .pv-meta-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-view-meta-item .pv-meta-value {
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.product-view-detail {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 2;
  letter-spacing: 0.02em;
}
.product-view-detail p { margin: 0 0 18px; }
.product-view-detail p:last-child { margin-bottom: 0; }
.product-view-detail strong { color: var(--gold-soft); font-weight: 500; }
.product-view-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  font-size: 13px;
  color: var(--warn);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.product-view-cta {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.product-view-cta .btn {
  font-size: 15px;
  padding: 16px 56px;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  #product-view { padding: 100px 20px 80px; }
  .product-view-title { font-size: 30px; }
  .product-view-hook { font-size: 17px; padding: 18px 20px; }
  .product-view-bullets li { font-size: 15px; }
  .product-view-detail { font-size: 15px; }
  .product-view-meta-item { padding: 14px 16px; }
  .pv-meta-value { font-size: 13px; }
  .pv-meta-value { font-size: 14px; }
  .product-view-cta .btn { width: 100%; text-align: center; justify-content: center; padding: 16px 24px; }
}

/* --------- Comprehensive Mobile (≤640px) --------- */
@media (max-width: 640px) {
  /* Nav */
  .nav-inner { padding: 12px 16px; }
  .nav-right { gap: 12px; }
  .nav-link { display: none; }
  .nav-link:last-of-type { display: inline; }

  /* Hero */
  .hero { min-height: 100svh; padding: 0 20px; }
  .hero-inner { padding: 100px 0 60px; gap: 14px; }
  .hero-avatar { width: 100px; height: 100px; }
  .hero-name { font-size: 38px; }
  .hero-title { font-size: 14px; letter-spacing: 0.1em; }
  .hero-subtitle p { font-size: 13px; }
  .hero-tagline { font-size: 14px; }
  .hero-cta { margin-top: 8px; }

  /* Section */
  .section { padding: 64px 16px; }
  .section-inner { max-width: 100%; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 13px; }
  .section-num { font-size: 32px; }
  .section-num::before { height: 28px; }

  /* Cards */
  .card { padding: 28px 22px; }
  .card-icon { font-size: 28px; }
  .card-icon svg { width: 32px; height: 32px; }
  .card-title { font-size: 18px; }
  .card-hook { font-size: 13px; }
  .card-bullets li { font-size: 13px; }
  .card-btn { font-size: 12px; padding: 10px 0; }
  .card-tag { font-size: 10px; }

  /* Institutions */
  .institutions { padding: 72px 16px; }
  .institutions-content { padding: 0; }
  .institutions-content .section-title { font-size: 22px; }
  .institutions-content .section-sub { font-size: 13px; }
  .institutions-grid { grid-template-columns: 1fr; gap: 16px; margin: 48px 0 40px; }
  .inst-item { padding: 22px 20px; }
  .inst-num { font-size: 22px; margin-bottom: 10px; }
  .inst-item h3 { font-size: 15px; }
  .inst-item p { font-size: 12px; }
  .institutions-cta p { font-size: 13px; }

  /* Contact */
  .contact { padding: 80px 16px 60px; }
  .contact-title { font-size: 30px; }
  .contact-sub { font-size: 14px; }
  .contact-cards { gap: 16px; }
  .contact-card { padding: 28px 20px 22px; }
  .contact-value { font-size: 15px; }
  .contact-hint { font-size: 12px; }

  /* Footer */
  .footer { padding: 32px 16px; }
  .footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .footer-dot { display: none; }
  .footer-disclaimer { font-size: 11px; line-height: 1.8; }

  /* Modal — bottom sheet on mobile */
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog {
    padding: 28px 20px 40px;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    max-width: 100%;
  }
  .modal-title { font-size: 22px; }
  .modal-hook { font-size: 15px; padding: 14px 18px; }
  .modal-bullets li { font-size: 14px; }
  .modal-meta-item { padding: 12px 14px; }
  .modal-meta-item .modal-meta-value { font-size: 13px; }
  .modal-section-content { font-size: 14px; }
  .modal-cta .btn { width: 100%; text-align: center; justify-content: center; }

  /* Buttons */
  .btn { font-size: 13px; padding: 13px 28px; }
  .btn-primary { letter-spacing: 0.06em; }
}

/* --------- Tablet (641px–960px) --------- */
@media (min-width: 641px) and (max-width: 960px) {
  .section { padding: 80px 32px; }
  .card { padding: 28px 24px; }
  #product-view { padding: 110px 40px 80px; }
  .product-view-inner { max-width: 720px; }
  .institutions { padding: 80px 40px; }
  .contact { padding: 100px 40px 72px; }
}

/* --------- Reduced motion --------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
