:root {
  --navy: #071f43;
  --deep: #031936;
  --ink: #0a234c;
  --teal: #07879d;
  --cyan: #00a6d8;
  --line: #cfe4ed;
  --pale: #f2f9fc;
  --text: #143056;
  --muted: #57718b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.55;
}

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

.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 74px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #eef6fa;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 25px rgba(8, 43, 78, .04);
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 265px; }
.logo-mark {
  width: 60px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #0c3762;
  font: 900 22px/1 Inter, sans-serif;
  letter-spacing: .04em;
  text-align: center;
  background: url("data:image/svg+xml,%3Csvg width='64' height='70' viewBox='0 0 64 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 2 60 18v34L32 68 4 52V18L32 2Z' stroke='%23078a9d' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.logo-mark.small { width: 54px; height: 60px; color: #0c3762; font-size: 20px; filter: none; }
.brand strong { display: block; color: var(--navy); font-size: 25px; font-weight: 900; letter-spacing: .05em; }
.brand small { color: #0c8ea4; font-weight: 700; font-size: 15px; }
.main-nav { display: flex; align-items: center; gap: 42px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.main-nav a { position: relative; padding: 38px 0 34px; }
.main-nav .active { color: #008ca3; }
.main-nav .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 29px;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: translateX(-50%);
}
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.account-actions,
.header-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}
.language-toggle {
  width: 86px;
  height: 36px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  border: 1px solid #9bcfdb;
  border-radius: 999px;
  color: #0a315f;
  background: #fff;
  cursor: pointer;
  font: 800 12px/1 Inter, "Noto Sans TC", sans-serif;
  box-shadow: 0 8px 20px rgba(8, 43, 78, .06);
}
.language-toggle span {
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
html[lang="zh-Hant"] [data-lang-option="zh"],
html[lang="en"] [data-lang-option="en"] {
  color: #fff;
  background: #07849b;
}
.auth-link {
  min-width: 64px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #b7dbe5;
  border-radius: 999px;
  color: #0a315f;
  background: #fff;
  cursor: pointer;
  font: 800 13px/1 "Noto Sans TC", Inter, sans-serif;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.auth-link.strong {
  color: #fff;
  border-color: #07849b;
  background: #07849b;
}
.user-chip {
  max-width: 160px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #0a315f;
  background: #eef9fc;
  border: 1px solid #b7dbe5;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: 800 15px/1.22 "Noto Sans TC", Inter, sans-serif;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.header-cta {
  min-width: 172px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #061d3d, #082c5b);
  font-size: 14px;
}
.header-cta.secondary {
  min-width: 154px;
  color: #086f88;
  background: #fff;
  border: 1px solid #63b6ca;
}

.hero {
  min-height: 585px;
  display: grid;
  grid-template-columns: minmax(430px, 45%) 1fr;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 9% 79%, rgba(0, 150, 190, .09), transparent 24%),
    linear-gradient(90deg, #fff 0%, #fff 45%, #eaf8fc 45.1%, #fff 100%);
}
.hero::before, .modules::after, .cta-band::before {
  content: "";
  position: absolute;
  inset: auto auto 22px 0;
  width: 54%;
  height: 180px;
  opacity: .32;
  background-image:
    radial-gradient(circle, #50c5e6 1.3px, transparent 1.4px),
    linear-gradient(30deg, transparent 48%, rgba(57,176,211,.35) 49%, transparent 51%);
  background-size: 72px 52px, 95px 68px;
  pointer-events: none;
}
.hero-copy { padding: 82px 44px 70px 74px; z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(42px, 4.45vw, 72px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: .03em;
}
h1 span { color: #087b91; font-family: Inter, "Noto Sans TC", sans-serif; letter-spacing: 0; }
.hero-copy p { max-width: 560px; margin-bottom: 34px; color: #3c5878; font-size: 19px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #078ca2, #066a86); box-shadow: 0 12px 22px rgba(5,112,139,.2); }
.btn-ghost { min-width: 190px; color: #0b718c; background: #fff; border: 2px solid #63b6ca; }

.hero-visual {
  position: relative;
  min-height: 585px;
  background: linear-gradient(135deg, #031936 0%, #06234c 58%, #021128 100%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 12% 50%);
  color: white;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 39%, rgba(0,188,255,.36), transparent 24%),
              radial-gradient(circle at 100% 58%, rgba(0,147,202,.18), transparent 29%);
}
#networkCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .88; }
.ai-orb {
  position: absolute;
  top: 135px;
  left: 45%;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(0, 192, 255, .7);
  color: #e9f9ff;
  font: 800 92px/1 Inter, sans-serif;
  text-shadow: 0 0 26px rgba(0,180,255,.95);
  box-shadow: 0 0 44px rgba(0, 185, 255, .32), inset 0 0 42px rgba(0, 185, 255, .25);
  transform: translateX(-50%);
}
.city {
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 0;
  height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding-right: 30px;
}
.city span {
  width: 28px;
  height: var(--h);
  background: linear-gradient(180deg, rgba(8,159,223,.12), rgba(0,177,255,.45));
  border: 1px solid rgba(0,198,255,.8);
  box-shadow: 0 0 14px rgba(0, 190, 255, .5);
}
.float-card {
  position: absolute;
  width: 156px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(95, 207, 244, .65);
  border-radius: 10px;
  background: rgba(13, 52, 89, .76);
  box-shadow: inset 0 0 22px rgba(0, 174, 255, .12);
}
.float-card b { display: block; margin-bottom: 12px; font-size: 16px; }
.float-card.work { top: 58px; left: 25%; }
.float-card.bot { top: 126px; right: 8%; }
.float-card.integrate { top: 265px; left: 16%; }
.float-card.chart { right: 11%; bottom: 104px; }

.icon {
  width: 58px;
  height: 58px;
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
  color: #07849b;
}
.icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}
.feature-strip, .section, .trust-band { position: relative; max-width: 1380px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.feature-strip {
  margin-top: -47px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 142px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 14px 40px rgba(6, 41, 70, .08);
}
.feature-strip article {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 34px;
  border-right: 1px solid #dcecf2;
}
.feature-strip article:last-child { border-right: 0; }
.feature-strip .icon, .service-card .icon, .trust-grid .icon {
  border: 1px solid #99cedc;
  border-radius: 50%;
}
.feature-strip .icon::before, .service-card .icon::before, .trust-grid .icon::before {
  inset: 15px;
}
b, h3 { color: var(--ink); font-weight: 900; }
.feature-strip p, .service-card p, .module-card p, .pricing-card p, .process p, .trust-grid p, .footer p { margin-bottom: 0; color: var(--muted); font-weight: 600; }

.section { padding-top: 48px; padding-bottom: 22px; text-align: center; }
.eyebrow { margin-bottom: 5px; color: #078fa6; font-size: 15px; font-weight: 900; text-align: center; }
h2 { margin-bottom: 32px; color: var(--navy); font-size: clamp(26px, 2.35vw, 39px); line-height: 1.25; font-weight: 900; letter-spacing: .04em; text-align: center; }
.section-lead {
  max-width: 840px;
  margin: -14px auto 30px;
  color: #4b6884;
  font-size: 18px;
  font-weight: 700;
}
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card {
  min-height: 238px;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-card h3 { margin: 18px 0 10px; font-size: 21px; }

.modules {
  max-width: none;
  margin-top: 12px;
  padding: 26px max(28px, calc((100vw - 1380px) / 2 + 28px)) 18px;
  background: linear-gradient(90deg, #f4fbfe, #fff 40%, #f1f9fc);
  overflow: hidden;
}
.modules::after { right: -30px; left: auto; top: 26px; width: 28%; height: 210px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; z-index: 1; }
.module-card {
  min-height: 178px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
  padding: 30px 36px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.module-card .icon { width: 70px; height: 70px; }
.module-card h3 { margin-bottom: 8px; font-size: 21px; }
.module-card a { display: inline-block; margin-top: 14px; color: #07849b; font-weight: 900; }

.subscriptions {
  max-width: none;
  padding: 54px max(28px, calc((100vw - 1380px) / 2 + 28px)) 48px;
  background: #fff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}
.pricing-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 251, 254, .82), #fff 38%),
    #fff;
  box-shadow: 0 14px 34px rgba(8, 43, 78, .06);
}
.pricing-card.featured {
  border-color: #07849b;
  box-shadow: 0 18px 44px rgba(7, 132, 155, .16);
  transform: translateY(-8px);
}
.plan-kicker {
  color: #07849b !important;
  font-weight: 900 !important;
  letter-spacing: .04em;
}
.pricing-card h3 {
  margin: 6px 0 14px;
  font-size: 28px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--navy);
}
.plan-price span {
  font: 900 46px/1 Inter, "Noto Sans TC", sans-serif;
}
.plan-price small {
  color: var(--muted);
  font-weight: 800;
}
.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pricing-card li {
  position: relative;
  padding-left: 24px;
  color: #24415f;
  font-weight: 800;
}
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #07849b;
  box-shadow: 0 0 0 5px #e8f7fb;
}
.enterprise-note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 16px 22px;
  color: #072b5b !important;
  background: #eef9fc;
  border: 1px solid #9bcfdb;
  border-radius: 8px;
  font-weight: 900 !important;
}

.process { padding-top: 26px; padding-bottom: 34px; }
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px;
  text-align: left;
}
.process-row article { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.process-row article:not(:last-child)::after {
  content: "··········›";
  position: absolute;
  top: 32px;
  right: -46px;
  color: #07849b;
  font-size: 24px;
  letter-spacing: 2px;
}
.process-row span {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #07849b;
  border: 10px solid #e9f7fb;
  outline: 1px solid #92cbd9;
  font: 800 24px/1 Inter, sans-serif;
}
.process-row b { align-self: end; font-size: 20px; }
.process-row p { align-self: start; }

.trust-band {
  max-width: none;
  padding: 22px max(28px, calc((100vw - 1380px) / 2 + 28px)) 28px;
  background: #f4fbfe;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.trust-grid article {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 16px;
  text-align: left;
  border-right: 1px solid #dcecf2;
}
.trust-grid article:last-child { border-right: 0; }
.trust-grid b { font-size: 21px; }

.cta-band {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(90deg, #031936, #072b5b 72%, #078aa0 72%);
}
.cta-band::before { inset: 0 auto auto 0; width: 36%; height: 100%; opacity: .36; }
.cta-band::after {
  content: "";
  position: absolute;
  right: 75px;
  width: 72px;
  height: 130px;
  background: #fff;
  transform: skewX(-31deg);
}
.cta-band div, .cta-band a { position: relative; z-index: 1; text-align: center; }
.cta-band small { color: #9bd9e7; font-weight: 900; }
.cta-band h2 { margin: 0; color: #fff; font-size: 35px; }
.cta-band p { margin: 4px 0 0; color: #dceff7; font-weight: 600; }

.footer {
  color: #dcebf5;
  background: #031936;
}
.footer-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr .95fr 1fr 1.25fr;
  gap: 42px;
  padding: 42px 28px 38px;
}
.footer-grid section { border-left: 1px solid rgba(215, 237, 247, .45); padding-left: 42px; }
.footer-grid section:first-child { border-left: 0; padding-left: 0; }
.footer-brand { display: grid; grid-template-columns: 70px 1fr; gap: 12px 18px; }
.footer-brand > p { grid-column: 1 / -1; color: #c2d6e7; }
.footer h3, .footer h4 { margin: 0 0 12px; color: #fff; font-size: 20px; }
.footer a { display: block; margin: 6px 0; color: #d5e7f1; font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(215, 237, 247, .25);
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding: 20px 28px;
  color: #d5e7f1;
}
.footer-bottom a {
  color: #d5e7f1;
  font-weight: 500;
}
.footer-bottom a:hover { color: #9bd9e7; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 54, .62);
}
.auth-dialog {
  position: relative;
  width: min(94vw, 480px);
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cfe4ed;
  border-radius: 50%;
  color: #0a315f;
  background: #fff;
  cursor: pointer;
  font: 800 22px/1 Inter, "Noto Sans TC", sans-serif;
}
.auth-dialog h2 {
  margin-bottom: 22px;
  font-size: 30px;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b8d6e2;
  border-radius: 8px;
  color: var(--ink);
  font: 700 15px/1.4 "Noto Sans TC", sans-serif;
}
.auth-form input:focus {
  outline: none;
  border-color: #07849b;
  box-shadow: 0 0 0 3px rgba(7, 132, 155, .12);
}
.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}
.auth-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.auth-message[data-type="success"] { color: #07849b; }
.auth-message[data-type="error"] { color: #b42318; }
.auth-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 8px 10px;
  border: 0;
  color: #07849b;
  background: transparent;
  cursor: pointer;
  font: 900 14px/1.25 "Noto Sans TC", Inter, sans-serif;
  text-align: center;
}

.legal-page { background: #f6fbfd; }
.legal-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 28px 82px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #07849b;
  font-weight: 900;
}
.legal-document {
  padding: 56px 62px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(8, 43, 78, .06);
}
.legal-document h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0;
}
.legal-document h2 {
  margin: 42px 0 14px;
  font-size: 24px;
  line-height: 1.35;
  text-align: left;
  letter-spacing: 0;
}
.legal-document p,
.legal-document li {
  color: #405b76;
  font-size: 16px;
  font-weight: 500;
}
.legal-document p { margin-bottom: 18px; }
.legal-document ul {
  margin: 0 0 20px 22px;
  padding: 0;
}
.legal-document li { margin: 8px 0; }
.legal-updated {
  color: #07849b !important;
  font-weight: 900 !important;
}

.assistant-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 150, 190, .08), transparent 28%),
    linear-gradient(180deg, #f6fbfd, #fff 42%, #f2f9fc);
}
.assistant-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 58px 28px 76px;
}
.assistant-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
  padding: 50px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 28%, rgba(0, 183, 255, .42), transparent 26%),
    linear-gradient(135deg, #031936, #082b5a 72%, #078aa0);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.assistant-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    radial-gradient(circle, #54d7ff 1.2px, transparent 1.3px),
    linear-gradient(30deg, transparent 48%, rgba(80,197,230,.42) 49%, transparent 51%);
  background-size: 70px 50px, 96px 68px;
}
.assistant-hero > div { position: relative; z-index: 1; max-width: 780px; }
.assistant-hero .eyebrow { text-align: left; color: #9bd9e7; }
.assistant-hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
}
.assistant-hero p:last-child {
  margin: 0;
  color: #e4f4fa;
  font-size: 19px;
  font-weight: 600;
}
.assistant-access,
.assistant-system {
  margin-top: 34px;
}
.assistant-card,
.assistant-system,
.chat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(8, 43, 78, .06);
}
.assistant-card {
  padding: 34px;
}
.assistant-card-head,
.assistant-system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.assistant-card-head .eyebrow,
.assistant-system-head .eyebrow { text-align: left; }
.assistant-card h2,
.assistant-system h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(26px, 3vw, 36px);
}
.trial-notice {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}
.registration-form {
  padding: 26px;
  margin: 20px 0 26px;
  background: #f4fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.registration-form label,
.api-login label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}
.registration-form input,
.api-login input,
.chat-form textarea {
  width: 100%;
  border: 1px solid #a8d3df;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: 600 16px/1.5 "Noto Sans TC", system-ui, sans-serif;
  outline: none;
}
.registration-form input,
.api-login input {
  height: 50px;
  padding: 0 16px;
}
.registration-form input:focus,
.api-login input:focus,
.chat-form textarea:focus {
  border-color: #07849b;
  box-shadow: 0 0 0 3px rgba(7, 132, 155, .12);
}
.api-result {
  margin: 22px 0;
  padding: 20px 22px;
  background: #eef9fc;
  border: 1px solid #9bcfdb;
  border-radius: 8px;
}
.api-result p {
  margin-bottom: 8px;
  color: #07849b;
  font-weight: 900;
}
.api-result strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 800 18px/1.45 Inter, monospace;
}
.api-login-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 10px;
}
.assistant-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.assistant-message[data-type="success"] { color: #07849b; }
.assistant-message[data-type="error"] { color: #b42318; }
.assistant-message[data-type="loading"] { color: #0a5aa3; }
.assistant-system {
  padding: 34px;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
}
.chat-messages {
  height: min(58vh, 620px);
  min-height: 420px;
  overflow-y: auto;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(244, 251, 254, .9), rgba(255,255,255,.95)),
    radial-gradient(circle at 80% 16%, rgba(0, 166, 216, .12), transparent 30%);
}
.chat-message {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.chat-message > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #07849b;
  font: 900 14px/1 Inter, sans-serif;
}
.chat-message.user > span { background: #071f43; }
.chat-message p {
  margin: 0;
  padding: 15px 18px;
  color: #405b76;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  white-space: pre-wrap;
}
.chat-message.user p {
  color: #102b52;
  background: #eef9fc;
}
.chat-message.thinking p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07849b;
  background: #f4fbfe;
  border-color: #9bcfdb;
}
.thinking-text {
  font-weight: 800;
}
.thinking-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.thinking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #07849b;
  animation: thinkingPulse 1s infinite ease-in-out;
}
.thinking-dots i:nth-child(2) { animation-delay: .16s; }
.thinking-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes thinkingPulse {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  resize: vertical;
  min-height: 86px;
  padding: 14px 16px;
}

.account-page {
  background: #f6fbfd;
}
.account-header .header-actions {
  flex-direction: row;
}
.account-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 28px 72px;
}
.account-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 198, 255, .22), transparent 30%),
    linear-gradient(135deg, #031936, #082c5b);
  border-radius: 8px;
  overflow: hidden;
}
.account-hero .eyebrow,
.account-hero h1,
.account-hero p {
  text-align: left;
}
.account-hero .eyebrow {
  color: #9bd9e7;
}
.account-hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(38px, 4vw, 64px);
}
.account-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #dceff7;
  font-size: 18px;
  font-weight: 700;
}
.account-summary-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(155, 217, 231, .45);
  border-radius: 8px;
}
.account-summary-card span {
  color: #9bd9e7;
  font-weight: 900;
}
.account-summary-card strong {
  color: #fff;
  font-size: 28px;
}
.account-summary-card small {
  color: #dceff7;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-login-required,
.account-panel,
.account-metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(8, 43, 78, .06);
}
.account-login-required {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}
.account-login-required h2 {
  margin-bottom: 12px;
}
.account-login-required p {
  color: var(--muted);
  font-weight: 700;
}
.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.account-metrics article {
  padding: 26px;
}
.account-metrics span {
  display: block;
  margin-bottom: 10px;
  color: #07849b;
  font-weight: 900;
}
.account-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font: 900 36px/1 Inter, "Noto Sans TC", sans-serif;
}
.account-metrics p,
.account-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.account-panel {
  padding: 30px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.panel-head .eyebrow,
.panel-head h2 {
  text-align: left;
}
.panel-head h2 {
  margin-bottom: 0;
  font-size: 30px;
}
.panel-head .btn:disabled {
  opacity: .62;
  cursor: not-allowed;
}
.panel-head .btn {
  min-width: 168px;
  max-width: 230px;
  padding: 10px 20px;
  white-space: normal;
}
.quota-bar {
  height: 14px;
  margin-bottom: 18px;
  overflow: hidden;
  background: #e7f4f8;
  border-radius: 999px;
}
.quota-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #07849b, #00a6d8);
}
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.placeholder-grid article {
  padding: 18px;
  background: #f4fbfe;
  border: 1px solid #d7edf4;
  border-radius: 8px;
}
.placeholder-grid b,
.placeholder-grid span {
  display: block;
}
.placeholder-grid b {
  margin-bottom: 6px;
  color: var(--ink);
}
.placeholder-grid span {
  color: #07849b;
  font-weight: 900;
}
.mini-plan-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.mini-plan-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #f8fcfe;
  border: 1px solid #d7edf4;
  border-radius: 8px;
}
.mini-plan-list article.active {
  border-color: #07849b;
  background: #eef9fc;
}
.mini-plan-list b {
  font-size: 18px;
}
.mini-plan-list span {
  color: var(--navy);
  font-weight: 900;
}
.account-table-panel {
  padding-bottom: 24px;
}
.account-table {
  border: 1px solid #d7edf4;
  border-radius: 8px;
  overflow: hidden;
}
.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 15px 18px;
}
.table-head {
  color: var(--ink);
  background: #eef9fc;
  font-weight: 900;
}
.table-empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.bolt { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m13 2-9 13h7l-1 7 9-13h-7l1-7Z'/%3E%3C/svg%3E"); }
.sliders { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 7h6M14 7h6M4 17h6M14 17h6M4 12h11M19 12h1'/%3E%3Ccircle cx='12' cy='7' r='2' fill='black'/%3E%3Ccircle cx='12' cy='17' r='2' fill='black'/%3E%3Ccircle cx='17' cy='12' r='2' fill='black'/%3E%3C/svg%3E"); }
.puzzle { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M9 3h6v4a2 2 0 1 0 0 4v4h-4a2 2 0 1 1-4 0H3V9h4a2 2 0 1 0 2-2V3Z'/%3E%3C/svg%3E"); }
.shield { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M12 3 20 6v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3Z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.flow { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M12 4v5M6 14v-3h12v3M4 14h4v4H4zM10 14h4v4h-4zM16 14h4v4h-4zM9 2h6v4H9z'/%3E%3C/svg%3E"); }
.robot { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M12 3v3M7 8h10a4 4 0 0 1 4 4v4a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4Zm-4 5H1m22 0h-2'/%3E%3Ccircle cx='9' cy='14' r='1.5' fill='black'/%3E%3Ccircle cx='15' cy='14' r='1.5' fill='black'/%3E%3C/svg%3E"); }
.analytics { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 19h16M6 17v-5h3v5M11 17V9h3v8M16 17V5h3v12M5 10l5-4 4 3 5-6'/%3E%3C/svg%3E"); }
.rocket { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M14 4c3-2 6-2 6-2s0 3-2 6l-7 7-4 1 1-4 6-8ZM7 14l-4 4m12-1-1 4-3-3M6 11 3 8l4-1'/%3E%3Ccircle cx='15' cy='7' r='2' fill='black'/%3E%3C/svg%3E"); }
.headset { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 13a8 8 0 0 1 16 0v5a3 3 0 0 1-3 3h-3M4 13v4h4v-6H6a2 2 0 0 0-2 2Zm16 0v4h-4v-6h2a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E"); }
.chat { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 5h16v11H8l-4 4V5Z'/%3E%3Cpath stroke='black' stroke-width='2' d='M8 10h2m3 0h2m3 0h2'/%3E%3C/svg%3E"); }
.book { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 5c3 0 6 .5 8 3v13c-2.5-2-5-3-8-3V5Zm16 0c-3 0-6 .5-8 3v13c2.5-2 5-3 8-3V5Z'/%3E%3C/svg%3E"); }
.gear { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='m12 2 2 3 4-1 2 4-3 3v2l3 3-2 4-4-1-2 3-2-3-4 1-2-4 3-3v-2L4 8l2-4 4 1 2-3Z'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.target { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M12 2v4m0 12v4M2 12h4m12 0h4M5 12a7 7 0 1 0 14 0 7 7 0 0 0-14 0Zm4 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z'/%3E%3C/svg%3E"); }

@media (max-width: 1100px) {
  .site-header { padding: 0 28px; height: auto; min-height: 88px; flex-wrap: wrap; }
  .brand { min-width: auto; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 24px; overflow-x: auto; }
  .main-nav a { padding: 10px 0 18px; }
  .main-nav .active::after { bottom: 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 28px; }
  .hero-visual { clip-path: none; min-height: 500px; }
  .header-actions { align-items: flex-end; }
  .feature-strip, .service-grid, .module-grid, .pricing-grid, .process-row, .trust-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { margin: 0 28px; }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .process-row article:not(:last-child)::after { display: none; }
  .cta-band { padding: 28px; gap: 24px; flex-direction: column; }
  .footer-grid { padding-left: 28px; padding-right: 28px; }
  .account-hero, .account-layout { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; padding: 18px; }
  .brand strong { font-size: 20px; }
  .header-actions, .account-actions, .header-cta-group { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .header-cta { flex: 1 1 170px; min-width: 0; padding: 0 18px; }
  .language-toggle { width: 108px; flex: 0 0 auto; }
  .main-nav { justify-content: flex-start; }
  .hero-copy { padding: 42px 20px; }
  h1 { font-size: 42px; }
  .hero-copy p { font-size: 16px; }
  .hero-visual { min-height: 430px; }
  .ai-orb { width: 190px; height: 190px; font-size: 66px; left: 51%; }
  .float-card { transform: scale(.82); }
  .float-card.work { left: 4%; }
  .float-card.integrate { left: 3%; }
  .float-card.bot, .float-card.chart { right: 1%; }
  .feature-strip, .service-grid, .module-grid, .pricing-grid, .process-row, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-strip { margin: 0 18px; }
  .feature-strip article, .trust-grid article { border-right: 0; border-bottom: 1px solid #dcecf2; }
  .feature-strip article:last-child, .trust-grid article:last-child { border-bottom: 0; }
  .module-card { padding: 24px; }
  .pricing-card.featured { transform: none; }
  .pricing-card { min-height: auto; padding: 26px; }
  .process-row { gap: 24px; }
  .cta-band h2 { font-size: 28px; }
  .footer-grid section { border-left: 0; padding-left: 0; }
  .footer-bottom { gap: 18px; flex-wrap: wrap; }
  .legal-main { padding: 42px 18px 56px; }
  .legal-document { padding: 34px 22px; }
  .assistant-main { padding: 32px 18px 54px; }
  .assistant-hero { padding: 36px 24px; }
  .assistant-card, .assistant-system { padding: 22px; }
  .assistant-card-head, .assistant-system-head, .chat-form { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .form-grid, .api-login-row, .chat-form { grid-template-columns: 1fr; }
  .chat-messages { min-height: 360px; padding: 18px; }
  .account-main { padding: 32px 18px 54px; }
  .account-hero { padding: 30px 22px; }
  .account-metrics, .placeholder-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .table-row { grid-template-columns: 1fr 1fr; }
}
