:root {
  color-scheme: dark;
  --bg: #071014;
  --ink: #f5fbff;
  --muted: #a6b7bd;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --cyan: #49e4ff;
  --mint: #5dffb3;
  --coral: #ff7a68;
  --gold: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(73, 228, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 85% 8%, rgba(255, 122, 104, 0.18), transparent 24rem),
    linear-gradient(135deg, #071014 0%, #0a1a1f 48%, #111114 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), transparent 78%);
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(7, 16, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.28), rgba(93, 255, 179, 0.14));
  box-shadow: 0 12px 34px rgba(73, 228, 255, 0.1);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 20px var(--mint);
  content: "";
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.96;
  font-weight: 900;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 228, 255, 0.46);
  background: var(--panel-strong);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: #051014;
}

.device-stage {
  position: relative;
  min-height: 520px;
}

.phone {
  position: absolute;
  top: 24px;
  right: 9%;
  width: min(290px, 72vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  min-height: 500px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(7, 16, 20, 0.18), rgba(7, 16, 20, 0.82)),
    url("../img/icon-640.jpg") center / cover;
}

.phone-ui {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(7, 16, 20, 0.94), rgba(7, 16, 20, 0.18));
}

.phone-ui strong {
  font-size: 28px;
  line-height: 1.05;
}

.phone-ui span {
  margin-top: 10px;
  color: #d7e6e8;
  line-height: 1.5;
}

.signal-card {
  position: absolute;
  left: 0;
  bottom: 44px;
  width: min(310px, 76vw);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card b {
  display: block;
  margin-bottom: 10px;
}

.meter {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.25fr;
  gap: 7px;
}

.meter span {
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
}

.meter span:nth-child(2) {
  background: var(--gold);
}

.meter span:nth-child(3) {
  background: var(--coral);
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 255, 179, 0.44);
  background: rgba(255, 255, 255, 0.105);
}

.tile small {
  color: var(--mint);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile h3 {
  margin-top: 18px;
  font-size: 24px;
}

.tile p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  padding: 54px 0 80px;
}

.legal-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
}

.document {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.document h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.document h2 {
  margin-top: 34px;
  font-size: 24px;
}

.document p,
.document li {
  color: var(--muted);
  line-height: 1.8;
}

.document ul {
  padding-left: 1.2rem;
}

.redirect {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.redirect-panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.redirect-panel img {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 18px;
  object-fit: cover;
}

.redirect-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.redirect-panel h1 {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.08;
}

.redirect-panel .actions {
  justify-content: center;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: float 6s ease-in-out infinite;
  }

  .signal-card {
    animation: float 7s ease-in-out infinite reverse;
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-14px);
    }
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section-heading,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .device-stage {
    min-height: 560px;
  }

  .phone {
    right: 50%;
    transform: translateX(50%);
  }

  .signal-card {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .legal-nav {
    position: static;
  }

  .document {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  @media (prefers-reduced-motion: no-preference) {
    .phone,
    .signal-card {
      animation: none;
    }
  }
}

/* --- 2026-10 home page refresh --- */
h1.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
}

.nobr {
  display: inline-block;
  white-space: nowrap;
}

.lead strong {
  color: var(--ink);
}

.nav-links a.lang {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.phone-ui span + span {
  margin-top: 4px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
}

.signal-card {
  bottom: 56px;
  width: min(236px, 70vw);
}

.phone-screen.shot-battle {
  aspect-ratio: 9 / 16;
  min-height: 0;
  background: url("../img/shots/battle.jpg") center / cover;
}

.shots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.shot {
  display: block;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.shot:hover img {
  transform: translateY(-4px);
  border-color: rgba(93, 255, 179, 0.44);
}

.shot span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.chip::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  content: "";
}

.zh-name {
  color: var(--muted);
  font-size: 0.6em;
  font-weight: 700;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.facts {
  margin: 0;
  padding: 6px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.facts div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  line-height: 1.55;
}

.facts a,
.document a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.tile.compact {
  min-height: 0;
}

.tile.compact h3 {
  margin-top: 14px;
  font-size: 22px;
}

div.tile:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.note {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  background: rgba(93, 255, 179, 0.06);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.brand-mark {
  background: rgba(255, 255, 255, 0.06);
}

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

@media (max-width: 1040px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .split,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .facts div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .device-stage {
    min-height: 690px;
  }

  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58%;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .shot {
    scroll-snap-align: start;
  }

  .signal-card {
    bottom: 0;
    width: min(290px, 78vw);
  }
}
