/* Xbordercart — site styles
   Palette: jade = China side, saffron = India side, ink = structure */
:root {
  --ink: #14254A;
  --ink-2: #22355E;
  --jade: #0F7A6C;
  --jade-soft: #DCEDE9;
  --saffron: #E8962A;
  --saffron-deep: #A65E06;
  --saffron-soft: #FBEBD3;
  --paper: #F7F8F5;
  --mist: #E6ECEA;
  --slate: #44526A;
  --line: #CDD6D3;
  --white: #FFFFFF;

  --font: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--jade); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

/* Language switching */
html[data-lang="en"] .zh,
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="zh"] body { line-height: 1.75; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2 { letter-spacing: 0.02em; font-stretch: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: 6px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font: inherit; font-weight: 700; font-size: 17px;
  color: var(--white); background: var(--jade);
  border: 2px solid var(--jade); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #0B5E53; border-color: #0B5E53; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 245, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 21px; font-stretch: 112%;
}
.mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch button {
  font: inherit; font-size: 14px; font-weight: 600;
  border: 0; background: transparent; color: var(--slate);
  padding: 5px 12px; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-actions .btn-small { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; overflow: hidden; }
.hero-kicker { font-size: 16px; font-weight: 600; color: var(--jade); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 800; font-stretch: 116%;
  letter-spacing: -0.02em; line-height: 1.02;
  max-width: 15ch;
}
html[data-lang="zh"] .hero h1 { max-width: 14em; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.2; }
.hero-lede { margin-top: 28px; max-width: 62ch; font-size: clamp(18px, 1.6vw, 20px); color: var(--slate); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Trade-route board — the signature element */
.corridors-wrap {
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--ink); color: var(--white);
  padding: 48px 0;
}
.corridors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.corridor {
  display: grid; grid-template-columns: 220px 1fr 300px; align-items: center; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid #2E3F68;
}
.corridor:last-child { border-bottom: 0; }
.c-from b, .c-to b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.c-from b { color: #7FD3C5; }
.c-to { display: flex; flex-direction: column; gap: 4px; }
.c-to b { color: #F5B65C; }
.c-to small { font-size: 15px; color: #B8C3D9; }
.c-line {
  position: relative; display: block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--jade) 45%, var(--saffron) 55%, var(--saffron) 100%);
}
.c-line::before, .c-line::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translateY(-50%); border: 4px solid var(--ink);
}
.c-line::before { left: -4px; background: var(--jade); }
.c-line::after { right: -4px; background: var(--saffron); }
.c-dot {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.18);
  transform: translate(-50%, -50%); opacity: 0;
  animation: travel 2.8s cubic-bezier(.55,.05,.35,1) forwards;
}
.corridor:nth-child(1) .c-dot { animation-delay: .5s; }
.corridor:nth-child(2) .c-dot { animation-delay: 1.1s; }
.corridor:nth-child(3) .c-dot { animation-delay: 1.7s; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .c-dot { display: none; } }
@media (max-width: 860px) {
  .corridor { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .c-line { width: 100%; }
}

/* Proof strip */
.proof { background: var(--ink-2); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 36px; }
.proof p { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--saffron); padding-left: 16px; color: #C9D3E6; font-size: 16px; }
.proof strong { font-size: clamp(28px, 3vw, 38px); font-weight: 800; font-stretch: 112%; color: var(--white); line-height: 1.1; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800; font-stretch: 110%;
  letter-spacing: -0.01em; max-width: 22ch;
}
html[data-lang="zh"] .section h2 { max-width: 18em; }
.section-lede { margin-top: 18px; max-width: 64ch; color: var(--slate); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.split-text p { max-width: 62ch; color: var(--slate); }
.split-text h2 { margin-bottom: 4px; }
.source { font-size: 14px; color: #6A7689 !important; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Opportunity figure */
.opportunity { background: var(--white); }
.growth {
  margin: 0; padding: 32px; border-radius: var(--radius);
  background: var(--mist);
}
.growth figcaption { font-weight: 700; font-size: 17px; }
.bars { display: flex; align-items: flex-end; gap: 32px; height: 300px; margin-top: 24px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; height: 100%; }
.bar-val { font-size: 26px; font-weight: 800; font-stretch: 112%; }
.bar { display: block; border-radius: 6px 6px 0 0; }
.bar-now { height: 18%; background: var(--jade); }
.bar-goal { height: 82%; background: var(--saffron); }
.bar-label { font-size: 15px; color: var(--slate); }
.growth-note { margin-top: 20px; font-size: 16px; color: var(--slate); }

/* How it works */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.steps li {
  counter-increment: step;
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-weight: 800; font-size: 17px;
  color: var(--white); background: var(--jade);
}
.steps li.in::before { background: var(--saffron); color: var(--ink); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { font-size: 16px; color: var(--slate); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* Why */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 48px; }
.why-item { border-top: 3px solid var(--jade); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.why-item h3 { font-size: 21px; font-weight: 700; }
.why-item p { font-size: 16px; color: var(--slate); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 72px; border-radius: var(--radius); overflow: hidden; }
.role { padding: 36px 40px; }
.role h3 { font-size: 22px; font-weight: 800; font-stretch: 108%; margin-bottom: 16px; }
.role ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.role li { padding-left: 26px; position: relative; font-size: 17px; }
.role li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 3px; border-radius: 2px; }
.role-you { background: var(--jade-soft); }
.role-you li::before { background: var(--jade); }
.role-us { background: var(--ink); color: var(--white); }
.role-us li::before { background: var(--saffron); }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } .role { padding: 28px 24px; } }

/* Fit */
.fit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fit-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fit-list b { font-size: 19px; font-weight: 700; }
.fit-list span { font-size: 16px; color: var(--slate); }

/* Start */
.start { background: var(--saffron-soft); }
.start-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: start; position: relative;
}
.start-steps li { counter-increment: start; display: flex; flex-direction: column; gap: 10px; position: relative; }
.start-steps li::before {
  content: counter(start);
  font-size: 56px; font-weight: 800; font-stretch: 120%; line-height: 1;
  color: var(--saffron-deep);
}
.start-steps h3 { font-size: 21px; font-weight: 700; }
.start-steps p { font-size: 16px; color: var(--slate); }
@media (max-width: 860px) { .start-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (max-width: 480px) { .start-steps { grid-template-columns: 1fr; } }

/* About timeline */
.about { background: var(--white); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--jade); display: flex; flex-direction: column; gap: 28px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -38px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--jade); border: 3px solid var(--white);
}
.timeline li.future::before { background: var(--white); border-color: var(--saffron); }
.timeline b { font-size: 26px; font-weight: 800; font-stretch: 112%; }
.timeline span { color: var(--slate); }

/* FAQ */
.faq-list { margin-top: 40px; max-width: 860px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 19px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 3px solid var(--jade); border-bottom: 3px solid var(--jade);
  transform: rotate(45deg) translateY(-4px); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { padding: 0 0 24px; max-width: 64ch; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 20px; }
.contact-intro p { color: #C9D3E6; max-width: 46ch; }
.contact-email a, .site-footer a { color: #F5B65C; font-weight: 600; }
.wechat { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.wechat figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wechat img { width: 160px; height: 160px; border-radius: 8px; background: var(--white); padding: 8px; }
.wechat figcaption { display: flex; flex-direction: column; font-size: 15px; color: #C9D3E6; }
.wechat figcaption b { color: var(--white); font-size: 17px; }

.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 18px; } }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid #B5C1BE; border-radius: 8px;
  padding: 11px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15,122,108,.22); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { font-size: 14px; color: #B3261E; }
.contact-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; font-weight: 600; font-size: 16px; }
.form-status.ok { background: var(--jade-soft); color: #0A4F46; }
.form-status.err { background: #FBE3E1; color: #8C1D17; }

/* Footer */
.site-footer { background: #0E1A36; color: #AEB9CF; padding: 40px 0; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 24px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand b { color: var(--white); font-size: 18px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Route cards */
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.route-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.rc-path { font-weight: 800; font-stretch: 110%; font-size: 17px; color: var(--jade); }
.route-card h3 { font-size: 23px; font-weight: 800; }
.route-card > p:not(.rc-path) { font-size: 16px; color: var(--slate); }
.route-card ul { margin: 4px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.route-card li { padding-left: 22px; position: relative; font-size: 15px; }
.route-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 3px; border-radius: 2px; background: var(--saffron); }
@media (max-width: 960px) { .route-cards { grid-template-columns: 1fr; } }

/* Marketplaces */
.markets { background: var(--white); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.market { padding: 36px 40px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.market h3 { font-size: 18px; font-weight: 700; }
.market-places { font-size: clamp(34px, 4vw, 52px); font-weight: 800; font-stretch: 118%; line-height: 1.05; }
.market-places .more { font-size: 18px; font-weight: 600; font-stretch: 100%; }
.market > p:not(.market-places) { color: var(--slate); max-width: 46ch; }
.market-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.market-points li { padding-left: 22px; position: relative; font-size: 16px; }
.market-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 3px; border-radius: 2px; background: currentColor; }
.market-in { background: var(--saffron-soft); }
.market-in h3 { color: var(--saffron-deep); }
.market-me { background: var(--jade-soft); }
.market-me h3 { color: #0A5A50; }
@media (max-width: 760px) { .market-grid { grid-template-columns: 1fr; } .market { padding: 28px 24px; } }

/* Categories */
.cat-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.cat { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cat h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; font-stretch: 112%; }
.cat p { font-size: 16px; color: var(--slate); }
.cat-winter h3 { color: #2F5BA8; }
.cat-summer h3 { color: var(--saffron-deep); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .cat { padding-right: 0; } }

/* Contact: single column on small screens */
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.market-places .more { display: block; margin-top: 8px; color: var(--slate); }
