/* phantm.net.cn: one page, system fonts only, nothing loaded from outside this site. */
:root {
  --ink: #18211d;
  --ink-soft: #4a5550;
  --paper: #efeff1;
  --white: #ffffff;
  --deep: #001a13;
  --green: #1cba88;
  --sand: #eae7e1;
  --line: #dcdcdf;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--green);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: #17a378; }
.btn--small { padding: 9px 20px; font-size: 0.95rem; }
.btn--dark { background: var(--deep); color: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { background: #0d3328; }
.link { display: inline-block; margin-right: 20px; font-weight: 600; color: var(--deep); text-underline-offset: 4px; }
.link::after { content: " →"; }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.top__bar { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.top__logo img { width: 117px; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; }
.top__nav a:not(.btn):hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 26, 19, 0.62), rgba(0, 26, 19, 0.78)), url("/img/hero.webp") center / cover no-repeat, var(--deep);
  color: var(--white);
  padding: 170px 0 56px;
  text-align: center;
}
.hero__inner { max-width: 900px; }
.hero__lead { max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; color: #dce5e1; }
.logos {
  list-style: none;
  margin-top: 96px;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 40px;
}
/* All customer logos in white on the dark hero, as on phantm.com. */
.logos img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.logos img[src$=".svg"] { height: 26px; }

/* Bands */
.band { padding: 88px 0; }
.band--tight { padding: 40px 0; }
.band--white { background: var(--white); }
.band--sand { background: var(--sand); }
.band--green { background: var(--green); color: var(--deep); }
.band p { color: var(--ink-soft); font-size: 1.08rem; }
.band--green p { color: var(--deep); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split--flip > div { order: 2; }
.photo { border-radius: var(--radius); width: 100%; }

/* Example SKU record (decorative) */
.sku { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 40px -24px rgba(0, 26, 19, 0.35); }
.sku__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.sku__head b { font-size: 1.25rem; color: var(--deep); }
.sku__tag { align-self: flex-start; padding: 4px 12px; border-radius: 100px; background: var(--deep); color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.sku__rows { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: 12px; }
.sku__rows li { display: grid; grid-template-columns: 6.5em 1fr 4.5em; gap: 12px; padding: 13px 18px; font-size: 0.97rem; }
.sku__rows li + li { border-top: 1px solid var(--line); }
.sku__rows li span:first-child { font-weight: 600; color: var(--ink); }
.sku__rows li span:not(:first-child) { color: var(--ink-soft); }
.sku__rows li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.sku__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 0.88rem; font-weight: 600; }
.sku__foot span { padding: 6px 14px; border-radius: 100px; background: var(--white); color: var(--deep); }
.sku__ok::before { content: "\2713  "; color: var(--green); }
.sku__doc::before { content: "\25A4  "; color: var(--green); }

/* Technology cards */
.cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card h3 { margin: 18px 18px 6px; }
.card p { margin: 0 18px 20px; font-size: 0.97rem; }

/* Quotes */
.quotes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quotes figure { margin: 0; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
/* align-self keeps the flex column from stretching the logo to the card width */
.quotes img { align-self: flex-start; height: 32px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.quotes blockquote { margin: 0 0 20px; flex: 1; }
.quotes blockquote p { color: var(--ink); font-size: 1rem; }
.quotes figcaption { font-size: 0.93rem; color: var(--ink-soft); }
.quotes strong { color: var(--ink); }

/* Customer stories */
.stories { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; margin-top: 40px; }
.story { display: flex; text-decoration: none; color: var(--ink); }
.story--feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; }
.story--feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.story--feature span {
  position: relative;
  align-self: flex-end;
  padding: 28px;
  width: 100%;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  background: linear-gradient(transparent, rgba(0, 26, 19, 0.85));
}
.stories__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stories__list li { flex: 1; border-bottom: 1px solid var(--line); }
.stories__list .story { align-items: center; gap: 28px; height: 100%; padding: 26px 4px; }
.stories__list img, .story__name { width: 110px; flex: none; }
.stories__list img { max-height: 46px; object-fit: contain; }
.story__name { font-size: 0.95rem; text-align: center; }
.stories__list span { font-weight: 600; font-size: 1.05rem; }
.story:hover span { text-decoration: underline; }

/* Footer */
.foot { background: var(--deep); color: #c9d4cf; padding: 64px 0 28px; font-size: 0.95rem; }
.foot a { color: var(--white); }
.foot__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot__cols img { width: 100px; margin-bottom: 12px; }
.foot__country { margin-top: 32px; padding-top: 24px; border-top: 1px solid #1f3a31; font-size: 0.85rem; color: #9fb0a9; }
.foot__copy { text-align: center; margin: 24px 0 8px; font-size: 0.85rem; }
/* ICP (and later PSB) filing numbers: bottom centre, readable on the dark footer. */
.foot__beian { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; padding: 0 24px; font-size: 0.9rem; }
.foot__beian a { color: #e6ece9; text-decoration: none; }
.foot__beian a:hover, .foot__beian a:focus-visible { text-decoration: underline; }
.foot__beian .psb { display: inline-flex; align-items: center; gap: 6px; }
.foot__beian .psb img { width: 16px; height: auto; }

/* 404 page */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .band { padding: 60px 0; }
  .band--tight { padding: 32px 0; }
  .split, .stories { grid-template-columns: 1fr; gap: 28px; }
  .split--flip > div { order: 0; }
  .split + .split { margin-top: 56px; }
  .hero { padding: 130px 0 40px; }
  .logos { margin-top: 56px; gap: 14px 26px; }
  .logos img { height: 30px; }
  .logos img[src$=".svg"] { height: 20px; }
  .top__nav { gap: 14px; }
  .top__nav a:not(.btn) { font-size: 0.9rem; }
  .story--feature { min-height: 320px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .top__logo img { width: 92px; }
}
