:root {
  --bg: #050607;
  --bg-soft: #0a0d0c;
  --surface: #101413;
  --surface-2: #171b19;
  --paper: #f4f7f4;
  --paper-soft: #e9eee9;
  --ink: #f8fbf7;
  --ink-dark: #101412;
  --muted: #aeb8b1;
  --muted-dark: #59645e;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(16, 20, 18, 0.14);
  --cyan: #3fe7f0;
  --lime: #b8ff5b;
  --coral: #ff8068;
  --amber: #f3c85b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 40px, var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.05);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-links a,
.nav-parent {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active,
.nav-parent:hover,
.nav-parent.active,
.nav-item.open .nav-parent {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav-parent svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.nav-item.open .nav-parent svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 10, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  min-height: 38px;
  justify-content: space-between;
  color: var(--muted);
}

.dropdown-menu a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn svg,
.icon-link svg,
.menu-toggle svg,
.nav-parent svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

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

.btn-primary {
  color: #07100f;
  background: var(--lime);
  border-color: var(--lime);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

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

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

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  margin-bottom: 22px;
  font-size: 4.8rem;
  font-weight: 850;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.35rem;
  font-weight: 820;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 780;
}

.lead {
  color: var(--muted);
  font-size: 1.13rem;
}

.muted {
  color: var(--muted);
}

.dark-muted {
  color: var(--muted-dark);
}

.home-hero {
  min-height: calc(100vh - 138px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.8) 42%, rgba(5, 6, 7, 0.2) 100%),
    url("hero-interface.png");
  background-position: center;
  background-size: cover;
}

.hero-grid {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

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

.hero-copy h1 {
  max-width: 830px;
}

.hero-copy .lead {
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.hero-proof div {
  min-height: 90px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.hero-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.index-links {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.index-links .container {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow-x: auto;
}

.index-links a {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.92rem;
}

.index-links a:hover {
  color: var(--lime);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.card-pad {
  padding: 26px;
}

.card h3 {
  color: var(--ink);
}

.service-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .tag {
  color: var(--lime);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.icon-chip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.05);
}

.icon-chip svg {
  width: 20px;
  height: 20px;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: start;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.metric-strip div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--lime);
  font-size: 1.45rem;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.light-band {
  background: var(--paper);
  color: var(--ink-dark);
}

.light-band .eyebrow {
  color: #08777d;
}

.light-band .lead,
.light-band .muted {
  color: var(--muted-dark);
}

.light-band .card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.light-band .card h3 {
  color: var(--ink-dark);
}

.work-card {
  overflow: hidden;
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101413;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.04);
}

.work-card:nth-child(2) .work-visual img {
  object-position: 30% 50%;
}

.work-card:nth-child(3) .work-visual img {
  object-position: 74% 50%;
}

.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0) 25%, rgba(5, 6, 7, 0.52) 100%);
}

.work-meta {
  padding: 22px;
}

.work-meta .pill-row {
  margin-top: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.1;
}

.light-band .pill {
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

.process-list {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.process-item::before {
  content: "0" counter(step);
  color: var(--lime);
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.1;
}

.pricing-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(184, 255, 91, 0.64);
}

.price {
  margin: 18px 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 850;
}

.light-band .price {
  color: var(--ink-dark);
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: var(--muted);
}

.light-band .check-list li {
  color: var(--muted-dark);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
  transform: rotate(-45deg);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.66)),
    url("hero-interface.png");
  background-position: center;
  background-size: cover;
}

.page-hero .container {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.page-hero-copy {
  max-width: 790px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

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

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

th {
  color: var(--ink-dark);
  font-size: 0.92rem;
}

td {
  color: var(--muted-dark);
}

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

.article-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: space-between;
}

.article-card time {
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 780;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.35rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(63, 231, 240, 0.76);
}

.form-status {
  min-height: 24px;
  color: var(--lime);
  font-weight: 700;
}

.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-inner p {
  max-width: 680px;
  color: var(--muted);
}

.site-footer {
  padding: 44px 0;
  background: #030404;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.copyright {
  margin: 20px 0 0;
  color: #68726c;
  font-size: 0.86rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 780;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stack-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.platform-card {
  scroll-margin-top: 96px;
}

.legal-content {
  max-width: 900px;
}

.legal-content .card {
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 1.45rem;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-content li {
  margin: 8px 0;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.65rem;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 7, 0.97);
  }

  .nav-links.open a,
  .nav-links.open .nav-parent {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links.open .nav-item {
    display: grid;
  }

  .nav-links.open .nav-parent {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-links.open .dropdown-menu {
    position: static;
    min-width: 0;
    display: none;
    margin: -2px 0 8px 16px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links.open .nav-item.open .dropdown-menu {
    display: grid;
  }

  .nav-links.open .dropdown-menu a {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }

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

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

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .container,
  .hero-grid {
    width: min(100% - 28px, var(--max));
  }

  .brand small {
    display: none;
  }

  .home-hero {
    min-height: auto;
    background-position: 64% center;
  }

  .hero-grid {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-proof,
  .metric-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-proof div:last-child,
  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

  .section-tight {
    padding: 50px 0;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .index-links .container {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .nav-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .nav-actions .btn-primary {
    flex: 1;
  }

  .nav-shell {
    gap: 12px;
  }
}
