: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.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;
    }
  }
}
