:root {
  --bg: #060d1a;
  --bg-soft: #0d1830;
  --text: #e9f3ff;
  --muted: #9fb6d4;
  --primary: #00d5ff;
  --primary-strong: #4d7dff;
  --card: rgba(14, 30, 56, 0.7);
  --border: rgba(122, 168, 255, 0.3);
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  --live: #34d399;
  --soon: #7dd3fc;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #12254b 0%, var(--bg) 42%), var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  transform: translateZ(0);
  contain: paint;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(0, 213, 255, 0.28) 0%, rgba(0, 213, 255, 0) 70%);
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -160px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -160px;
  background: radial-gradient(circle at center, rgba(77, 125, 255, 0.26) 0%, rgba(77, 125, 255, 0) 70%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(161, 198, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 198, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 13, 26, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.brand-logo {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  display: block;
}

.brand-quote {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.85em;
  max-width: clamp(170px, 30vw, 360px);
  color: #9eb7d6;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity 0.32s ease;
}

.brand-quote.is-fading { opacity: 0.25; }

.nav {
  display: flex;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: auto;
}

#clients[hidden],
.nav a[hidden] {
  display: none !important;
}

.nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: #dff7ff;
  border-color: var(--border);
  background: rgba(77, 125, 255, 0.15);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(9, 20, 41, 0.7);
  color: #dff3ff;
  border-radius: 0.52rem;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(9, 20, 41, 0.7);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #b6cae6;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #eaf7ff;
  background: linear-gradient(130deg, rgba(0, 213, 255, 0.35) 0%, rgba(77, 125, 255, 0.38) 100%);
}

.hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle at center, rgba(0, 213, 255, 0.28) 0%, rgba(0, 184, 255, 0) 72%);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle at center, rgba(77, 125, 255, 0.24) 0%, rgba(77, 125, 255, 0) 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #98f1ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(100deg, #ebfbff 0%, #99d7ff 55%, #8ca8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content > p {
  color: #bad0eb;
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(130deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(224, 248, 255, 0.18), 0 8px 18px rgba(0, 174, 255, 0.35);
}

.btn-ghost {
  border-color: var(--border);
  color: #c8dcff;
  background: rgba(13, 24, 48, 0.62);
}

.btn-danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.hero-card,
.card,
.contact-card {
  background: rgba(14, 30, 56, 0.88);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.2rem 1.3rem;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.05rem;
  color: #b6cceb;
  line-height: 1.65;
}

.visual-panel {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.viz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.viz-chip {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(104, 153, 255, 0.18);
  color: #c9e6ff;
  border: 1px solid rgba(153, 194, 255, 0.28);
}

.viz-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: end;
}

.viz-chart {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 72px;
}

.viz-chart span {
  width: 12px;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, #00c0ff 0%, #007ce8 100%);
  transform-origin: bottom center;
}

.viz-score p {
  margin: 0;
  font-size: 0.72rem;
  color: #8fb0d9;
}

.viz-score strong {
  font-size: 1.05rem;
  color: #d8f3ff;
}

.section { padding: 3rem 0; }

.section-alt {
  background: rgba(11, 22, 44, 0.52);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signal-strip { padding: 0.4rem 0 0.6rem; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.signal-item {
  border: 1px solid var(--border);
  background: rgba(9, 21, 43, 0.72);
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  box-shadow: var(--shadow);
}

.signal-label {
  margin: 0;
  color: #8faccf;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-item strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  color: #e9f8ff;
  text-shadow: 0 0 14px rgba(125, 222, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.section-intro {
  color: var(--muted);
  margin-top: 0.8rem;
  line-height: 1.75;
  max-width: 75ch;
}

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

.card {
  padding: 1rem 1rem 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.55);
}

.card.is-clickable { cursor: pointer; }

.card.is-clickable:focus-visible {
  outline: 2px solid #79d3ff;
  outline-offset: 3px;
}

.card.is-soon {
  cursor: default;
  opacity: 0.88;
}

.card.is-soon:hover { transform: none; }

h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.5rem;
  background: rgba(93, 148, 255, 0.14);
  border: 1px solid rgba(165, 204, 255, 0.3);
  flex: 0 0 auto;
  font-size: 1.25rem;
  color: #dff7ff;
}

.card-icon img,
.card-icon.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.28rem;
}

.card-icon.has-logo {
  padding: 0.18rem;
  overflow: hidden;
}

.card-title {
  min-width: 0;
}

.gradient-1 { background: linear-gradient(135deg, rgba(0, 213, 255, 0.35), rgba(77, 125, 255, 0.22)); }
.gradient-2 { background: linear-gradient(135deg, rgba(77, 125, 255, 0.4), rgba(0, 213, 255, 0.18)); }
.gradient-3 { background: linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(77, 125, 255, 0.22)); }
.gradient-4 { background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(0, 213, 255, 0.2)); }
.gradient-5 { background: linear-gradient(135deg, rgba(251, 113, 133, 0.28), rgba(77, 125, 255, 0.22)); }
.gradient-6 { background: linear-gradient(135deg, rgba(167, 139, 250, 0.32), rgba(0, 213, 255, 0.18)); }

.card-cover {
  height: 132px;
  margin: -1rem -1rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  border-radius: 1rem 1rem 0 0;
}

.card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.pill-row,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-row { margin-top: 1.15rem; }

.pill,
.filter-btn,
.tag {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(93, 148, 255, 0.14);
  padding: 0.42rem 0.8rem;
  color: #d2e8ff;
  font-size: 0.9rem;
}

.filter-btn {
  cursor: pointer;
  font: inherit;
}

.filter-btn.is-active {
  color: #eaf7ff;
  background: linear-gradient(130deg, rgba(0, 213, 255, 0.35) 0%, rgba(77, 125, 255, 0.38) 100%);
  border-color: rgba(153, 194, 255, 0.45);
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  margin-top: 0.75rem;
}

.tag-row { margin-top: 0.75rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-badge.live {
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
}

.status-badge.soon {
  color: #e0f2fe;
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.3);
}

.status-badge.hidden {
  color: #fde68a;
  background: rgba(202, 138, 4, 0.16);
  border-color: rgba(250, 204, 21, 0.3);
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.featured-flag {
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99d7ff;
  font-weight: 700;
}

.contact-card { padding: 1.6rem; }

.contact-card p {
  color: var(--muted);
  margin: 0.6rem 0 1.1rem;
}

.site-footer { padding: 1.1rem 0 1.5rem; }

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.loading,
.error-msg,
.empty-msg {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
  grid-column: 1 / -1;
}

.placeholder-page { padding: 4rem 0 5rem; }

.placeholder-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.placeholder-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.placeholder-card p {
  color: var(--muted);
  line-height: 1.6;
}

@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -14px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes titleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(224, 248, 255, 0.18), 0 8px 18px rgba(0, 174, 255, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(224, 248, 255, 0.28), 0 12px 26px rgba(77, 125, 255, 0.36); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 930px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid,
  .apps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .brand { padding-right: 8.2rem; }

  .nav {
    display: none;
    width: 100%;
    margin: 0.55rem 0 0;
    padding: 0.48rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: rgba(9, 20, 41, 0.94);
    flex-direction: column;
    gap: 0.35rem;
    order: 4;
  }

  .nav.is-open { display: flex; }
  .nav a { display: block; width: 100%; }
  .menu-toggle { display: inline-flex; }

  .header-controls {
    position: absolute;
    top: 0.95rem;
    right: 0;
    z-index: 3;
  }

  .hero { padding-top: 3.8rem; }
  .viz-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { flex-direction: column; align-items: start; }
  .signal-grid { grid-template-columns: 1fr; }
  .brand-logo { width: clamp(130px, 40vw, 190px); }
  .brand-quote { max-width: 56vw; font-size: 0.62rem; }
  .footer-wrap { flex-direction: column; align-items: start; }
}
