:root {
  --bg: #07091a;
  --bg-2: #0d1130;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --accent: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 20px 60px -20px rgba(79, 70, 229, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 17px;
  letter-spacing: 0.02em;
}

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(50% 40% at 10% 30%, rgba(6, 182, 212, 0.10), transparent 60%);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--brand);
}

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

.btn-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 32px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ─── Section base ─── */
.section {
  padding: 100px 0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Service cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.15em;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card h3 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.card-desc {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags li {
  padding: 6px 12px;
  background: var(--surface-alt);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ─── Extras ─── */
.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.extra {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
}

.extra-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand);
  margin: 0 auto 18px;
}

.extra-icon svg {
  width: 30px;
  height: 30px;
}

.extra h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.extra p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ─── Quality ─── */
.quality {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.q-item {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.q-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.q-num svg {
  width: 18px;
  height: 18px;
}

.q-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.q-item p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ─── CTA ─── */
.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(79, 70, 229, 0.4), transparent 70%),
    radial-gradient(40% 40% at 80% 100%, rgba(6, 182, 212, 0.25), transparent 70%);
  pointer-events: none;
}

.cta .container { position: relative; }

.cta h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta .btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ─── Footer ─── */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-3);
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .extras {
    grid-template-columns: 1fr;
  }
  .quality {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .hero-stats {
    gap: 28px;
  }
  .hero-stats strong {
    font-size: 26px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav a:last-child {
    border-bottom: 0;
    margin-top: 10px;
    text-align: center;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
