:root {
  color-scheme: dark;
  --bg: #050b12;
  --bg-soft: #071421;
  --panel: rgba(9, 22, 35, 0.82);
  --panel-solid: #0b1a2a;
  --panel-high: rgba(14, 34, 52, 0.94);
  --line: rgba(138, 199, 255, 0.2);
  --line-strong: rgba(61, 210, 255, 0.5);
  --text: #f4f9ff;
  --text-soft: #c9d9e7;
  --muted: #8ea6b9;
  --accent: #28c8ff;
  --accent-soft: #80ecff;
  --accent-green: #6ff5d2;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  font-family:
    "HarmonyOS Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(40, 200, 255, 0.26), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(111, 245, 210, 0.12), transparent 28%),
    linear-gradient(135deg, #061321 0%, #050b12 50%, #081728 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(131, 213, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 213, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 50% 120%, rgba(40, 200, 255, 0.1), transparent 42%);
}

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

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 1520px);
  height: 100dvh;
  margin: 0 auto;
  gap: clamp(10px, 1.3vw, 18px);
  overflow: hidden;
  padding: clamp(14px, 2vw, 28px);
}

.site-header,
.site-footer,
.tech-board,
.subpage-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(62px, 7.4vh, 84px);
  gap: 18px;
  border-radius: var(--radius);
  padding: 12px clamp(14px, 1.8vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(128, 236, 255, 0.48);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(40, 200, 255, 0.24), rgba(111, 245, 210, 0.08)),
    #102236;
  color: var(--accent-soft);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-copy strong {
  overflow: hidden;
  font-size: clamp(17px, 1.35vw, 23px);
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 14px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-nav a,
.site-nav span {
  border: 1px solid rgba(138, 199, 255, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(40, 200, 255, 0.12);
  color: var(--accent-soft);
}

.one-screen-stage,
.subpage-stage {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
  align-items: stretch;
  min-height: 0;
  gap: clamp(16px, 2vw, 28px);
}

.hero-copy,
.subpage-copy {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 clamp(12px, 2vh, 18px);
  border: 1px solid rgba(40, 200, 255, 0.38);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(40, 200, 255, 0.11);
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #96ecff 54%, #28c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 620px;
  margin: clamp(16px, 2.2vh, 24px) 0 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.68;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.8vh, 30px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 850;
  white-space: nowrap;
}

.button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: linear-gradient(135deg, #6be0ff, #1ba6df);
  color: #03101a;
}

.button-secondary {
  border-color: rgba(128, 236, 255, 0.3);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: clamp(18px, 3vh, 30px) 0 0;
  gap: 10px;
}

.hero-meta div,
.page-quick-points li,
.board-grid article,
.subpage-card {
  border: 1px solid rgba(138, 199, 255, 0.16);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(5, 13, 22, 0.58);
}

.hero-meta div {
  min-width: 0;
  padding: 12px 14px;
}

.hero-meta dt,
.subpage-card span,
.board-index,
.board-grid span {
  color: var(--accent-soft);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-meta dd {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.tech-board {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(170px, 0.9fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(18px, 2vw, 28px);
}

.tech-board::before {
  content: "";
  position: absolute;
  inset: -18% -18% auto auto;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(40, 200, 255, 0.24), transparent 64%);
}

.tech-board::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(128, 236, 255, 0.09);
  border-radius: 24px;
  pointer-events: none;
}

.board-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--accent-soft);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-topline strong {
  color: var(--accent-green);
  font-size: 12px;
}

.board-focus {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  margin-top: 18px;
  border: 1px solid rgba(40, 200, 255, 0.22);
  border-radius: 22px;
  padding: clamp(18px, 2vw, 28px);
  background:
    linear-gradient(140deg, rgba(40, 200, 255, 0.18), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(5, 13, 22, 0.78);
  background-size: auto, 100% 40px, auto;
}

.board-focus h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 2.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.board-focus p,
.board-grid p,
.subpage-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
  gap: 12px;
  margin-top: 12px;
}

.board-grid article,
.subpage-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(14px, 1.4vw, 18px);
}

.board-grid h3,
.subpage-card h3 {
  margin: 10px 0 0;
  font-size: clamp(17px, 1.25vw, 22px);
  letter-spacing: -0.035em;
}

.board-grid p,
.subpage-card p {
  font-size: 13px;
}

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  align-items: stretch;
  min-height: 0;
  gap: clamp(16px, 2vw, 28px);
}

.subpage-copy h1 {
  max-width: 720px;
  font-size: clamp(40px, 4.8vw, 72px);
}

.page-quick-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.page-quick-points li {
  padding: 9px 13px;
  color: var(--text-soft);
  font-size: 13px;
}

.subpage-panel {
  display: grid;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(18px, 2vw, 26px);
}

.subpage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--accent-soft);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subpage-card-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subpage-card.featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(40, 200, 255, 0.16), rgba(255, 255, 255, 0.025)),
    rgba(5, 13, 22, 0.72);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
  border-radius: 999px;
  padding: 11px 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--accent-soft);
  font-weight: 700;
}

.site-footer p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .subpage-layout {
    grid-template-columns: 1fr;
  }

  .tech-board,
  .subpage-panel {
    display: none;
  }

  .hero-copy,
  .subpage-copy {
    align-self: center;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    gap: 8px;
    padding: 10px;
  }

  .site-header {
    min-height: 56px;
    border-radius: 20px;
    padding: 9px 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 14px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy span {
    display: none;
  }

  .eyebrow {
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
  }

  h1,
  .subpage-copy h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.58;
  }

  .hero-actions,
  .page-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-meta div {
    padding: 9px 11px;
  }

  .hero-meta dt,
  .hero-meta dd {
    font-size: 11px;
  }

  .page-quick-points {
    gap: 8px;
    margin-top: 14px;
  }

  .page-quick-points li {
    padding: 7px 10px;
    font-size: 12px;
  }

  .site-footer {
    display: grid;
    min-height: 0;
    border-radius: 18px;
    padding: 9px 11px;
    font-size: 11px;
  }
}

@media (max-height: 720px) and (min-width: 1121px) {
  .page-shell {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-header {
    min-height: 58px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(38px, 4.6vw, 66px);
  }

  .hero-description {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions,
  .page-actions,
  .hero-meta {
    margin-top: 14px;
  }

  .tech-board {
    grid-template-rows: auto minmax(130px, 0.85fr) minmax(0, 1fr);
  }

  .board-focus p,
  .board-grid p,
  .subpage-card p {
    display: none;
  }

  .site-footer {
    min-height: 46px;
  }
}

@media (max-height: 680px) and (max-width: 640px) {
  .hero-meta,
  .page-quick-points {
    display: none;
  }

  .site-footer {
    font-size: 10px;
  }
}
