:root {
  --bg: #070b12;
  --bg-elevated: #0e1624;
  --surface: rgba(18, 28, 44, 0.72);
  --text: #eef3f9;
  --muted: #93a4b8;
  --mint: #3dffa8;
  --mint-2: #1ec8ff;
  --glow: rgba(61, 255, 168, 0.35);
  --line: rgba(147, 164, 184, 0.16);
  --font: "Sora", "Noto Sans TC", system-ui, sans-serif;
  --display: "Outfit", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.logo span {
  background: linear-gradient(120deg, var(--mint), var(--mint-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.topbar nav a:hover { color: var(--text); }

.lang { font-size: 0.82rem; color: var(--muted); }
.lang a { color: var(--mint); margin-left: 0.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--mint), #2ad4c0);
  color: #061018;
  box-shadow: 0 10px 36px var(--glow);
}

.btn-ghost {
  border-color: rgba(61, 255, 168, 0.35);
  color: var(--mint);
  background: rgba(61, 255, 168, 0.06);
}

.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(61, 255, 168, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 30%, rgba(30, 200, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 70%, rgba(61, 255, 168, 0.08), transparent 45%),
    linear-gradient(180deg, #070b12 0%, #0a1220 50%, #070b12 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(147, 164, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 164, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}

.hero-orb.a {
  width: 280px;
  height: 280px;
  background: var(--mint);
  top: 18%;
  left: 12%;
  opacity: 0.12;
}

.hero-orb.b {
  width: 320px;
  height: 320px;
  background: var(--mint-2);
  bottom: 10%;
  right: 8%;
  opacity: 0.14;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(61, 255, 168, 0.3);
  border-radius: 999px;
  background: rgba(61, 255, 168, 0.08);
  animation: rise 0.8s 0.1s both;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1.1rem;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #fff 20%, var(--mint) 55%, var(--mint-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 36em;
  margin: 0 auto 2rem;
  animation: rise 0.9s 0.15s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: rise 0.9s 0.25s both;
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 0.6rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.section > .sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 46em;
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.75rem;
  margin: 0 0 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 0.35rem;
}

.about-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.about-facts strong { color: var(--text); font-weight: 600; }

@media (max-width: 700px) {
  .about-facts { grid-template-columns: 1fr; }
}

.about-story {
  max-width: 46em;
  margin: 0 0 2rem;
}

.about-story p {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-story p:last-child { margin-bottom: 0; }
.about-story strong { color: var(--text); font-weight: 600; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.about-pillars article h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-pillars article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .about-pillars { grid-template-columns: 1fr; gap: 1.35rem; }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.4rem;
}

.panel + .panel { margin-top: 1rem; }

.panel-lead {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.bullets {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
}

.bullets li { margin: 0.45rem 0; }
.bullets strong { color: var(--text); font-weight: 600; }

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

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

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

th {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(61, 255, 168, 0.05);
}

td { color: var(--muted); }
td strong { color: var(--text); }
tr:last-child td { border-bottom: none; }

.products {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 780px) {
  .products { grid-template-columns: 1fr 1fr; }
}

.product {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(61, 255, 168, 0.07), transparent 45%),
    var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(30, 200, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 255, 168, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.product .ch {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.product h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.product p {
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.product ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.9rem;
}

.product ul li { margin: 0.3rem 0; }

.product .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.why {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 780px) {
  .why { grid-template-columns: repeat(3, 1fr); }
}

.why article {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 36, 0.65);
  transition: border-color 0.2s;
}

.why article:hover { border-color: rgba(61, 255, 168, 0.3); }

.why .num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.why h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.why p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quote {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--mint);
  background: rgba(61, 255, 168, 0.06);
  border-radius: 0 14px 14px 0;
  color: var(--text);
  font-size: 1.05rem;
}

.quote strong { color: var(--mint); }

.note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-band {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 5.5rem;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(61, 255, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 50% at 20% 0%, rgba(30, 200, 255, 0.1), transparent 50%);
  z-index: 0;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 32em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer strong { color: var(--text); }

@media (max-width: 640px) {
  .topbar nav .nav-hide { display: none; }
}
