/* ============================================================
   SB Tokenization Partners — sb-toronto.com
   Design: deep navy × gold, institutional finance aesthetic
   ============================================================ */

:root {
  --bg: #0A111E;
  --bg-2: #0E1728;
  --panel: #121D33;
  --panel-2: #16233D;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #E9EEF6;
  --muted: #97A5BC;
  --gold: #C9A24B;
  --gold-bright: #E5C87E;
  --gold-dim: rgba(201, 162, 75, 0.14);
  --red: #C0574F;
  --amber: #C9A24B;
  --green: #6FBF8E;
  --radius: 14px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-body: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0A111E; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

section { scroll-margin-top: 90px; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 14px 0 18px; letter-spacing: 0.2px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.gold { color: var(--gold-bright); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 48px; }
.lead { font-size: 1.15rem; color: var(--text); }

p + p { margin-top: 16px; }
.container.narrow > p { color: var(--muted); margin-top: 16px; }
.container.narrow > p.lead { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B08A35 100%);
  color: #14100A;
  box-shadow: 0 4px 18px rgba(201, 162, 75, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(201, 162, 75, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled, .nav.menu-open {
  background: rgba(10, 17, 30, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}
.nav.menu-open { background: rgba(10, 17, 30, 0.97); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold) 0%, #A5812F 100%);
  color: #14100A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.3px; }
.brand-text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a.btn-gold { color: #14100A; }
.nav-links a.btn-gold:hover { color: #14100A; }

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

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 40px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(201, 162, 75, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(46, 84, 144, 0.22), transparent 65%),
    var(--bg);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; text-align: center; padding-bottom: 150px; }

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 18px 0 22px;
}

.hero-sub {
  max-width: 760px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Skyline */
.skyline { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; pointer-events: none; }
.skyline svg { display: block; width: 100%; height: clamp(140px, 24vw, 280px); }

.sky-city path, .sky-city rect, .sky-city ellipse {
  fill: rgba(151, 165, 188, 0.16);
}
.sky-arc { stroke: rgba(201, 162, 75, 0.55); stroke-width: 1.6; stroke-dasharray: 5 7; }
.sky-node { fill: var(--gold-bright); }

.sky-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 0 14px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.sky-label-zh { color: var(--gold); letter-spacing: 0.28em; display: none; }
html[lang="zh-CN"] .sky-label-zh { display: inline; }
html[lang="zh-CN"] .sky-labels > span:not(.sky-label-zh):not(.sky-dash) { display: none; }
.sky-dash { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 38px 18px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---------- Narrative ---------- */
.callout {
  margin-top: 36px;
  padding: 26px 30px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-dim), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.12rem;
  font-family: var(--font-display);
}
.callout strong { color: var(--gold-bright); }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.svc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.45);
  background: var(--panel-2);
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.svc-no {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.9;
}
.svc-lead {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.svc h3 { font-size: 1.16rem; margin-bottom: 10px; }
.svc p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.partner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.partner-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }

.avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  color: #14100A;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #9A7827);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.15);
}

.partner h3 { font-size: 1.6rem; }
.role { color: var(--gold); font-size: 0.86rem; font-weight: 600; margin-top: 3px; }

.facts { display: flex; flex-direction: column; gap: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: none; }
.facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}
.facts dd { font-size: 0.9rem; color: var(--muted); }

.partner-quote {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 75, 0.07);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
}
html[lang="en"] .partner-quote::before { content: "\201C"; color: var(--gold); font-size: 1.2em; margin-right: 2px; }
html[lang="en"] .partner-quote::after { content: "\201D"; color: var(--gold); font-size: 1.2em; margin-left: 2px; }

/* ---------- Why Us table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare { width: 100%; border-collapse: collapse; min-width: 680px; }

.compare th, .compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.compare thead th:nth-child(2) { color: var(--gold-bright); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr { transition: background 0.15s ease; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.compare td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.compare .yes, .compare .no, .compare .mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.compare .yes { color: #0E1B12; background: var(--green); }
.compare .no  { color: #1B0E0E; background: var(--red); }
.compare .mid { color: #14100A; background: var(--amber); }

.compare td:nth-child(2) span:last-child { color: var(--text); }
.compare td:nth-child(3) span:last-child { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 60px 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.contact-card h2 { margin-bottom: 10px; }
.contact-sub { color: var(--muted); margin-bottom: 40px; }

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 26px 46px;
  margin-bottom: 42px;
  text-align: center;
}
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item a, .contact-item > span:last-child { color: var(--text); font-size: 0.95rem; text-decoration: none; }
.contact-item a:hover { color: var(--gold-bright); text-decoration: underline; }
.pending { color: var(--muted); font-style: italic; opacity: 0.7; }

/* ---------- WeChat QR (clean) ---------- */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto 42px;
}
.qr-frame {
  display: block;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qr-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 75, 0.35);
}
.qr-frame img {
  display: block;
  width: 172px;
  height: 172px;
  border-radius: 6px;
}
.qr-hint { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 36px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 9px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.15rem; }

.disclaimer {
  max-width: 860px;
  margin: 0 auto 16px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
  line-height: 1.7;
}
.copyright { font-size: 0.8rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 17, 30, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }
  .hamburger { display: flex; }

  .section { padding: 72px 0; }
  .team-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; min-height: 86vh; }
  .hero-inner { padding-bottom: 130px; }
}

@media (max-width: 400px) {
  .qr-frame img { width: 150px; height: 150px; }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 12px; }
  .stat-num { font-size: 1.9rem; }
  .brand-text em { display: none; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 44px 24px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .compare td:first-child { white-space: normal; }
}
