:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --blue: #1f6feb;
  --cyan: #0d9488;
  --green: #2f855a;
  --amber: #b7791f;
  --red: #c2410c;
  --shadow: 0 18px 44px rgba(24, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.88);
  background: rgba(246, 247, 249, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    #e8f3ff;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #364153;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  background: #e9edf3;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) 56px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(246, 247, 249, 0.9)),
    radial-gradient(circle at 18% 18%, rgba(31, 111, 235, 0.12), transparent 34%),
    linear-gradient(135deg, #f7fafc, #eef2f7 62%, #e6eef8);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: #344054;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.button.secondary {
  background: white;
}

.hero-panel {
  min-height: 440px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.status-row span {
  color: var(--muted);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.signal-grid span {
  aspect-ratio: 1;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(24, 32, 42, 0.24) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(24, 32, 42, 0.24) 48% 52%, transparent 52%),
    #f2f6fb;
}

.signal-grid span:nth-child(3n) {
  background-color: #edf8f5;
}

.signal-grid span:nth-child(4n) {
  background-color: #fff7ed;
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: #18202a;
  color: white;
}

.metrics div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metrics strong {
  font-size: 44px;
  line-height: 1;
}

.metrics span {
  color: #d9e2ee;
  line-height: 1.6;
}

.topology {
  display: grid;
  justify-items: center;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(24, 32, 42, 0.08);
}

.node {
  width: min(100%, 460px);
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  color: white;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
}

.node span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.isp {
  background: #1f6feb;
}

.firewall {
  background: #c2410c;
}

.core {
  background: #0d9488;
}

.link.vertical {
  width: 3px;
  height: 34px;
  background: #aab4c2;
}

.branch-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.zone {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.zone h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.zone p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.zone.it {
  border-top: 5px solid var(--blue);
}

.zone.dmz {
  border-top: 5px solid var(--amber);
}

.zone.ot {
  border-top: 5px solid var(--red);
}

.zone.guest {
  border-top: 5px solid var(--green);
}

.topology-detailed {
  gap: 0;
  align-items: stretch;
  justify-items: stretch;
}

.topology-row {
  width: 100%;
  display: grid;
  gap: 14px;
}

.wan-row,
.gateway-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wan-row.single-wan {
  grid-template-columns: minmax(0, 1fr);
}

.core-row {
  grid-template-columns: minmax(0, 1fr);
}

.access-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topo-device {
  position: relative;
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.topo-device::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--blue);
}

.topo-device h3 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.topo-device p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.topo-device em {
  display: block;
  color: #374151;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
}

.device-role {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #425166;
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.topo-device.isp::before {
  background: var(--blue);
}

.topo-device.backup::before {
  background: #64748b;
}

.topo-device.gateway::before {
  background: var(--red);
}

.topo-device.controller::before {
  background: var(--amber);
}

.topo-device.core::before {
  background: var(--cyan);
}

.topo-device.access::before {
  background: var(--green);
}

.topology-link {
  position: relative;
  width: 100%;
  min-height: 44px;
}

.topology-link.vertical::before,
.topology-link.split-link::before,
.topology-link.fanout::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #aab4c2;
}

.topology-link.split-link::after,
.topology-link.fanout::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 3px;
  background: #aab4c2;
}

.topology-link.fanout::after {
  left: 10%;
  right: 10%;
}

.segment-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.segment {
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top-width: 5px;
  border-radius: 8px;
  background: white;
}

.segment span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.segment h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.segment p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.segment.it {
  border-top-color: var(--blue);
}

.segment.guest {
  border-top-color: var(--green);
}

.segment.server {
  border-top-color: var(--amber);
}

.segment.ot {
  border-top-color: var(--red);
}

.segment.mgmt {
  border-top-color: #64748b;
}

.tier-controls {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.tier-tab {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  color: #425166;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tier-tab.active {
  color: white;
  background: var(--ink);
}

.tier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.home-tiers .tier-controls,
.home-tiers .tier-summary {
  display: none;
}

.home-tiers .tier-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-tiers .tier-card {
  display: block;
}

.tier-link {
  margin-top: 26px;
}

.tier-card,
.tier-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(24, 32, 42, 0.07);
}

.tier-card {
  display: none;
  min-height: 420px;
  padding: clamp(22px, 3vw, 36px);
}

.tier-card.active {
  display: block;
}

.tier-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tier-title h3 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.tier-title span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.tier-card p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.tier-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}

.tier-card li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
}

.tier-summary {
  align-self: start;
  padding: 24px;
}

.tier-summary h3 {
  margin-bottom: 10px;
}

.tier-summary p,
.tier-summary dd {
  color: var(--muted);
}

.summary-meter {
  height: 12px;
  overflow: hidden;
  margin: 22px 0;
  border-radius: 999px;
  background: #e8edf4;
}

.summary-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 180ms ease;
}

.tier-summary dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tier-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tier-summary dt {
  font-weight: 900;
}

.tier-summary dd {
  margin: 0;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  background: #eef2f7;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.equipment-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(24, 32, 42, 0.07);
}

.equipment-card h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.equipment-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.equipment-card table {
  min-width: 0;
  font-size: 14px;
}

.equipment-card th,
.equipment-card td {
  padding: 11px 8px;
}

.note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  color: #4b3621;
  background: #fff7e6;
  line-height: 1.75;
}

.connection-table {
  display: grid;
  gap: 10px;
}

.connection-table div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 6px 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.connection-table span {
  grid-row: span 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.connection-table strong {
  color: var(--ink);
  font-size: 16px;
}

.connection-table em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #425166;
  background: #f8fafc;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.vlan-list {
  display: grid;
  gap: 10px;
}

.vlan-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 4px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.vlan-list span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.vlan-list strong {
  align-self: end;
}

.vlan-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.timeline h3 {
  margin-bottom: 8px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: #d9e2ee;
  background: #18202a;
}

.footer p {
  margin: 0;
}

.plan-hero {
  padding: 54px clamp(18px, 5vw, 72px) 40px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.plan-hero h1 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 64px);
}

.plan-hero p {
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.plan-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
}

.plan-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(24, 32, 42, 0.07);
}

.boss-section {
  padding-top: 34px;
  padding-bottom: 34px;
  background: #eef2f7;
}

.boss-panel {
  border-color: #b7c7dc;
  background: #ffffff;
}

.boss-panel h2 {
  color: #12365f;
}

.boss-panel p {
  max-width: 1080px;
  font-size: 17px;
  color: #344054;
}

.boss-panel p:last-child {
  margin-bottom: 0;
}

.plan-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.plan-panel p,
.plan-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.plan-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.plan-stack {
  display: grid;
  gap: 16px;
}

.plan-device-list {
  display: grid;
  gap: 10px;
}

.plan-device-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.plan-device-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.plan-device-list strong {
  color: var(--ink);
}

.plan-device-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.equipment-card table {
  table-layout: fixed;
}

.equipment-card th:nth-child(1),
.equipment-card td:nth-child(1) {
  width: 22%;
}

.equipment-card th:nth-child(2),
.equipment-card td:nth-child(2) {
  width: 24%;
}

.equipment-card th:nth-child(3),
.equipment-card td:nth-child(3) {
  width: 12%;
}

.equipment-card th:nth-child(4),
.equipment-card td:nth-child(4) {
  width: 42%;
}

.plan-topology {
  display: grid;
  gap: 0;
  counter-reset: topology-step;
}

.plan-topology div {
  position: relative;
  padding: 15px;
  padding-left: 56px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f8fafc;
}

.plan-topology div + div {
  margin-top: 28px;
}

.plan-topology div::before {
  counter-increment: topology-step;
  content: counter(topology-step);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.plan-topology div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -29px;
  width: 3px;
  height: 28px;
  background: #aab4c2;
}

.plan-topology strong,
.plan-topology span {
  display: block;
}

.plan-topology span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero,
  .tier-layout,
  .split,
  .equipment-grid,
  .home-tiers .tier-layout,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .branch-grid,
  .timeline,
  .metrics,
  .access-row,
  .segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-summary {
    order: -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .branch-grid,
  .timeline,
  .metrics,
  .wan-row,
  .gateway-row,
  .access-row,
  .segment-grid {
    grid-template-columns: 1fr;
  }

  .topology-link.split-link::after,
  .topology-link.fanout::after {
    display: none;
  }

  .tier-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .connection-table div {
    grid-template-columns: 1fr;
  }

  .connection-table span {
    grid-row: auto;
  }

  .tier-title {
    display: grid;
  }

  .tier-title span {
    justify-self: start;
    white-space: normal;
  }
}
