:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #08111f;
  --muted: #5c6675;
  --line: #dfe6ef;
  --navy: #071327;
  --navy-2: #0e2442;
  --blue: #1e6bff;
  --violet: #6657ff;
  --cyan: #58d6ff;
  --shadow: 0 18px 48px rgba(7, 19, 39, 0.1);
  --radius: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
}

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

ul {
  margin: 0;
  padding-left: 1.15rem;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.88);
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #263244;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
}

.button {
  padding: 12px 22px;
  border: 1px solid transparent;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 14px 28px rgba(30, 107, 255, 0.25);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.button-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(30, 107, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.9fr);
  gap: 60px;
  align-items: center;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.workflow-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(160deg, #0a1528, #0d2749 58%, #101827);
  color: #fff;
  box-shadow: 0 28px 80px rgba(7, 19, 39, 0.26);
}

.main-card {
  padding: 26px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #c7d8f8;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(88, 214, 255, 0.14);
}

.flow-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.flow-row.active {
  background: rgba(30, 107, 255, 0.18);
}

.flow-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
  font-weight: 800;
}

.flow-row strong,
.flow-row small {
  display: block;
}

.flow-row small {
  color: #b5c3d8;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.mini-dashboard div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.mini-dashboard span,
.floating-card span {
  display: block;
  color: #b8c8df;
  font-size: 0.8rem;
}

.mini-dashboard strong,
.floating-card strong {
  display: block;
  margin-top: 4px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 190px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.9);
  color: #fff;
  box-shadow: var(--shadow);
}

.floating-card.one {
  top: 34px;
  right: -8px;
}

.floating-card.two {
  left: -16px;
  bottom: 42px;
}

.trust {
  padding: 30px 0;
}

.trust-grid,
.card-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

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

.trust-item,
.service-card,
.process-step,
.case-card,
.audience-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(7, 19, 39, 0.045);
}

.trust-item {
  padding: 24px;
}

.trust-item h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.trust-item p,
.section-heading p,
.service-card li,
.process-step p,
.case-card p,
.why-list p,
.contact-panel p {
  color: var(--muted);
}

.line-icon {
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

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

.service-card {
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 107, 255, 0.26);
  box-shadow: var(--shadow);
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--blue);
}

.service-card li + li {
  margin-top: 8px;
}

.section-muted {
  background: #eef3f9;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 52px;
  align-items: start;
}

.audience-list {
  display: grid;
  gap: 14px;
}

.audience-item {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
}

.audience-item span {
  color: var(--muted);
}

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

.process-step {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.process-step span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark .section-heading p,
.section-dark .case-card p {
  color: #b8c8df;
}

.section-dark .eyebrow {
  color: var(--cyan);
}

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

.case-card {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.case-card strong {
  color: #fff;
}

.why-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.why-list p {
  position: relative;
  margin: 0;
  padding-left: 24px;
}

.why-list p::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.contact {
  padding-top: 0;
}

.contact-panel {
  padding: 58px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(30, 107, 255, 0.9), rgba(102, 87, 255, 0.86)),
    var(--navy);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(30, 107, 255, 0.24);
}

.contact-panel p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-actions {
  justify-content: center;
  margin: 28px 0 18px;
}

.email-link {
  font-weight: 800;
  word-break: break-word;
}

.site-footer {
  padding: 34px 0;
  background: #050b16;
  color: #bdc7d5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr;
  gap: 20px;
  align-items: center;
  font-size: 0.92rem;
}

.site-footer strong,
.site-footer a {
  display: block;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(30, 107, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-grid,
  .split-layout,
  .why-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .trust-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .nav-wrap {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
    right: 14px;
    left: 14px;
  }

  .hero-grid {
    gap: 38px;
  }

  .main-card {
    padding: 20px;
  }

  .trust-grid,
  .services-grid,
  .process-grid,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mini-dashboard {
    grid-template-columns: 1fr;
  }

  .why-panel,
  .contact-panel {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-grid p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
