/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

/* ===== tokens ===== */
:root {
  --ink: #071A2B;
  --navy: #0D2B45;
  --trench: #123F4A;
  --cream: #F2E7D5;
  --brown: #1C1712;
  --signal: #FF6A2A;
  --cyan: #3DF2D0;
  --mist: #9FB6C8;
  --amber: #FFC857;
  --gold: #E8D9BF;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --cut: 14px;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== base ===== */
body {
  --line: rgba(159, 182, 200, .16);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -6%, rgba(255, 106, 42, .10), transparent 70%),
    radial-gradient(760px 520px at 4% 6%, rgba(61, 242, 208, .09), transparent 70%),
    linear-gradient(rgba(159, 182, 200, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 182, 200, .045) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -.005em; }
p { max-width: 66ch; }
strong { color: var(--cream); }
::selection { background: var(--signal); color: var(--brown); }

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

/* ===== layout helpers ===== */
.bp-wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.bp-section { padding-block: clamp(44px, 6.5vw, 88px); position: relative; }
.bp-section--tight { padding-block: clamp(26px, 4vw, 48px); }

.bp-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.bp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .bp-grid--2, .bp-grid--3 { grid-template-columns: 1fr; }
}

.bp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== typography utilities ===== */
.bp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.bp-h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.bp-lede {
  margin-top: 16px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: var(--mist);
  max-width: 60ch;
}
.bp-annot {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(159, 182, 200, .62);
}
.bp-num {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.bp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
  border: 1px solid rgba(61, 242, 208, .4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

/* ===== surfaces & panels ===== */
.bp-paper {
  background: linear-gradient(158deg, var(--cream) 0%, var(--cream) 62%, var(--gold) 100%);
  color: var(--brown);
  padding: clamp(22px, 3.4vw, 42px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.bp-paper h2, .bp-paper h3 { color: var(--brown); }
.bp-paper p { color: #3B322A; }

.bp-panel {
  background: var(--navy);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 30px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  position: relative;
}
.bp-panel--cut { background: var(--trench); }

.bp-band {
  background: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(18px, 2.6vw, 30px);
}
.bp-rule {
  height: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, rgba(159, 182, 200, .30) 0 1px, transparent 1px 10px);
}

/* ===== buttons ===== */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--signal);
  color: var(--brown);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.bp-btn:hover { background: var(--amber); transform: translateY(-2px); }
.bp-btn--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(61, 242, 208, .55);
}
.bp-btn--ghost:hover { background: rgba(61, 242, 208, .12); color: var(--cream); }

/* ===== breadcrumb ===== */
.bp-crumb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--mist); }
.bp-crumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-crumb__item { display: inline-flex; align-items: center; gap: 8px; }
.bp-crumb__item + .bp-crumb__item::before { content: "/"; color: rgba(159, 182, 200, .45); }
.bp-crumb__link { transition: color .16s var(--ease); }
.bp-crumb__link:hover { color: var(--cyan); }

/* ===== legend list ===== */
.bp-legend { display: grid; gap: 14px; }
.bp-legend__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(159, 182, 200, .22);
}
.bp-legend__dot {
  width: 9px; height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 242, 208, .18);
}
.bp-legend__item:nth-child(even) .bp-legend__dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 200, 87, .16); }

/* ===== figure / image containers ===== */
.bp-figure {
  margin: 0;
  background: var(--trench);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.bp-figure__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background-image:
    radial-gradient(circle at 28% 18%, rgba(61, 242, 208, .20), transparent 58%),
    radial-gradient(circle at 82% 88%, rgba(255, 106, 42, .18), transparent 60%),
    linear-gradient(140deg, var(--navy), var(--trench));
  color: rgba(159, 182, 200, .72);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.bp-figure__media img,
.bp-figure__media svg { width: 100%; height: 100%; object-fit: cover; }
.bp-figure__cap {
  padding: 11px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
  border-top: 1px solid var(--line);
  background: rgba(7, 26, 43, .55);
}
.bp-figure--wide .bp-figure__media { aspect-ratio: 21 / 9; }
.bp-figure--route .bp-figure__media { aspect-ratio: 4 / 3; }
.bp-figure--device .bp-figure__media { aspect-ratio: 3 / 4; }

/* ===== tabs ===== */
.bp-tabs { border-bottom: 1px solid var(--line); }
.bp-tabs__list { display: flex; flex-wrap: wrap; gap: 4px; }
.bp-tabs__tab {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.bp-tabs__tab:hover { color: var(--cream); background: rgba(61, 242, 208, .08); }
.bp-tabs__tab[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--signal); }
.bp-tabs__panel { padding-top: 22px; }
.bp-tabs__panel[hidden] { display: none; }

/* ===== reveal ===== */
.bp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.bp-reveal.is-visible { opacity: 1; transform: none; }

/* ===== skip link ===== */
.bp-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  background: var(--cyan);
  color: var(--brown);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.bp-skip:focus { transform: translateY(0); }

/* ===== header ===== */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--cream);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.bp-header[data-scrolled] {
  background-color: rgba(13, 43, 69, .95);
  border-bottom-color: rgba(61, 242, 208, .24);
  box-shadow: 0 24px 48px -34px rgba(0, 0, 0, .95);
}
@supports (backdrop-filter: blur(8px)) {
  .bp-header[data-scrolled] { backdrop-filter: blur(10px); }
}

.bp-header__rail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
  border-bottom: 1px solid rgba(159, 182, 200, .14);
}
.bp-header__railinner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
}
.bp-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  letter-spacing: .16em;
  max-width: none;
}
.bp-sync__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: bp-pulse 3.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}
.bp-coord { margin-left: auto; color: rgba(159, 182, 200, .58); letter-spacing: .12em; }
.bp-utility {
  margin-left: 14px;
  color: var(--cream);
  letter-spacing: .14em;
  border-bottom: 1px solid rgba(61, 242, 208, .45);
  padding-bottom: 1px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.bp-utility:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.bp-header__barinner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  min-height: clamp(62px, 7vw, 80px);
  padding-block: 10px;
}

.bp-brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bp-brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--signal);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.bp-brand__text { display: block; }
.bp-brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: .02em;
}
.bp-brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.bp-nav { margin-inline: auto; }
.bp-nav__list { display: flex; align-items: center; gap: 2px; counter-reset: navidx; }
.bp-nav__item { display: block; }
.bp-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--mist);
  transition: color .18s var(--ease);
}
.bp-nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 200, 87, .60);
  transition: color .18s var(--ease);
}
.bp-nav__link::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.bp-nav__link:hover { color: var(--cream); }
.bp-nav__link:hover::after { transform: scaleX(1); }
.bp-nav__link[aria-current="page"] { color: var(--cream); }
.bp-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--signal); }
.bp-nav__link[aria-current="page"]::before { color: var(--signal); }

.bp-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--signal);
  color: var(--brown);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.bp-cta:hover { background: var(--amber); transform: translateY(-1px); }

.bp-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid rgba(159, 182, 200, .42);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.bp-navtoggle:hover { border-color: var(--cyan); color: var(--cyan); }
.bp-navtoggle__bars { display: grid; gap: 4px; width: 16px; }
.bp-navtoggle__bars span { display: block; height: 2px; background: var(--cyan); transition: transform .2s var(--ease); }
.bp-header[data-open] .bp-navtoggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.bp-header[data-open] .bp-navtoggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }
.bp-navtoggle__label { font-family: var(--font-mono); }

.bp-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(159, 182, 200, .12);
  overflow: hidden;
}
.bp-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}

@media (max-width: 1119px) {
  .bp-cta { display: none; }
}
@media (max-width: 899px) {
  .bp-coord { display: none; }
  .bp-utility { margin-left: auto; }
  .bp-header__railinner { gap: 10px; min-height: 32px; }
  .bp-navtoggle { display: inline-flex; }
  .bp-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin-inline: 0;
    padding: 10px var(--gutter) 26px;
    background: var(--navy);
    border-top: 1px solid rgba(61, 242, 208, .28);
    box-shadow: 0 36px 64px -36px rgba(0, 0, 0, .95);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .bp-header[data-open] .bp-nav { opacity: 1; visibility: visible; transform: none; }
  .bp-nav__list { display: block; }
  .bp-nav__link {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(159, 182, 200, .14);
  }
  .bp-nav__link::after { display: none; }
  .bp-nav__link::before { font-size: 11px; }
  .bp-nav__link[aria-current="page"] { color: var(--signal); }
  .bp-nav__link[aria-current="page"]::before { color: var(--signal); }
}
@media (max-width: 640px) {
  .bp-brand__tag { display: none; }
  .bp-brand__mark { width: 34px; height: 34px; font-size: 12px; }
  .bp-brand__name { font-size: 16px; }
  .bp-sync { letter-spacing: .1em; font-size: 10.5px; }
}

/* ===== footer ===== */
.bp-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(61, 242, 208, .22);
}
.bp-footer__rule {
  height: 12px;
  background: repeating-linear-gradient(-45deg, rgba(61, 242, 208, .30) 0 1px, transparent 1px 10px);
  border-bottom: 1px solid rgba(159, 182, 200, .14);
}
.bp-footer .bp-wrap { padding-block: clamp(34px, 5vw, 64px); }

.bp-footer__mast { margin-bottom: clamp(26px, 4vw, 48px); }
.bp-footer__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: .01em;
  max-width: 24ch;
}
.bp-footer__note {
  margin-top: 12px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 56ch;
}
.bp-footer__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(159, 182, 200, .66);
}

.bp-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  padding-top: clamp(20px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.bp-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.bp-footer__coltitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.bp-footer__list { display: grid; gap: 9px; }
.bp-footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.bp-footer__link:hover { color: var(--cream); transform: translateX(3px); }
.bp-footer__contact { min-width: 0; }
.bp-footer__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
  max-width: 34ch;
}

.bp-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--cream);
  border-bottom: 1px dashed rgba(159, 182, 200, .38);
  transition: color .16s var(--ease), border-color .16s var(--ease);
  text-align: left;
}
.bp-copy:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.bp-copy__hint {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}
.bp-copy.is-copied { color: var(--cyan); border-bottom-color: var(--cyan); }
.bp-copy.is-copied .bp-copy__hint { color: var(--cyan); }

.bp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(159, 182, 200, .72);
}
.bp-footer__legallist { display: flex; flex-wrap: wrap; gap: 18px; }
.bp-footer__icp { margin-left: auto; max-width: none; }
.bp-footer__copy { color: rgba(159, 182, 200, .56); max-width: none; }

@media (max-width: 899px) {
  .bp-footer__main { grid-template-columns: 1fr; }
  .bp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-footer__icp { margin-left: 0; }
}
@media (max-width: 520px) {
  .bp-footer__cols { grid-template-columns: 1fr; }
  .bp-footer__legal { font-size: 11px; }
}

/* ===== motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bp-reveal { opacity: 1; transform: none; }
  .bp-progress__bar { transition: none; }
}
