:root {
  color-scheme: light;
  --red-950: #300407;
  --red-900: #52070b;
  --red-800: #7b0c12;
  --red-700: #a51219;
  --red-600: #cf1d26;
  --gold-500: #e0a63f;
  --gold-300: #ffdc8b;
  --ink-950: #11141a;
  --ink-800: #252b35;
  --ink-600: #5a6472;
  --line: #e7e1d8;
  --paper: #fffaf1;
  --white: #ffffff;
  --blue: #2176bd;
  --green: #10936c;
  --shadow: 0 24px 70px rgba(42, 12, 12, .15);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: #f6f4ef;
  color: var(--ink-950);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f6f4ef;
  overflow-x: hidden;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 223, 164, .22);
  border-radius: 8px;
  color: #fff8ea;
  background: rgba(43, 4, 7, .74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(22, 3, 5, .22);
}

.site-header.scrolled {
  background: rgba(27, 7, 9, .9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #6b1012;
  background: linear-gradient(145deg, #ffe8ae, #d79b30);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 248, 232, .78);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-300);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 223, 164, .32);
  border-radius: 7px;
  padding: 9px 12px;
  color: #fff5db;
  background: rgba(255, 255, 255, .06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

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

.btn-gold {
  color: #571012;
  background: linear-gradient(145deg, #ffe6a9, #d19a34);
  box-shadow: 0 16px 36px rgba(125, 46, 0, .22);
}

.btn-ghost {
  border: 1px solid rgba(255, 230, 170, .45);
  color: #fff6df;
  background: rgba(255, 255, 255, .07);
}

.dark-ghost {
  color: #641015;
  border-color: rgba(116, 21, 25, .2);
  background: rgba(255, 255, 255, .76);
}

.btn-line {
  border: 1px solid rgba(140, 21, 27, .24);
  color: var(--red-800);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.hero-red {
  color: #fff7e8;
  background: linear-gradient(135deg, #210305 0%, #5a070c 48%, #a4141c 100%);
}

.hero-red::after,
.service-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(246, 244, 239, 1));
  pointer-events: none;
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 3, 5, .9), rgba(78, 7, 12, .5), rgba(164, 20, 28, .58)),
    url("/assets/cross-border-ai-ops-hero.png") center / cover no-repeat;
  opacity: .28;
  pointer-events: none;
}

.brand-hero {
  min-height: 760px;
  display: grid;
  align-items: center;
}

.brand-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 136px;
  text-align: center;
}

.hero-calligraphy {
  display: block;
  width: min(1040px, 100%);
  margin: 0 auto;
  filter:
    drop-shadow(0 24px 42px rgba(30, 0, 0, .28))
    drop-shadow(0 0 24px rgba(255, 204, 112, .12));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 158px 0 118px;
}

.hero-copy {
  max-width: 680px;
  padding-top: 114px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow.dark {
  color: var(--red-700);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 950;
}

.brand-hero h1 {
  max-width: none;
  margin: -58px 0 0;
  color: #fff8e9;
  font-size: 38px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 248, 232, .82);
  font-size: 18px;
  line-height: 1.8;
}

.brand-hero .hero-lede {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 248, 232, .78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.brand-hero .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.brand-hero .trust-row {
  justify-content: center;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid rgba(255, 230, 170, .3);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 248, 232, .82);
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 800;
}

.service-device {
  align-self: center;
  border: 1px solid rgba(255, 221, 156, .24);
  border-radius: 8px;
  color: #fff8ec;
  background: rgba(28, 8, 12, .72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.relay-row {
  border: 1px solid rgba(255, 223, 164, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
}

.relay-row span {
  color: rgba(255, 248, 232, .64);
  font-size: 12px;
  font-weight: 800;
}

code {
  color: #ffe5aa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.metric-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1080px, calc(100% - 40px));
  margin: -56px auto 0;
  overflow: hidden;
  border: 1px solid rgba(122, 18, 24, .12);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-band div {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 26px;
  background: #fff;
}

.metric-band strong {
  color: var(--red-700);
  font-size: 30px;
  line-height: 1;
}

.metric-band span {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
}

.metric-band.light {
  margin-top: -32px;
}

.section {
  padding: 96px 0;
}

.section-white {
  background: #fff;
}

.section-tint {
  background: #f6f1e9;
}

.section-dark {
  color: #fff7e8;
  background: linear-gradient(145deg, #171a20, #37070b 58%, #741217);
}

.section-head,
.split,
.product-grid,
.feature-grid,
.pricing-grid,
.tabs,
.timeline,
.delivery-grid,
.consult-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
  text-align: center;
}

.section-head h2,
.split h2,
.consult-section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.section-head p,
.split p,
.consult-section p {
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.8;
}

.section-head.invert p,
.section-dark .delivery-grid p {
  color: rgba(255, 248, 232, .7);
}

.product-grid,
.feature-grid,
.pricing-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card,
.feature-grid article,
.price-card,
.delivery-grid div,
.timeline div {
  border: 1px solid rgba(126, 25, 29, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(34, 18, 12, .07);
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 270px;
  padding: 24px;
}

.product-card.featured {
  border-color: rgba(183, 22, 29, .3);
  background: linear-gradient(180deg, #fff, #fff6e5);
}

.card-tag {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--red-800);
  background: #fff0d2;
  font-size: 12px;
  font-weight: 900;
}

.product-card h3,
.feature-grid h3,
.price-card h3,
.timeline h3,
.delivery-grid h3 {
  margin: 0;
  font-size: 20px;
}

.product-card p,
.feature-grid p,
.price-card li,
.timeline p,
.delivery-grid p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.7;
  font-size: 14px;
}

.product-card a {
  align-self: end;
  color: var(--red-700);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 60px;
  align-items: center;
}

.relay-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  color: #fff7e8;
  background: #1b1f27;
  box-shadow: var(--shadow);
}

.relay-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
}

.relay-row strong {
  text-align: right;
}

.tabs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tab-list {
  display: grid;
  gap: 10px;
}

.tab-button {
  border: 1px solid rgba(126, 25, 29, .12);
  border-radius: 7px;
  padding: 16px;
  color: var(--ink-800);
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.tab-button.active {
  color: #fff7e8;
  background: var(--red-800);
}

.tab-panel {
  display: none;
  min-height: 230px;
  border-radius: 8px;
  padding: 34px;
  color: #fff7e8;
  background:
    linear-gradient(145deg, rgba(85, 9, 14, .9), rgba(19, 22, 29, .92)),
    url("/assets/cross-border-ai-ops-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.tab-panel.active {
  display: grid;
  align-content: end;
  gap: 12px;
}

.tab-panel h3 {
  margin: 0;
  font-size: 28px;
}

.tab-panel p {
  margin: 0;
  max-width: 660px;
  color: rgba(255, 248, 232, .78);
  line-height: 1.8;
}

.delivery-grid div {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 223, 164, .18);
  box-shadow: none;
}

.delivery-grid strong,
.timeline strong {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-300);
  font-size: 28px;
}

.consult-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 0;
  margin-bottom: 86px;
  border: 1px solid rgba(125, 18, 24, .16);
  border-radius: 8px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.consult-section p,
.consult-section h2 {
  margin-bottom: 0;
}

.service-hero {
  min-height: 660px;
  color: var(--ink-950);
  background: linear-gradient(145deg, #fff7e8 0%, #f2e6d4 44%, #f8f8f5 100%);
}

.service-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr) 520px;
  padding-bottom: 92px;
}

.service-hero .hero-copy {
  padding-top: 58px;
}

.service-hero h1 {
  color: var(--red-900);
}

.service-hero .hero-lede {
  color: var(--ink-600);
}

.service-device {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 12px;
  background: #fff;
}

.service-device img {
  display: block;
  width: 100%;
  height: 396px;
  object-fit: cover;
  border-radius: 7px;
}

.device-badge {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 223, 164, .28);
  border-radius: 7px;
  padding: 18px;
  color: #fff8ea;
  background: rgba(62, 7, 10, .84);
  backdrop-filter: blur(12px);
}

.device-badge span {
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 900;
}

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

.feature-grid article {
  min-height: 190px;
  padding: 24px;
}

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

.price-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.price-card.primary {
  border-color: rgba(183, 22, 29, .34);
  transform: translateY(-10px);
  background: #fffdf8;
}

.price {
  margin: 0;
  color: var(--red-700);
  font-size: 30px;
  font-weight: 950;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline div {
  min-height: 205px;
  padding: 24px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 8, 8, .62);
  backdrop-filter: blur(10px);
}

.lead-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 220, 150, .42);
  border-radius: 8px;
  color: #fff8ee;
  background: linear-gradient(145deg, #b7141c, #69080d 58%, #171a20);
  box-shadow: 0 30px 80px rgba(45, 0, 0, .45);
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 226, 176, .35);
  border-radius: 50%;
  color: #fff3d9;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  line-height: 1;
}

.lead-eyebrow {
  margin: 0 0 8px;
  color: #ffd989;
  font-size: 13px;
  font-weight: 900;
}

.lead-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.lead-copy,
.lead-note {
  color: rgba(255, 246, 232, .78);
  font-size: 14px;
  line-height: 1.7;
}

.lead-panel label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #ffe2a8;
  font-size: 13px;
  font-weight: 900;
}

.lead-panel input,
.lead-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 222, 170, .3);
  border-radius: 7px;
  padding: 12px;
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, .09);
}

.lead-panel input:focus,
.lead-panel textarea:focus {
  border-color: #ffd989;
  box-shadow: 0 0 0 3px rgba(255, 217, 137, .16);
}

.lead-submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 7px;
  padding: 13px;
  color: #641014;
  background: linear-gradient(145deg, #ffeab3, #d7a343);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    width: calc(100% - 24px);
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 223, 164, .2);
    border-radius: 8px;
    background: rgba(27, 7, 9, .96);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 223, 164, .12);
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .header-action {
    display: none;
  }

  .hero-inner,
  .service-hero .hero-inner,
  .split,
  .tabs,
  .consult-section {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .service-hero .hero-inner {
    gap: 34px;
    padding-top: 122px;
  }

  .hero-copy,
  .service-hero .hero-copy {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .brand-hero {
    min-height: 700px;
  }

  .brand-hero-inner {
    padding: 122px 0 104px;
  }

  .brand-hero h1 {
    margin-top: -38px;
    font-size: 34px;
  }

  .service-device {
    max-width: 620px;
    width: 100%;
  }

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

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

  .price-card.primary {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 32px);
    margin-top: 10px;
    padding: 10px 12px;
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .section-head,
  .split,
  .product-grid,
  .feature-grid,
  .pricing-grid,
  .tabs,
  .timeline,
  .delivery-grid,
  .consult-section,
  .metric-band {
    width: min(100% - 28px, 1120px);
  }

  .hero-inner,
  .service-hero .hero-inner {
    padding: 110px 0 72px;
  }

  .hero-copy,
  .service-hero .hero-copy {
    padding-top: 30px;
  }

  .hero-calligraphy {
    width: 104vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .brand-hero {
    min-height: 640px;
  }

  .brand-hero-inner {
    width: calc(100% - 48px);
    padding: 98px 0 82px;
  }

  .hero-calligraphy {
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    transform: none;
  }

  .brand-hero h1 {
    margin-top: -6px;
    font-size: 25px;
    line-height: 1.25;
  }

  .hero-lede {
    font-size: 16px;
  }

  .brand-hero .hero-lede {
    margin-top: 14px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-actions {
    display: grid;
  }

  .brand-hero .hero-actions {
    justify-content: stretch;
    gap: 10px;
  }

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

  .trust-row {
    justify-content: center;
    gap: 8px;
  }

  .trust-row span {
    max-width: 100%;
    font-size: 12px;
    white-space: normal;
  }

  .metric-band,
  .product-grid,
  .feature-grid,
  .delivery-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric-band {
    margin-top: -30px;
  }

  .metric-band div {
    min-height: 86px;
    padding: 18px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 28px;
    text-align: left;
  }

  .section-head h2,
  .split h2,
  .consult-section h2 {
    font-size: 28px;
  }

  .product-card,
  .feature-grid article,
  .price-card,
  .timeline div,
  .delivery-grid div {
    min-height: auto;
    padding: 20px;
  }

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

  .tab-button {
    padding: 13px;
    text-align: center;
  }

  .tab-panel {
    min-height: 260px;
    padding: 24px;
  }

  .tab-panel h3 {
    font-size: 24px;
  }

  .consult-section {
    margin-bottom: 58px;
    padding: 22px;
  }

  .service-device {
    min-height: 320px;
  }

  .service-device img {
    height: 300px;
  }

  .device-badge {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .lead-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .service-device,
  .product-card,
  .price-card {
    animation: rise-in .5s ease both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
