/* Layout: one dark livery-striped hero, then alternating ice and midnight
   bands, each opened by the same three-colour strip. */
:root {
  color-scheme: dark;
  --ink: #0a0913;          /* near-black, purple bias */
  --midnight: #14102e;     /* dark section ground */
  --raven: #2a1a80;        /* deep purple layer */
  --teal: #00a59c;         /* teal layer */
  --teal-deep: #00726d;    /* teal for text on light */
  --sky: #6cb4e6;          /* sky blue layer */
  --silver: #c9ced3;
  --gold: #c9a53a;         /* used once per view at most */
  --ice: #edf3f8;          /* light section ground */
  --ice-line: #cfdbe6;
  --ink-soft: #3d3a55;     /* body text on light */
  --mist: #b9bdd4;         /* body text on dark */
  --line-dark: #2d2852;

  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink); color: #fff;
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* three-colour strip that opens each section */
.strip { height: 6px; background: linear-gradient(90deg, var(--raven) 0 40%, var(--teal) 40% 70%, var(--sky) 70% 92%, var(--silver) 92% 100%); }

/* ---------- logo slot ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-mark { display: grid; gap: 3px; width: 30px; transform: skewX(-18deg); }
.logo-mark i { display: block; height: 6px; }
.logo-mark i:nth-child(1) { background: var(--sky); width: 100%; }
.logo-mark i:nth-child(2) { background: var(--teal); width: 78%; }
.logo-mark i:nth-child(3) { background: var(--silver); width: 54%; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; line-height: 1; display: grid; }
.logo-word small { font-family: var(--mono); font-weight: 400; font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); margin-top: 4px; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 14px; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--mist); }
.nav a:hover { color: #fff; }

.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 11px 22px; border: 2px solid transparent; cursor: pointer; transform: skewX(-10deg); transition: background .15s, color .15s, border-color .15s; }
.btn > span { display: inline-block; transform: skewX(10deg); }
.btn-primary { background: var(--sky); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--silver); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.nav .btn { font-size: 1rem; padding: 7px 16px; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.layer { position: absolute; inset: 0; z-index: -1; }
.l1 { background: linear-gradient(112deg, var(--midnight) 0%, var(--ink) 60%); }
.l2 { background: var(--raven); clip-path: polygon(70% 0, 100% 0, 100% 100%, 50% 100%); }
.l3 { background: var(--teal); clip-path: polygon(82% 0, 100% 0, 100% 100%, 62% 100%); }
.l4 { background: var(--sky); clip-path: polygon(92% 0, 100% 0, 100% 100%, 72% 100%); }
.l5 { background: var(--silver); clip-path: polygon(68.6% 0, 69.1% 0, 49.1% 100%, 48.6% 100%); }
.l6 { background: var(--ink); clip-path: polygon(80.4% 0, 81.2% 0, 61.2% 100%, 60.4% 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero .eyebrow { color: var(--sky); }
.hero h1 { margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.lede { color: var(--mist); font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 32px; padding-left: 6px; }

.lanes { background: var(--ink); border: 1px solid var(--line-dark); border-top: 4px solid var(--teal); padding: 22px 22px 10px; min-width: 0; }
.lanes .eyebrow { color: var(--mist); }
.lanes ul { list-style: none; margin: 14px 0 0; padding: 0; }
.lanes li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 13px; border-top: 1px solid var(--line-dark); }
.code { font-family: var(--mono); font-weight: 500; font-size: .95rem; color: var(--sky); }
.lanes b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pill { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border: 1px solid currentColor; white-space: nowrap; }
.pill.first { color: var(--teal); }
.pill.next { color: var(--gold); }
.pill.later { color: var(--mist); }
.origin { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; font-family: var(--mono); font-size: .8rem; color: var(--mist); }
.origin strong { color: #fff; font-weight: 500; }

/* ---------- sections ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band.light { background: var(--ice); color: var(--ink); }
.band.dark { background: var(--midnight); }
.band.light .eyebrow { color: var(--teal-deep); }
.band.dark .eyebrow { color: var(--sky); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 44px; }
.band.light .head p, .band.light .copy { color: var(--ink-soft); }
.band.dark .head p, .band.dark .copy { color: var(--mist); }

/* two audiences */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.duo article { padding: 34px clamp(20px, 3vw, 40px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.duo article:first-child { background: var(--raven); color: #fff; }
.duo article:last-child { background: #fff; border: 1px solid var(--ice-line); border-left: 0; }
.duo article:first-child .eyebrow { color: var(--sky); }
.duo article:first-child .copy, .duo article:first-child li { color: #dcd9f2; }
.duo ul { margin: 4px 0 8px; padding-left: 1.1em; display: grid; gap: 6px; }
.duo article:last-child li { color: var(--ink-soft); }
.textlink { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 5px; }
.duo article:last-child .textlink { color: var(--raven); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.cats div { padding: 26px 24px 28px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; gap: 8px; align-content: start; min-width: 0; }
.cats h3 { color: #fff; }
.cats p { color: var(--mist); font-size: .98rem; }
.note { margin-top: 26px; color: var(--mist); max-width: 44rem; }
.note a { color: var(--sky); }

/* roadmap */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stage { background: #fff; border: 1px solid var(--ice-line); border-top: 6px solid var(--raven); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stage:nth-child(2) { border-top-color: var(--teal); }
.stage:nth-child(3) { border-top-color: var(--sky); }
.stage .eyebrow { color: var(--ink-soft); }
.stage p { color: var(--ink-soft); font-size: .98rem; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: .85rem; color: var(--sky); padding-bottom: 14px; border-bottom: 2px solid var(--teal); margin-bottom: 8px; }
.steps p { color: var(--mist); font-size: .98rem; }

/* why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.why dl { margin: 0; display: grid; gap: 0; }
.why dl div { padding-block: 20px; border-top: 1px solid var(--ice-line); display: grid; gap: 6px; }
.why dl div:last-child { border-bottom: 1px solid var(--ice-line); }
.why dt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.why dd { margin: 0; color: var(--ink-soft); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
form { display: grid; gap: 16px; background: var(--ink); border: 1px solid var(--line-dark); border-top: 4px solid var(--sky); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); padding: 0; margin: 0; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg label { text-align: center; padding: 11px 8px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mist); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--sky); color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span, .seg legend { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: var(--midnight); border: 1px solid var(--line-dark); padding: 11px 12px; border-radius: 0; }
textarea { min-height: 120px; resize: vertical; }
form .btn { justify-self: start; margin-left: 6px; }
.status { color: var(--sky); font-size: .95rem; }

.mail { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.mail a { font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--sky); overflow-wrap: anywhere; }
footer .meta { display: grid; gap: 4px; text-align: right; }
footer a { color: var(--sky); }
@media (max-width: 620px) { footer .meta { text-align: left; } }
/* footer */
footer { background: var(--ink); border-top: 1px solid var(--line-dark); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 32px; color: var(--mist); font-size: .9rem; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-bottom: 150px; }
  .l2, .l3, .l4, .l5, .l6 { inset: auto 0 0 0; height: 110px; }
  .duo, .why, .contact { grid-template-columns: minmax(0, 1fr); }
  .duo article:last-child { border-left: 1px solid var(--ice-line); border-top: 0; }
  .cats, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { gap: 32px 0; }
  .stages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .cats, .steps, .row { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* language switch, spam trap, form states */
.nav a.lang { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; color: #fff; border: 1px solid var(--line-dark); padding: 5px 10px; }
.nav a.lang:hover { border-color: var(--sky); color: var(--sky); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status.ok { color: var(--teal); }
.status.err { color: var(--gold); }
button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .nav a.lang { display: inline-block; } }

/* Traditional Chinese: CJK needs its own faces and looser leading */
:lang(zh-Hant) { --display: "Saira Condensed", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { line-height: 1.22; letter-spacing: .02em; font-weight: 700; }
:lang(zh-Hant) h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
:lang(zh-Hant) h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
:lang(zh-Hant) h3 { font-size: 1.3rem; }
:lang(zh-Hant) .lanes b, :lang(zh-Hant) .why dt { font-size: 1.15rem; font-weight: 700; }
:lang(zh-Hant) .btn, :lang(zh-Hant) .textlink, :lang(zh-Hant) .seg label { font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
:lang(zh-Hant) .eyebrow, :lang(zh-Hant) .pill, :lang(zh-Hant) .field span, :lang(zh-Hant) .seg legend, :lang(zh-Hant) .mail { font-family: var(--body); letter-spacing: .12em; font-size: .8rem; }
