:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.ai-workbench-page {
  min-height: 100vh;
  margin: 0;
  color: #182238;
  background-color: #fff;
  background-image: radial-gradient(circle at 4% 8%, rgba(117, 219, 247, .12), transparent 29%),
    radial-gradient(circle at 98% 17%, rgba(185, 157, 248, .11), transparent 30%),
    radial-gradient(circle at 2% 58%, rgba(151, 235, 208, .10), transparent 30%),
    radial-gradient(circle at 99% 80%, rgba(255, 190, 220, .10), transparent 31%),
    radial-gradient(circle at 50% 100%, rgba(255, 220, 162, .08), transparent 28%);
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

.ai-workbench-page h1,
.ai-workbench-page h2,
.ai-workbench-page h3,
.ai-workbench-page p {
  margin: 0;
}

.ai-workbench-page h1,
.ai-workbench-page h2,
.ai-workbench-page h3 {
  text-wrap: balance;
}

.ai-mobile-break {
  display: none;
}

.ai-workbench-page a {
  color: inherit;
  text-decoration: none;
}

.ai-page-main {
  width: min(100% - 56px, 820px);
  margin: 0 auto;
  padding-top: 76px;
}

.ai-hero,
.ai-bridge,
.ai-story,
.ai-features,
.ai-flow {
  border-bottom: 1px solid #e3eaf4;
}

.ai-hero {
  padding: 74px 0 74px;
}

.ai-hero-logo {
  display: block;
  width: 124px;
  height: 124px;
  margin: 0 auto;
  object-fit: contain;
}

.ai-hero h1 {
  margin-top: 20px;
  color: #151d33;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

.ai-hero-lead {
  margin-top: 20px !important;
  color: #586b85;
  font-size: 22px;
  line-height: 1.6;
}

.ai-hero-copy,
.ai-story p,
.ai-feature p,
.ai-flow-steps p {
  color: #687993;
  font-size: 17px;
  line-height: 1.75;
}

.ai-hero-copy {
  max-width: 660px;
  margin: 20px auto 0 !important;
  text-wrap: balance;
}

.ai-hero-copy-secondary {
  margin-top: 10px !important;
}

.ai-bridge {
  padding: 58px 0 64px;
}

.ai-workbench-page h2 {
  color: #182238;
  font-size: 29px;
  font-weight: 750;
  line-height: 1.4;
}

.ai-section-intro {
  margin-top: 12px !important;
  color: #74849a;
  font-size: 17px;
  line-height: 1.6;
}

.ai-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 38px;
}

.ai-product img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 19px;
  object-fit: contain;
}

.ai-product h3 {
  margin-top: 14px;
  color: #24334d;
  font-size: 22px;
  font-weight: 750;
}

.ai-product-name,
.ai-bridge-result p {
  margin-top: 6px !important;
  color: #708199;
  font-size: 16px;
  line-height: 1.55;
}

.ai-product-detail {
  max-width: 300px;
  margin: 12px auto 0 !important;
  color: #687993;
  font-size: 15px;
  line-height: 1.65;
}

.ai-connection {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 12px auto 0;
}

.ai-bridge-result img {
  display: block;
  width: 102px;
  height: 102px;
  margin: 0 auto;
  object-fit: contain;
}

.ai-bridge-result h3 {
  margin-top: 12px;
  color: #283963;
  font-size: 28px;
  font-weight: 760;
}

.ai-bridge-result p {
  max-width: 560px;
  margin: 8px auto 0 !important;
}

.ai-story {
  padding: 60px 0 66px;
}

.ai-story p {
  max-width: 690px;
  margin: 22px auto 0 !important;
}

.ai-features {
  padding: 58px 0 54px;
}

.ai-feature {
  max-width: 690px;
  margin: 32px auto 0;
  padding: 8px 0;
}

.ai-feature-index {
  color: #7284a0;
  font-size: 15px;
  font-weight: 800;
}

.ai-feature h3 {
  margin-top: 8px;
  color: #202c43;
  font-size: 23px;
  font-weight: 760;
}

.ai-feature p {
  margin-top: 9px;
}

.ai-flow {
  padding: 60px 0 70px;
}

.ai-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
  margin-top: 42px;
}

.ai-flow-steps span {
  color: #7d8da3;
  font-size: 14px;
  font-weight: 700;
}

.ai-flow-steps h3 {
  margin-top: 8px;
  color: #24334d;
  font-size: 19px;
  font-weight: 750;
}

.ai-flow-steps p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
}

.ai-cta {
  padding: 60px 0 76px;
}

.ai-cta p {
  margin-top: 16px;
  color: #667993;
  font-size: 18px;
  line-height: 1.55;
}

.ai-cta p + p {
  margin-top: 3px;
}

.ai-cta small {
  display: block;
  margin-top: 22px;
  color: #73829a;
  font-size: 15px;
  line-height: 1.6;
}

.portal-footer {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px 22px;
  padding: 0 0 30px;
  color: #5f6f8b;
  font-size: 13px;
  font-weight: 400;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.policy-links a,
.copyright,
.filing-link {
  color: #8a96a8;
}

.policy-links a:hover,
.filing-link:hover {
  color: #5e6d82;
}

.ai-workbench-page[data-scroll-motion="ready"] .ai-reveal {
  opacity: 0;
  transform: translateY(48px);
}

.ai-workbench-page[data-scroll-motion="ready"] .ai-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .portal-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .ai-mobile-break { display: initial; }
  .ai-page-main { width: min(100% - 44px, 820px); padding-top: 66px; }
  .ai-hero { padding: 54px 0 58px; }
  .ai-hero-lead { font-size: clamp(13px, 3.8vw, 15px); white-space: nowrap; }
  .ai-hero-copy { font-size: 16px; text-wrap: wrap; }
  .ai-cta small { font-size: 13px; white-space: nowrap; }
  .ai-workbench-page h2 { font-size: 25px; }
  .ai-products { gap: 12px; }
  .ai-product h3 { font-size: 18px; }
  .ai-product-detail { font-size: 14px; }
  .ai-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
}

@media (max-width: 560px) {
  .portal-footer {
    align-items: center;
    gap: 10px;
    width: min(100% - 24px, 440px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    font-size: 12px;
  }
  .policy-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ai-workbench-page[data-scroll-motion="ready"] .ai-reveal {
    opacity: 1;
    transform: none;
  }
}
