:root {
  --navy: #07111c;
  --navy-2: #0c1c2e;
  --ink: #102033;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --cream: #fffaf1;
  --cyan: #2ee6d0;
  --cyan-dim: #149e90;
  --gold: #e2b15a;
  --signal: #ff5d4e;
  --muted: #5d6c7a;
  --line: rgba(16, 32, 51, 0.12);
  --line-light: rgba(243, 239, 230, 0.16);
  --shadow: 0 18px 40px rgba(7, 17, 28, 0.12);
  --font-display: "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --radius: 2px;
  --header-h: 4.5rem;
  --livebar-h: 2.25rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 4000;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.6rem;
}

.live-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: var(--livebar-h);
  padding: 0.35rem 1rem;
  background: #04080e;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-bar a {
  color: var(--gold);
  text-decoration: none;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(46, 230, 208, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(46, 230, 208, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 230, 208, 0);
  }
}

.site-header {
  position: sticky;
  top: var(--livebar-h);
  z-index: 80;
  background: rgba(7, 17, 28, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.15rem;
}

.desktop-nav a,
.nav-sub-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  padding: 0.45rem 0.4rem;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-nav a:hover,
.nav-sub-toggle:hover,
.desktop-nav a.is-active,
.nav-item.is-active > .nav-sub-toggle {
  color: var(--cyan);
}

.nav-item {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s var(--ease);
}

.nav-item:hover .sub-menu,
.nav-item:focus-within .sub-menu,
.nav-item.is-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub-menu a {
  display: block;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  white-space: normal;
}

.sub-menu a:hover,
.sub-menu a.is-active {
  background: var(--navy);
  color: var(--cyan);
}

.btn.header-cta {
  display: none;
}

.menu-toggle {
  margin-left: auto;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-light);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--paper);
  transition: 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 3000;
  background: #050b14;
  color: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu.is-open {
  display: flex !important;
}

body.menu-open .site-header,
body.menu-open .live-bar {
  z-index: 1;
}

.mobile-menu__inner {
  min-height: 100dvh;
  padding: 1.1rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-menu__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.4rem;
  text-decoration: none;
}

.mobile-menu__close {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 2rem;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-light);
}

.mobile-nav a.is-active,
.mobile-nav a:hover {
  color: var(--cyan);
}

.mobile-nav .sub-label {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0;
  padding: 0;
}

.mobile-menu__phones {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.mobile-menu__phones a {
  color: var(--cyan);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 17, 28, 0.2), rgba(7, 17, 28, 0.55)),
    var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 208, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 208, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  font-weight: 800;
  max-width: 14ch;
}

.hero .lede {
  max-width: 42rem;
  color: rgba(243, 239, 230, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hero-frame {
  position: relative;
  border: 1px solid var(--line-light);
  padding: 0.7rem;
}

.hero-frame img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-frame figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.frame-corners {
  position: relative;
}

.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  pointer-events: none;
}

.frame-corners::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.frame-corners::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat {
  border-top: 1px solid var(--line-light);
  padding-top: 0.7rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.stat span {
  font-size: 0.82rem;
  color: rgba(243, 239, 230, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.2s var(--ease);
}

.btn-cta {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cta:hover {
  background: #7ff3e6;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-light);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-dark {
  background: var(--navy);
  color: var(--paper);
}

.btn-dark:hover {
  background: #163047;
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--paper);
}

.section {
  padding: var(--space-5) 0;
}

.section-dark {
  background: var(--navy-2);
  color: var(--paper);
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 16ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

.section-dark .eyebrow {
  color: var(--cyan);
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.section-dark .card {
  background: rgba(255, 250, 241, 0.04);
  border-color: var(--line-light);
  box-shadow: none;
  color: var(--paper);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.45rem;
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--signal);
  margin: 0.4rem 0 0.8rem;
}

.index-card {
  display: flex;
  flex-direction: column;
}

.index-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.prose h2,
.prose h3 {
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.quote {
  border-left: 3px solid var(--cyan);
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 1.15rem;
}

.page-hero {
  background: var(--navy);
  color: var(--paper);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: rgba(243, 239, 230, 0.7);
}

.crumbs a {
  color: var(--cyan);
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--cream);
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.7rem;
  text-align: center;
}

th {
  background: var(--navy);
  color: var(--paper);
  font-weight: 700;
}

th:first-child,
td:first-child {
  text-align: left;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: rgba(7, 17, 28, 0.03);
}

.highlight-col {
  background: rgba(46, 230, 208, 0.16) !important;
}

.price-feature {
  display: grid;
  gap: 1rem;
}

.price-box {
  background: var(--navy);
  color: var(--paper);
  padding: 1.6rem;
}

.price-box .amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: -0.05em;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note,
.form-success,
.form-error {
  font-size: 0.92rem;
}

.form-success {
  color: var(--cyan-dim);
}

.form-error {
  color: var(--signal);
}

.map-placeholder {
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--paper-2);
}

.map-placeholder iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.tool-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.tool-grid {
  display: grid;
  gap: 0.9rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.result-card {
  background: var(--navy);
  color: var(--paper);
  padding: 0.9rem;
}

.result-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.result-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.pass {
  color: var(--cyan-dim);
  font-weight: 700;
}

.fail {
  color: var(--signal);
  font-weight: 700;
}

.score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 10px solid var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 auto 1rem;
}

.blog-grid {
  display: grid;
  gap: 1rem;
}

.blog-card time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.site-footer {
  background: #04080e;
  color: var(--paper);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: rgba(243, 239, 230, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: rgba(243, 239, 230, 0.6);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.partner-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--paper);
}

.footer-brand:hover {
  color: var(--cyan);
}

@media (min-width: 700px) {
  .cards,
  .blog-grid,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-frame img {
    height: 360px;
  }

  .split,
  .price-feature,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.75fr 0.75fr 1fr;
  }

  .hero-grid,
  .cards.three,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 1280px) {
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .btn.header-cta {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .live-dot {
    animation: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
}
