/* ============================================================
   Meitu Trading LLC — Global Stylesheet
   Minimal, typography-led design. Black / white / gray palette
   with a single restrained brand accent.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #161617;
  --bg-dark-2: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #a1a1a6;
  --accent: #0057b8;
  --accent-hover: #004a9e;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --header-bg: rgba(251, 251, 253, 0.82);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1080px;
  --header-height: 56px;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Layout helpers ---------- */

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

.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark .section-sub,
.section--dark .card-text {
  color: var(--text-on-dark-secondary);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border-light);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-menu a.active {
  opacity: 1;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--header-height) + 120px) 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin: 0 auto 26px;
}

.hero .lead {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
}

.page-hero {
  padding: calc(var(--header-height) + 88px) 0 72px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 20px;
}

.page-hero .lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

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

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

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-light:hover {
  background: var(--bg-alt);
}

.link-arrow {
  font-weight: 500;
}

.link-arrow::after {
  content: " ›";
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.section--alt .card {
  background: var(--bg);
}

.card-icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
  margin-bottom: 22px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 18px;
}

.card-text:last-child {
  margin-bottom: 0;
}

/* ---------- Feature rows (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--border-light);
}

.feature-visual {
  background: var(--bg-alt);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.feature-visual svg {
  width: 120px;
  height: 120px;
  color: var(--text);
  opacity: 0.85;
}

.feature-visual--dark {
  background: var(--bg-dark-2);
}

.feature-visual--dark svg {
  color: var(--text-on-dark);
}

.feature-body h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.feature-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.feature-body ul {
  list-style: none;
  margin: 6px 0 20px;
}

.feature-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.feature-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-body li strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Statement / values ---------- */

.statement {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  max-width: 860px;
}

.statement--center {
  margin: 0 auto;
  text-align: center;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.value-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--text-on-dark-secondary);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.contact-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 14px;
}

.contact-card .email {
  font-size: 19px;
  font-weight: 600;
}

.form {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 36px;
}

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

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form .btn {
  border: 0;
  cursor: pointer;
  width: 100%;
}

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

/* ---------- Legal / prose ---------- */

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  color: #333336;
  font-size: 16.5px;
  line-height: 1.65;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 34px;
}

.prose .draft-note {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-note {
  line-height: 1.6;
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- 404 ---------- */

.error-hero {
  padding: calc(var(--header-height) + 140px) 0 160px;
  text-align: center;
}

.error-code {
  font-size: clamp(80px, 14vw, 150px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.error-hero h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 18px 0 14px;
}

.error-hero p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 34px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0;
  }

  .feature-row .feature-visual {
    order: -1;
    min-height: 220px;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 734px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 24px 16px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    border-top: 1px solid var(--border-light);
  }

  .nav-menu li:first-child {
    border-top: 0;
  }

  .nav-menu a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 84px;
    text-align: left;
  }

  .hero h1,
  .hero .lead {
    margin-left: 0;
  }

  .hero .btn-row {
    justify-content: flex-start;
  }

  .page-hero {
    text-align: left;
    padding-bottom: 52px;
  }

  .page-hero .lead {
    margin-left: 0;
  }

  .cta-band {
    padding: 52px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
