:root {
  --primary: #00A98F;
  --primary-dark: #007F73;
  --primary-light: #DFF7F3;
  --text-dark: #102027;
  --text-muted: #6B7A80;
  --bg-light: #F7FAFA;
  --border-light: #DDE8E6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(16, 32, 39, 0.09);
  --shadow-card: 0 14px 32px rgba(16, 32, 39, 0.07);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(0, 169, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 169, 143, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
}

section {
  scroll-margin-top: 86px;
}

/* Multi-page visibility */
body[data-page] main > section {
  display: none;
}

body[data-page="home"] #home,
body[data-page="services"] #services,
body[data-page="solutions"] #solutions,
body[data-page="cases"] #cases,
body[data-page="about"] #about,
body[data-page="news"] #news,
body[data-page="contact"] #contact {
  display: block;
}

body[data-page]:not([data-page="home"]) main > section {
  padding-top: 142px;
}

/* Utilities */
.section-padding {
  padding: 96px 0;
  position: relative;
}

.section-grid {
  position: relative;
}

.section-grid::before,
.section-padding::before {
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 169, 143, 0.11), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(223, 247, 243, 0.95), transparent 32%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.bg-soft {
  background: rgba(247, 250, 250, 0.88);
}

#services {
  background:
    linear-gradient(90deg, rgba(247, 250, 250, 0.98) 0%, rgba(247, 250, 250, 0.96) 48%, rgba(247, 250, 250, 0.72) 66%, rgba(247, 250, 250, 0.18) 100%),
    url("../images/solution-fintech-real.png") right center / 48% auto no-repeat;
  overflow: hidden;
}

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


#services .section-heading,
#solutions .section-heading,
#cases .section-heading {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#services .section-heading {
  max-width: 720px;
}

#services .row {
  max-width: 760px;
}

#services .row.g-4 {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

.eyebrow {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.section-heading h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-heading p,
.lead-text {
  color: var(--text-muted);
  margin-bottom: 0;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.78rem 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(0, 127, 115, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 16px 30px rgba(0, 169, 143, 0.22);
}

.btn-outline-primary {
  border-color: rgba(0, 127, 115, 0.55);
  color: var(--primary-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  padding: 18px 0;
  transition: box-shadow 0.25s ease, padding 0.25s ease, background 0.25s ease;
}

.navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.08);
  padding: 10px 0;
}

.brand-logo {
  display: block;
}

.brand-mark {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.brand-text small {
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.navbar-nav {
  gap: 18px;
}

.navbar .nav-link {
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 700;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

.navbar .nav-link::after {
  background: var(--primary);
  bottom: 3px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  width: 100%;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.language-switch {
  align-items: center;
  border: 1px solid rgba(0, 127, 115, 0.22);
  border-radius: 999px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
}

.language-link {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  transition: background 0.25s ease, color 0.25s ease;
}

.language-link.active,
.language-link:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Hero */
.hero {
  min-height: 760px;
  padding: 132px 0 48px;
}

.hero h1 {
  font-size: clamp(3rem, 6.7vw, 5.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 26px;
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  line-height: 1.08;
  max-width: 680px;
}

.hero h1 span {
  color: var(--primary-dark);
}

.hero-copy {
  color: var(--text-muted);
  font-size: 1.14rem;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-visual {
  filter: drop-shadow(0 26px 50px rgba(16, 32, 39, 0.1));
  position: relative;
}

.hero-visual::after {
  border: 1px solid rgba(0, 169, 143, 0.3);
  border-radius: 32px;
  content: "";
  inset: 34px 20px 18px 44px;
  position: absolute;
  transform: rotate(-5deg);
  z-index: -1;
}

.hero-stats {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  overflow: hidden;
}

.stat-item {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 132px;
  padding: 22px;
  text-align: center;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.stat-item i {
  color: var(--primary-dark);
  font-size: 1.8rem;
}

.stat-item strong {
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cards */
.service-card,
.news-card,
.form-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card {
  align-items: flex-start;
  backdrop-filter: blur(14px);
  border-radius: 8px;
  display: grid;
  gap: 4px 18px;
  grid-template-columns: 54px 1fr;
  min-height: 112px;
  padding: 22px 24px;
}

.service-card:hover,
.news-card:hover,
.case-card:hover,
.form-card:hover {
  border-color: rgba(0, 169, 143, 0.36);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.service-card i {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 127, 115, 0.58);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 1.4rem;
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 44px;
  justify-content: center;
  margin-bottom: 0;
  width: 44px;
}

.service-card h3,
.case-body h3,
.news-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}

.service-card h3 {
  font-size: 1rem;
  grid-column: 2;
  margin-bottom: 4px;
  min-width: 0;
}

.service-card p {
  font-size: 0.86rem;
  grid-column: 2;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.section-more-link {
  align-items: center;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
  margin-top: 28px;
}

.section-more-link:hover {
  color: var(--primary);
}

.service-card p,
.case-body p,
.news-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Solutions */
.solution-tabs {
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
  white-space: nowrap;
}

.solution-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 800;
  padding: 0.7rem 1.2rem;
}

.solution-tabs .nav-link.active,
.solution-tabs .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tab-content {
  min-height: 520px;
}

.solution-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  min-height: 500px;
  padding: 28px;
  position: relative;
}

.solution-panel > img {
  order: 2;
}

.solution-panel > div {
  order: 1;
}

.solution-panel img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(16, 32, 39, 0.08);
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.solution-panel h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.solution-panel p {
  color: var(--text-muted);
}


.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li {
  color: var(--text-dark);
  font-weight: 700;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  color: var(--primary-dark);
  content: "\F26E";
  font-family: "bootstrap-icons";
  left: 0;
  position: absolute;
  top: 0;
}

/* Cases */
.case-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-card img {
  aspect-ratio: 16 / 7.8;
  object-fit: cover;
  width: 100%;
}

.case-body {
  padding: 24px;
}

.case-body span {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.case-body a {
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  margin-top: 18px;
}

/* About */
.about-image {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
}



.value-strip {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  overflow: hidden;
}

.value-strip div {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 30px 18px;
  text-align: center;
}

.value-strip div:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.value-strip i {
  color: var(--primary-dark);
  font-size: 2rem;
}

.value-strip strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.value-strip span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* News & Contact */
.news-card {
  padding: 30px;
}

.news-card time {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}





.contact-list p {
  align-items: flex-start;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  margin: 0;
}

.contact-list i {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.form-card {
  padding: 34px;
}

.form-label {
  color: var(--text-dark);
  font-weight: 800;
}

.form-control {
  border-color: var(--border-light);
  border-radius: 10px;
  min-height: 52px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea.form-control {
  min-height: 148px;
}

.form-control:hover,
.form-control:focus {
  border-color: rgba(0, 169, 143, 0.62);
  box-shadow: 0 0 0 0.2rem rgba(0, 169, 143, 0.12);
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #00685f, #00433d);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 22px;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  background: transparent;
  border-radius: 0;
  height: 52px;
  object-fit: contain;
  padding: 0;
  width: 52px;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.newsletter-form {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: var(--white);
  flex: 1;
  min-width: 0;
  outline: 0;
  padding: 12px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.newsletter-form button {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  color: var(--white);
  padding: 0 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  margin-top: 42px;
  padding-top: 22px;
  text-align: center;
}

/* Interactions */
.back-to-top {
  align-items: center;
  background: var(--primary-dark);
  border: 0;
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 14px 28px rgba(0, 127, 115, 0.26);
  color: var(--white);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  width: 46px;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--primary);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Responsive */
@media (max-width: 991.98px) {
  #services {
    background:
      linear-gradient(rgba(247, 250, 250, 0.94), rgba(247, 250, 250, 0.94)),
      url("../images/solution-fintech-real.png") center / cover no-repeat;
  }

  #services .row {
    max-width: none;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    margin-top: 14px;
    padding: 18px;
  }

  .navbar-nav {
    gap: 4px;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .nav-actions {
    align-items: stretch !important;
    flex-direction: column;
    margin-top: 12px;
  }

  .nav-actions .btn,
  .language-link {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    text-align: center;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .solution-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tab-content {
    min-height: 760px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 78px 0;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-stats,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .stat-item:not(:last-child),
  .value-strip div:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
    border-right: 0;
  }

  .hero-actions .btn {
    width: min(100%, 260px);
  }

  .solution-panel,
  .form-card {
    padding: 22px;
  }

  .service-card p {
    white-space: normal;
  }
}
