:root {
  --bg: #f2f4f8;
  --primary: #273e96;
  --accent: #2cb8ff;
  --ink: #151a34;
  --muted: #69718f;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: min(1180px, 85%);
  margin: 0 auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e7ebf3;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  @media (max-width: 768px) {
    width: 100%;
    padding: 0 25px;
  }
  @media (max-width: 678px) {
    gap: 0;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  padding-right: 70px;
  @media (max-width: 768px) {
    padding-right: 35px;
  }
  @media (max-width: 678px) {
    padding-right: 0;
  }
}

.nav-logo img {
  width: 170px;
  height: auto;
  display: block;
  @media (max-width: 551px) {
    width: 130px;
  }
}

.logo {
  font: 800 38px/1 "Poppins", sans-serif;
  letter-spacing: -1px;
  color: #3054cb;
}

.logo span {
  color: #202f74;
}

.desktop-nav {
  display: flex;
  gap: 45px;
  justify-self: start;
}

.desktop-nav a {
  text-decoration: none;
  color: #000101;
  font-size: 14px;
}

.desktop-nav a.active {
  color: #32338a;
  font-weight: 700;
}

.lang {
  border: 0;
  background: transparent;
  color: #1e2550;
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #1f2550;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle.open {
  position: fixed;
  top: 11px;
  right: 4%;
}

.menu-toggle.open span {
  background: #fff;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 85, 0.85);
  z-index: 50;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.mobile-nav {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.mobile-nav a.active {
  color: #65b6ff;
}

.hero {
  position: relative;
  min-height: 420px;
  padding: 74px 0 88px;
  overflow: hidden;
  @media (max-width: 678px) {
    padding: 50px 0 225px;
  }
}
.hero_light {
  position: absolute;
  inset: 0 0 0 35%;
  background: url(images/bg_hero_light.webp) no-repeat right top / 100% 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  @media (max-width: 678px) {
    align-items: center;
  }
}

.hero-lottie {
  position: absolute;
  right: -180px;
  top: 0;
  width: min(90vw, 1040px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform-origin: right center;
  transform: scale(1.35);
  @media (max-width: 980px) {
    transform: scale(1.1);
    right: -130px;
  }
  @media (max-width: 768px) {
    transform: scale(1.1);
    right: -110px;
  }
  @media (max-width: 678px) {
    transform: scale(1.1);
    transform-origin: right bottom;
    right: -80px;
    width: 100%;
    top: 35%;
    bottom: 0;
    left: 0;
  }
}

.hero-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.hero-water {
  position: absolute;
  width: 44px;
  height: 60px;
  top: 25px;
  left: -37px;
  @media (max-width: 678px) {
    width: 30px;
    height: 35px;
    top: 15px;
    left: -27px;
  }
}

.hero h1 {
  margin: 0 0 28px;
  display: inline-block;
  font-size: clamp(35px, 4vw, 56px);
  line-height: 1.5;
  padding-top: 74px;
  background: linear-gradient(115deg, #1fc9ff 0%, #343789 37%, #252432 100%);
  background-size: 100% 100%;
  background-position: left top;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  @media (max-width: 678px) {
    padding-top: 35px;
  }
  @media (max-width: 551px) {
    font-size: 30px;
  }
  @media (max-width: 480px) {
    font-size: 25px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #2f3f95, #24b8ff);
  font-weight: 700;
}

.hero .btn {
  position: relative;
  align-self: flex-start;
  margin-top: 6px;
  margin-left: 8px;
  padding: 17px 32px;
  font-size: 20px;
  background: #293986;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 -6px 0 #24b8ff;
  transition: box-shadow 0.25s ease;
  @media (max-width: 678px) {
    align-self: center;
  }
}

.hero .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(-90deg, rgba(41, 57, 134, 0), rgba(41, 57, 134, 1));
  z-index: 1;
}

.hero .btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero .btn span img {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.25s ease;
}

.hero .btn:hover {
  box-shadow: inset 0 -6px 0 #24b8ff, 0 3px 15px rgba(1, 207, 255, 0.5);
}

.hero .btn:hover span img {
  transform: translateX(3px);
}

.section {
  padding: 75px 0;
}

#partner {
  padding: 50px 0;
}

#contact {
  padding-bottom: 175px;
  @media (max-width: 768px) {
    padding-bottom: 275px;
  }
}

h2 {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  color: #010205;
}

.section-title {
  display: inline-block;
  width: fit-content;
}

.title-underline {
  width: 75px;
  height: 7px;
  border-radius: 10px;
  background: linear-gradient(90deg, #6f89ff 0%, #01cfff 100%);
  margin: 12px 0 28px;
  margin-left: auto;
}

.lead {
  margin: 0 0 34px;
  color: #2f3250;
  line-height: 1.9;
}

.about-intro {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 25px 55px;
  align-items: start;
  margin-bottom: 75px;
}

.about-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #121212;
  font-weight: 300;
}

.about-copy p + p {
  margin-top: 24px;
}

.about {
  background: url("images/bg_about.webp") center top/cover no-repeat;
}

.about-grid-wrapper {
  position: relative;
}

.about-grid-wrapper:before {
  content: "";
  width: 170px;
  height: 150px;
  position: absolute;
  z-index: 0;
  background: url(images/deco_cirs.webp) no-repeat center center / contain;
  left: -90px;
  top: -100px;
  @media (max-width: 980px) {
    width: 130px;
    height: 130px;
    left: -50px;
    top: -70px;
  }
  @media (max-width: 480px) {
    width: 110px;
    height: 110px;
    left: -50px;
    top: -70px;
  }
}

.about-grid-wrapper:after {
  content: "";
  width: 270px;
  height: 270px;
  position: absolute;
  z-index: 5;
  background: url(images/deco_earth.webp) no-repeat center center / contain;
  right: -130px;
  bottom: -160px;

  @media (max-width: 980px) {
    width: 205px;
    height: 205px;
    right: -90px;
    bottom: -130px;
  }
  @media (max-width: 480px) {
    width: 170px;
    height: 170px;
    right: -50px;
    bottom: -110px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.card {
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(39, 62, 150, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.5;
  color: #f4fcfb;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-title img {
  width: 15px;
  height: 20px;
  display: block;
}

.card p,
.card li {
  margin: 0;
  font-size: 16px;
  color: #fff;
  line-height: 1.75;
  font-weight: 300;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card.blue {
  background: url("images/bg_vision.webp") center/cover no-repeat;
}

.card.indigo {
  background: linear-gradient(90deg, #28388f 0%, #6f88ff 100%);
}

.card.light {
  background: rgba(110, 136, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  @media (max-width: 980px) {
    padding: 17px;
  }
}

.card.light h3,
.card.light li {
  color: #1e2a5d;
}

.card.light .light-inner {
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 24px;
  min-height: 100%;
  @media (max-width: 980px) {
    border-radius: 10px;
  }
}

.card.light .core-title {
  color: #010205;
}

.card.light ul {
  margin-top: 14px;
}

.card.light li {
  color: #4a4d50;
  line-height: 1.75;
  margin-bottom: 14px;
}

.card.light li strong,
.card.light li span {
  display: block;
}

.card.light li strong {
  color: #4a4d50;
  font-weight: 700;
}

.card.light li span {
  font-weight: 300;
}

.tall {
  grid-row: span 2;
}

.center {
  text-align: center;
}

.sub {
  color: #28388d;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.75;
}

.product-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.products {
  background: url("images/bg_pd.webp") center center/cover no-repeat;
}

.product-card {
  position: relative;
  display: block;
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 12px 24px rgba(34, 64, 143, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover,
.product-card:focus-visible {
  box-shadow: 0 18px 28px rgba(34, 64, 143, 0.16);
  transform: translateY(-2px);
}

.product-card:focus-visible {
  outline: 2px solid rgba(111, 137, 255, 0.8);
  outline-offset: 2px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.product-card:hover::after,
.product-card:focus-visible::after {
  opacity: 1;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.brand {
  width: 140px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.product-card h3 {
  font-size: 24px;
  line-height: 1.75;
  color: #010205;
  font-weight: 500;
  margin: 12px 0;
}

.product-card p {
  font-size: 18px;
  line-height: 1.75;
  color: #121212;
  font-weight: 300;
}

.partner {
  background: url("images/bg_grey.avif") center center/cover no-repeat;
}

.partner-wrap {
  position: relative;
  border-radius: 24px;
  background: #000;
  color: #fff;
  padding: 39px;
  min-height: 500px;
  display: grid;
  grid-template-columns: 50fr 50fr;
  gap: 0;
  align-items: start;
  overflow: hidden;
  @media (max-width: 980px) {
    padding: 25px;
  }
}

.partner-wrap::after {
  content: "";
  position: absolute;
  left: -1%;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url("images/deco_partner.avif") left bottom/ 100% no-repeat;
  z-index: 0;
  pointer-events: none;
  @media (max-width: 551px) {
    width: 130%;
    height: 130%;
  }
  @media (max-width: 480px) {
    width: 175%;
    height: 175%;
    left: -15%;
  }
}

.partner-left h2 {
  display: inline-block;
  width: fit-content;
  background: linear-gradient(115deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 75%, rgba(175, 175, 175, 0) 100%);
  background-size: 100% 100%;
  background-position: left top;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.15);
}

.partner-left {
  position: relative;
  z-index: 2;
}

.partner-left p {
  margin: 10px 0 0;
  color: #01d0fa;
  font-size: 24px;
  font-weight: 700;
}

.partner-right {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.09) 100%);
  padding: 30px;
  align-self: start;
  justify-self: stretch;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.partner-right::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0.15) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.partner-right h3 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  line-height: 1.75;
  font-weight: 600;
}

.partner-right p {
  font-size: 16px;
  line-height: 1.75;
  color: #ffffff;
  font-weight: 300;
}

.partner-btn {
  margin-top: 10px;
  background: linear-gradient(90deg, #6f89ff 0%, #01cfff 100%);
  transition: box-shadow 0.25s ease;
}

.partner-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.partner-btn img {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.25s ease;
}

.partner-btn:hover {
  box-shadow: 0 3px 15px rgba(1, 207, 255, 0.5);
}

.partner-btn:hover img {
  transform: translateX(3px);
}

.contact {
  position: relative;
  background: url("images/bg_grey.avif") center center/cover no-repeat;
  overflow: hidden;
}

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

.contact-lottie {
  margin-top: 30px;
  margin-bottom: -20px;
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
  transform-origin: left bottom;
  @media (max-width: 1280px) {
    transform: scale(0.85);
  }
  @media (max-width: 1024px) {
    z-index: 1;
    margin-bottom: -10px;
  }
  @media (max-width: 768px) {
    transform: scale(0.7);
     z-index: 5;
  }
  @media (max-width: 551px) {
    transform: scale(0.9);
     z-index: 5;
     margin-bottom: 0;
  }
  @media (max-width: 480px) {
    transform: scale(1);
  }
  @media (max-width: 375px) {
    margin-bottom: 15px;
  }
}

.contact-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.form-wrap {
  position: relative;
  z-index: 1;
  padding: 15px;
  border: 2px solid #ffffff;
  border-radius: 39px;
  background: rgba(110, 136, 255, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  @media (max-width: 551px) {
    padding: 10px;
    border-radius: 37px;
  }
}

.form-wrap::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 140px;
  right: -55px;
  bottom: -90px;
  background: url("images/deco_cirs.webp") center/contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

.form-wrap::after {
  content: "";
  position: absolute;
  width: 1300px;
  height: 1300px;
  left: -70%;
  top: -50%;
  background: url("images/deco_form.avif") center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.form-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 23px 55px rgba(56, 57, 89, 0.15);
  @media (max-width: 980px) {
    padding: 35px 25px;
  }
}

.form-card h3 {
  margin: 0;
  font-size: 30px;
  color: #353535;
  font-weight: 700;
  line-height: 1.5;
}

.form-card p {
  color: #4a4d50;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  margin: 7px 0 25px;
}

.form-card .contact-info {
  font-size: 25px;
  text-decoration: none;
  background: linear-gradient(90deg, #6f89ff 0%, #01cfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  margin-top: 0;
  display: block;
  @media (max-width: 551px) {
    font-size: 20px;
  }
  @media (max-width: 420px) {
    font-size: 15px;
  }
}
.form-card .contact-caption {
  font-size: 15px;
  color: #aaaaaa;
  display: block;
  padding: 17px 0 3px;
  @media (max-width: 420px) {
    font-size: 13px;
  }
}

.form-card .contact-link {
  font-size: 20px;
  color: #333333;
  display: inline-block;
  text-decoration: none;
  @media (max-width: 551px) {
    font-size: 18px;
  }
  @media (max-width: 420px) {
    font-size: 15px;
  }
}

label {
  display: block;
  font-size: 16px;
  color: #000000;
  font-weight: 400;
  margin-bottom: 14px;
}

input,
textarea {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #d8dced;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.submit {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 18px;
  background: #2f4097;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.submit:hover {
  box-shadow: 0 3px 15px rgba(41, 57, 134, 0.3);
}

.footer {
  position: relative;
  z-index: 10;
  border-radius: 35px 35px 0 0;
  background: #ffffff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 38px 0 25px;
  margin-top: -30px;
}

.footer p {
  margin: 20px 0 26px;
  color: #878c91;
  font-size: 16px;
  padding: 0 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 14px;
  padding-top: 18px;
}

.footer-logo {
  width: 166px;
  height: 36px;
  display: block;
  margin: 0 auto;
}

.copyright {
  display: block;
  color: #000000;
  font-size: 13px;
  text-align: center;
  padding: 0 20px;
}


@media (max-width: 768px) {

  .hero {
    min-height: 320px;
  }

  .about-grid,
  .about-intro,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .partner-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 35px;
    padding-bottom: 180px;
  }

  .partner-right {
    order: 2;
    width: 100%;
    justify-self: stretch;
    align-self: start;
  }

  .partner-left {
    order: 1;
    min-height: auto;
  }

  .form-wrap::after {
    width: 280px;
    height: 280px;
    left: -24px;
    top: -16px;
    opacity: 0.5;
  }

  .tall {
    grid-row: auto;
  }

  .about-grid .card.blue {
    order: 1;
  }

  .about-grid .card.indigo {
    order: 2;
  }

  .about-grid .card.light {
    order: 3;
  }

  .about-grid .card-title img {
    width: 20px;
    height: 17px;
  }

}

@media (max-width: 678px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }
}
