:root {
  --bg: #f7f5f1;
  --bg-soft: #efece6;
  --ink: #14131a;
  --ink-soft: #565463;
  --card: #ffffff;
  --line: #e6e2da;
  --blue: #4b5bf5;
  --blue-soft: #e4e7ff;
  --green: #0f9d6e;
  --green-soft: #ddf5ec;
  --orange: #e8641b;
  --orange-soft: #fdeadd;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 19, 26, 0.05), 0 2px 8px rgba(20, 19, 26, 0.05);
  --shadow-lg: 0 12px 32px rgba(20, 19, 26, 0.1), 0 2px 8px rgba(20, 19, 26, 0.06);
  --font-display: "Sora", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-padding-top: 4.75rem;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ============ News bar ============ */
.news-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.news-tag {
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  margin-right: 0.5rem;
  letter-spacing: 0.06em;
}

.news-bar a {
  color: #c6cdff;
  margin-left: 0.5rem;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid #d6d2c9;
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.lang-active {
  background: var(--ink);
  color: #fff;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  box-shadow: var(--shadow-lg);
}

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

.btn-ghost:hover {
  background: #fff;
}

.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1.02rem;
}

/* ============ Pills / chips ============ */
.pill {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.pill-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
}

.pill-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.pill-neutral {
  background: #e9e5dd;
  color: var(--ink-soft);
}

.pill-invert {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ============ Hero ============ */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, #e9e3ff 0%, transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  margin: 0;
  font-weight: 800;
}

.subtitle {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 1.4rem auto 0;
  text-wrap: balance;
  line-height: 1.6;
}

.kpi-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
  text-wrap: balance;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Floating quote cards */
.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 4.5rem;
  text-align: left;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quote-card > p {
  font-size: 1.02rem;
  font-weight: 500;
  margin: 0.2rem 0 1.2rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quote-author strong {
  display: block;
  font-size: 0.92rem;
}

.quote-author span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.av-1 { background: linear-gradient(135deg, #4b5bf5, #8a5bf5); }
.av-2 { background: linear-gradient(135deg, #0f9d6e, #37c08f); }
.av-3 { background: linear-gradient(135deg, #e8641b, #f0954f); }

/* ============ Processor logo wall ============ */
.logos {
  padding: 3.2rem 0 1rem;
}

.logos-title {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.6rem;
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #b3aea3;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.logo-item:hover {
  color: var(--ink);
}

/* ============ Metrics ============ */
.metrics {
  padding: 4.5rem 0;
}

.metrics-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 2.2rem;
}

/* Desktop: top 3 + bottom 3 ROI row as unified 2×3 / 3×2 board */
.stats-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-cell {
  background: var(--card);
  padding: 1.75rem 1.4rem;
  text-align: center;
}

.stat-cell:nth-child(n + 4) {
  background: var(--bg-soft);
}

.kpi {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.kpi-label {
  font-weight: 600;
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.kpi-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0.55rem 0 0;
  text-wrap: balance;
  line-height: 1.5;
  display: none; /* keep cells even in 6-grid */
}

.rn-green { color: var(--green); }
.rn-blue { color: var(--blue); }
.rn-orange { color: var(--orange); }


/* ============ Sections ============ */
.section {
  padding: 5.5rem 0;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: min(100%, 36ch);
  text-wrap: balance;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 0 2.6rem;
}

/* ============ Orchestration ============ */
.section-orch {
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, #e4e7ff 0%, transparent 70%),
    var(--bg);
}

.orch-diagram {
  position: relative;
  height: 420px;
  background:
    radial-gradient(ellipse 45% 60% at 50% 50%, #f0f1ff 0%, transparent 75%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  overflow: hidden;
}

/* Wrapper: spacing owner; mobile uses native flow layout */
.orch-stage {
  margin-bottom: 2.4rem;
}

/* SVG wires layer */
.orch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wire {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.wire-active {
  stroke: var(--blue);
  stroke-dasharray: 7 9;
  animation: wire-flow 1s linear infinite;
}

.wire-standby {
  stroke: #cfccc4;
  stroke-dasharray: 3 7;
}

@keyframes wire-flow {
  to {
    stroke-dashoffset: -16;
  }
}

.wire-dot {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.wire-dot-standby {
  stroke: #cfccc4;
}

/* nodes (absolutely positioned to match SVG coords) */
.orch-node {
  position: absolute;
  border-radius: var(--radius-md);
}

.orch-node-title {
  font-family: var(--font-display);
  font-weight: 700;
  display: block;
}

.orch-node-sub {
  color: var(--ink-soft);
  font-size: 0.82rem;
  display: block;
}

.orch-merchant {
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 21%;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.orch-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.orch-hub {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  min-width: 240px;
  background: linear-gradient(160deg, #191825 0%, #2b2a3d 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.3rem 1.2rem;
}

.orch-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orch-hub .orch-node-title {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.orch-hub .orch-node-sub {
  color: #b7b4c7;
  margin-top: 0.1rem;
}

.orch-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7ee2b8;
  background: rgba(126, 226, 184, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.orch-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee2b8;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.orch-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tag-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.orch-psp {
  right: 4%;
  width: 21%;
  min-width: 175px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 1.1rem;
}

.psp-1 { top: 62px; transform: translateY(-50%); }
.psp-2 { top: 210px; transform: translateY(-50%); }
.psp-3 { top: 358px; transform: translateY(-50%); }

.psp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.psp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pd-ok { background: var(--green); }
.pd-standby { background: var(--orange); }

.psp-status {
  font-size: 0.78rem;
  font-weight: 600;
}

.ps-ok { color: var(--green); }
.ps-standby { color: var(--orange); }

.orch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.orch-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.orch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.orch-card h3 {
  font-size: 1.12rem;
  margin: 0.9rem 0 0.4rem;
}

.orch-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0;
}

.orch-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.oi-blue { background: var(--blue); }
.oi-green { background: var(--green); }
.oi-orange { background: var(--orange); }
.oi-ink { background: var(--ink); }
.oi-purple { background: #7c5cf0; }
.oi-teal { background: #0d8f8f; }

/* ============ Token vault ============ */
.vault-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.vault-points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.vault-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0;
}

.vault-points li + li {
  border-top: 1px solid var(--line);
}

.vault-points i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.vp-body {
  min-width: 0;
  flex: 1;
}

.vp-body strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 0.3rem;
}

.vp-body p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.65;
  text-wrap: pretty;
  word-break: keep-all;
}

.vault-box {
  background: linear-gradient(160deg, #191825 0%, #2b2a3d 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin: 0 auto;
}

.vault-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.token-card {
  background: linear-gradient(135deg, #4b5bf5, #8a5bf5);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.token-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.token-chip {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.token-scheme {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.token-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.token-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.cit-mit-rail {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tx-pill {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 0.18rem;
}

.tx-cit {
  border-color: rgba(125, 141, 255, 0.45);
  background: rgba(75, 91, 245, 0.18);
}

.tx-mit {
  border-color: rgba(126, 226, 184, 0.35);
  background: rgba(15, 157, 110, 0.16);
}

.tx-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b7b4c7;
}

.tx-pill strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.tx-ok {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7ee2b8;
}

.tx-arrow {
  text-align: center;
  color: #7d8cff;
  font-size: 1rem;
  line-height: 1;
}

.vault-note {
  color: #b7b4c7;
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
  line-height: 1.45;
}

/* ============ Suite (product) cards ============ */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.suite-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suite-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.suite-visual {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-accept { background: linear-gradient(135deg, #dfe4ff 0%, #c9d2ff 100%); }
.sv-optimize { background: linear-gradient(135deg, #d9f4e9 0%, #baead6 100%); }
.sv-manage { background: linear-gradient(135deg, #ffe8d6 0%, #ffd6b8 100%); }

.suite-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.suite-body h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.suite-body > p {
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  flex: 1;
}

.feature-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-links li + li {
  border-top: 1px solid var(--line);
}

.feature-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.2rem;
  border-radius: 8px;
  transition: background 0.15s ease, padding 0.15s ease;
}

.feature-links a:hover {
  background: var(--bg-soft);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.feature-links a span {
  color: var(--ink-soft);
}

/* mini illustrations inside suite visuals */
.mini-checkout {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem;
  width: 200px;
  box-shadow: var(--shadow-sm);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9defc;
}

.line {
  height: 8px;
  border-radius: 4px;
  background: #e9ecfd;
}

.w-60 { width: 60%; }
.w-40 { width: 40%; }

.mini-pay-btn {
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem;
  margin-top: 0.3rem;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.bar {
  width: 22px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: #bfe9d8;
}

.bar-hot {
  background: var(--green);
}

.mini-table {
  background: #fff;
  border-radius: 14px;
  width: 200px;
  padding: 0.7rem;
  box-shadow: var(--shadow-sm);
}

.mini-thead {
  height: 10px;
  border-radius: 5px;
  background: #f0e4d8;
  margin-bottom: 0.6rem;
}

.mini-trow {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f3ede5;
  padding: 0.42rem 0;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.tag-ok {
  background: var(--green-soft);
  color: var(--green);
}

.tag-warn {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ============ How it works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.step-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ============ Use cases ============ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.usecase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.uc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.uc-blue { background: var(--blue-soft); }
.uc-green { background: var(--green-soft); }
.uc-orange { background: var(--orange-soft); }
.uc-purple { background: #efe8ff; }
.uc-teal { background: #e0f5f5; }
.uc-ink { background: #eceaef; }

.usecase-card h3 {
  font-size: 1.2rem;
  margin: 0.95rem 0 0.45rem;
}

.usecase-card p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  text-wrap: pretty;
  word-break: keep-all;
}

/* ============ Footer badges ============ */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  border: 1px solid #d6d2c9;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: #fff;
}

/* ============ Customers ============ */
.industry-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  border: 1px solid #d6d2c9;
  border-radius: 999px;
  padding: 0.4rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: default;
}

.chip-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.2rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tc-featured {
  background: linear-gradient(160deg, #191825 0%, #2b2a3d 100%);
  border: none;
  color: #fff;
}

.tc-featured .quote-author span {
  color: #b7b4c7;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 1.6rem;
}

/* ============ Security ============ */
.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-dark .section-sub {
  color: #b7b4c7;
}

.security-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.security-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.security-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  font-weight: 600;
}

/* ============ Legal pages ============ */
.legal-page {
  padding: 3.5rem 0 5rem;
}

.legal-wrap {
  max-width: 760px;
}

.legal-kicker {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.legal-page h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.legal-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2.2rem;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.65rem;
  line-height: 1.35;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 0.75rem;
}

.legal-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.legal-footer-bottom {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

html[lang="zh-CN"] .legal-page h1,
html[lang="zh-CN"] .legal-body h2 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

html[lang="zh-CN"] .legal-lead,
html[lang="zh-CN"] .legal-body p,
html[lang="zh-CN"] .legal-body li {
  line-height: 1.85;
  word-break: keep-all;
}
.cta {
  padding: 5.5rem 0 6rem;
  text-align: left;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, #ebe6ff 0%, transparent 70%),
    var(--bg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-inner .pill {
  margin-bottom: 1.1rem;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.28;
  margin: 0 0 1.6rem;
  max-width: 16em;
  text-align: left;
  text-wrap: balance;
  word-break: keep-all;
}

.cta-inner .btn {
  min-width: 12rem;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand p {
  color: var(--ink-soft);
  margin: 0.4rem 0;
}

.footer-brand .logo {
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.footer-head {
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.footer-grid a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--ink-soft);
}

/* ============ Chinese typography ============ */
html[lang="zh-CN"] body {
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* Chinese layout: balance multi-line text; shorter copy avoids orphan glyphs */
html[lang="zh-CN"] .hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.28;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  word-break: normal;
  line-break: auto;
}

html[lang="zh-CN"] .subtitle {
  max-width: 36em;
  line-height: 1.7;
  text-wrap: balance;
  text-align: center;
}

html[lang="zh-CN"] .section-title,
html[lang="zh-CN"] .metrics-title {
  line-height: 1.35;
  max-width: min(100%, 22em);
  text-wrap: balance;
}

html[lang="zh-CN"] .section-sub {
  max-width: 42em;
  line-height: 1.75;
  text-wrap: balance;
}

html[lang="zh-CN"] .kpi-label {
  max-width: 12em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

html[lang="zh-CN"] .kpi-label {
  line-height: 1.55;
  text-wrap: balance;
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

html[lang="zh-CN"] .orch-card p,
html[lang="zh-CN"] .step-card p,
html[lang="zh-CN"] .suite-body > p,
html[lang="zh-CN"] .usecase-card p,
html[lang="zh-CN"] .testimonial-text,
html[lang="zh-CN"] .vp-body p,
html[lang="zh-CN"] .quote-card > p {
  text-wrap: balance;
  line-height: 1.65;
}

html[lang="zh-CN"] .cta-inner h2 {
  line-height: 1.35;
  max-width: 16em;
  letter-spacing: 0;
  text-wrap: balance;
}

/* Avoid forced EN-style line breaks leaving Chinese ragged */
html[lang="zh-CN"] .hero h1 br,
html[lang="zh-CN"] .cta-inner h2 br {
  display: none;
}

/* keep the latin wordmark in Sora everywhere */
html[lang="zh-CN"] .logo,
html[lang="zh-CN"] .orch-hub .orch-node-title {
  font-family: var(--font-display);
}

html[lang="zh-CN"] .orch-node-title,
html[lang="zh-CN"] .kpi {
  letter-spacing: 0;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .container {
    width: min(1160px, 94vw);
  }

  .vault-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .security-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .main-nav {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn {
    padding: 0.48rem 0.95rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .lang-btn {
    padding: 0.22rem 0.55rem;
    font-size: 0.78rem;
  }

  .hero {
    padding: 3.2rem 0 2.4rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.15;
  }

  .subtitle {
    font-size: 1.02rem;
    max-width: 38em;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-actions .btn-lg {
    padding: 0.72rem 1.25rem;
    font-size: 0.95rem;
  }

  .section {
    scroll-margin-top: 4.5rem;
    padding: 3.5rem 0;
  }

  .section-title {
    max-width: none;
    font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  }

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

  /* ---- Metrics: unified 6-grid ---- */
  .metrics-title {
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .stats-board {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 18px;
  }

  .stat-cell {
    padding: 1.15rem 0.75rem 1.05rem;
  }

  .stat-cell:nth-child(n + 4) {
    background: var(--bg-soft);
  }

  .kpi {
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    line-height: 1.1;
  }

  .kpi-label {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-top: 0.35rem;
  }

  /* ---- Quotes: horizontal peek ---- */
  .quote-strip {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    padding-bottom: 0.35rem;
    grid-template-columns: none;
  }

  .quote-card {
    flex: 0 0 min(86vw, 320px);
    scroll-snap-align: start;
    padding: 1.15rem 1.2rem;
  }

  /* ---- Orch flow diagram (mobile-native) ---- */
  .orch-stage {
    margin-bottom: 1.5rem;
  }

  .orch-diagram {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.55rem 0.5rem;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1rem 0.9rem 1.05rem;
    margin: 0;
    transform: none;
    border-radius: 20px;
    overflow: visible;
  }

  .orch-wires {
    display: none;
  }

  .orch-diagram .orch-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .orch-merchant {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 0.85rem 1rem;
  }

  .orch-merchant::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    width: 2px;
    height: 0.55rem;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--blue), rgba(75, 91, 245, 0.25));
    border-radius: 2px;
  }

  .orch-hub {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    padding: 1.05rem 1.1rem 1rem;
    border-radius: 18px;
  }

  .orch-hub .orch-node-title {
    font-size: 1.2rem;
  }

  .orch-hub-tags {
    margin-top: 0.75rem;
  }

  .orch-hub-tags .tag {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
  }

  .orch-hub::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    width: 2px;
    height: 0.55rem;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #7ee2b8, rgba(126, 226, 184, 0.2));
    border-radius: 2px;
  }

  .orch-psp {
    margin-top: 0.35rem;
    padding: 0.7rem 0.65rem;
    border-radius: 14px;
  }

  .orch-psp .orch-node-title {
    font-size: 0.82rem;
  }

  .psp-status {
    font-size: 0.68rem;
    line-height: 1.3;
    margin-top: 0.25rem;
    display: block;
  }

  .psp-row {
    gap: 0.35rem;
  }

  /* Capability list frame */
  .orch-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .orch-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.25rem;
    align-items: start;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding: 1.05rem 1.1rem;
    background: transparent;
    transition: none;
  }

  .orch-card:last-child {
    border-bottom: none;
  }

  .orch-card:hover {
    transform: none;
    box-shadow: none;
  }

  .orch-card:nth-child(odd) {
    background: rgba(247, 245, 241, 0.55);
  }

  .orch-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.05rem;
    grid-row: 1 / span 2;
  }

  .orch-card h3 {
    margin: 0.1rem 0 0;
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .orch-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* How-it-works: numbered rail rows */
  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--card);
  }

  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.95rem;
    row-gap: 0.2rem;
    align-items: start;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding: 1.1rem 1.15rem;
    transition: none;
  }

  .step-card:last-child {
    border-bottom: none;
  }

  .step-card:hover {
    transform: none;
    box-shadow: none;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    grid-row: 1 / span 2;
  }

  .step-card h3 {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
  }

  .step-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Products: snap carousels instead of 3 full-bleed twins */
  .suite-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    margin: 0 -0.2rem;
    grid-template-columns: none;
  }

  .suite-card {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
  }

  .suite-visual {
    height: 140px;
  }

  .suite-body {
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .suite-body h3 {
    font-size: 1.15rem;
  }

  /* Industries: 2-up compact tiles */
  .usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .usecase-card {
    min-height: 0;
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 16px;
  }

  .usecase-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .uc-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .usecase-card h3 {
    margin: 0.7rem 0 0.3rem;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .usecase-card p {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Testimonials: horizontal */
  .testimonial-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    padding-bottom: 0.35rem;
  }

  .testimonial-card {
    flex: 0 0 min(86vw, 320px);
    scroll-snap-align: start;
    padding: 1.25rem 1.2rem;
    min-height: 0;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .industry-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-bottom: 1.2rem;
  }

  .chip {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Vault points tighter */
  .vault-points li {
    padding: 0.85rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .news-bar {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .header-inner {
    padding: 0.65rem 0;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.18rem;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.35rem;
    min-width: 0;
  }

  .lang-toggle {
    padding: 2px;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 0.2rem 0.48rem;
    font-size: 0.74rem;
  }

  .header-actions .btn-dark {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2.2rem 0 1.6rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.2;
  }

  .pill {
    font-size: 0.72rem;
    padding: 0.22rem 0.7rem;
    margin-bottom: 0.7rem;
  }

  .subtitle {
    font-size: 0.96rem;
    margin-top: 0.9rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .logos {
    padding: 1.6rem 0 0.2rem;
  }

  .logos-title {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .logo-wall {
    gap: 0.4rem 1rem;
  }

  .logo-item {
    font-size: 0.88rem;
  }

  .metrics {
    padding: 2.2rem 0 2.6rem;
  }

  .metrics-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 1rem;
  }

  /* phone: true 六宫格 2×3 */
  .stats-board {
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }

  .stat-cell {
    padding: 1rem 0.7rem 0.9rem;
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .kpi {
    font-size: 1.25rem;
  }

  .kpi-label {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-sub {
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
  }

  .orch-diagram {
    padding: 0.85rem 0.75rem 0.95rem;
    border-radius: 18px;
  }

  .suite-card {
    flex-basis: min(78vw, 280px);
  }

  .suite-visual {
    height: 120px;
  }

  .usecase-grid {
    gap: 0.6rem;
  }

  .usecase-card {
    padding: 0.85rem 0.75rem;
  }

  .security-cards {
    gap: 0.55rem;
  }

  .security-card {
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

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

  .cta {
    padding: 2.8rem 0 3.2rem;
  }

  .cta-inner h2 {
    font-size: clamp(1.4rem, 6vw, 1.95rem);
    max-width: none;
  }

  .cta-inner .btn {
    width: 100%;
    max-width: 22rem;
  }

  /* hide visual chrome that bloats product scroll on tiny screens */
  .suite-visual .mini-chart,
  .suite-visual .mini-table {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .header-actions .btn-dark {
    padding: 0.38rem 0.65rem;
    font-size: 0.76rem;
  }

  .lang-btn {
    padding: 0.18rem 0.4rem;
    font-size: 0.7rem;
  }

  .kpi {
    font-size: 1.12rem;
  }

  .stat-cell {
    padding: 0.85rem 0.55rem;
    min-height: 5rem;
  }

  .usecase-card p {
    -webkit-line-clamp: 2;
  }
}
