:root {
    --font-sans: "Inter",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", Roboto, system-ui, -apple-system,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;

    /* ========== Color palette（基礎色票） ========== */
    --color-blue: #4BAEE5;
    --color-accent: #F6A23A; /* 重點色（原 title-accent / accent） */
    --color-cta: #FE8839;
    --color-cta-hover: #FFB270;
    --color-btn-register: #E5624B;
    --color-btn-register-hover: #C53F27;

    /* 背景 / 表面 */
    --color-bg-soft: #F8FCFF; /* 淡藍底（第二/四頁） */
    --color-bg-onboard-left: #FFF6ED; /* 最終頁上半左側 */
    --color-bg-integrations: #F0F9FF; /* 最終頁下半 */

    /* ========== Spacing（間距尺度） ========== */
    --space: 12px; /* base 單位 */
    --gap-md: 40px; /* 設計稿常用 40 */
    --gap-lg: 54px; /* 設計稿常用 54 */

    /* ========== Layout ========== */
    --container: 1100px;
    --container-middle: 1250px;
    --container-wide: 1346px;

    /* ========== Component Tokens ========== */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 30px;

    --card-size: 198px; /* MFA 卡片 */
    --card-radius: var(--radius-xl);
}

.page-section {
    scroll-margin-top: var(--header-offset, 72px);
}

.section-nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.section-nav .nav-links {
    display: flex;
    justify-content: start;
    gap: 48px;
    list-style: none;
    padding: 1.5% 5%;
    margin: 0;
}

.section-nav .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.section-nav .nav-links a:hover {
    color: #24ADF1;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 999;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 64px;
}

.sticky-header.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-header .nav-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;

    a {
        position: relative;
        text-decoration: none;
        color: #111;
        font-weight: 600;
        transition: color .2s ease;

        &.active {
            color: #24ADF1;
        }

        &.active::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: #24ADF1;
            border-radius: 2px;
        }

        &:hover {
            color: #4BAEE5;
        }
    }
}

@media (max-width: 768px) {
    .sticky-header {
        height: 52px;
        padding: 0 12px;
    }

    .sticky-header .nav-links {
        gap: 10px;
    }

    .sticky-header .try-button {
        margin-right: 10%;
    }

    .sticky-header .nav-links a {
        font-size: 13px;
    }

    .sticky-header .btn-header {
        font-size: 13px;
        padding: 6px 10px;
    }
}

[id].page-section, section[id] {
    scroll-margin-top: var(--header-offset, 72px);
}

.container-fluid {
    background: unset !important;
    padding: 0 !important;
}

.bg-color1 {
    overflow: hidden;
}

.bg-color1 .row {
    margin: 0;
}

.bg-color1 .one {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: clamp(520px, 42vw, 860px);
    display: flex;
    align-items: center;
}

.bg-color1 .one .one-title {
    position: absolute;
    z-index: 2;

    left: clamp(32px, 7vw, 160px);
    top: 35%;
    transform: translateY(-50%);

    width: min(46vw, 820px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: left;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.bg-color1 .one > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-logo {
    border-radius: 0 !important;
}

.hero-title {
    margin: 0;
    padding: 0;

    font-size: clamp(28px, 53px, 64px);
    font-family: Roboto, sans-serif;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;

    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-wrap-mode: nowrap;
}

.hero-sep {
    width: 100%;
    max-width: 760px;
    height: 2px;
    background: #717171;
    margin: 24px 0 28px;
}

.hero-subtitle {
    margin: 0 0 32px;
    padding: 0;

    font-size: clamp(20px, 48px, 46px);
    line-height: 1.35;
    color: #0f172a;

    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.hero-cta {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.hero-cta .btn.btn-primary {
    min-width: clamp(140px, 10vw, 240px);
    height: auto;
    padding: 14px 36px;
    border-radius: 999px;

    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 700;
}

.info-blade {
    background: var(--color-bg-integrations) !important;
    padding: 48px 0;
}

.feature-copy {
    color: #000;
}

.feature-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.feature-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    font-family: Roboto, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #135E91;
}

.badge-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #EEF6FF;
    color: #135E91;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .2px;
    vertical-align: middle;
    border: 1px black solid;
    margin-bottom: 2.5%;
}

.feature-body {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.8;
}

.section-deploy {
    background: var(--color-bg-soft);
    padding: calc(var(--space) * 4) 0;

    scroll-margin-top: var(--header-offset, 72px);
}

.deploy-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 clamp(var(--space), 4vw, calc(var(--space) * 3));
}

.deploy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.mfa-copy {
    flex: 1 1 0;
}

.deploy-visual {
    flex: 1 1 0;
    text-align: right;
}

.deploy-visual img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}


.tag {
    margin-bottom: var(--space);
    display: inline-block;
    position: relative;
    padding: 6px 20px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    z-index: 0;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 3px;
        box-sizing: content-box;
        z-index: -1;
        opacity: 0; /* 預設不顯示 */
    }

    &::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 1px solid transparent;
        z-index: -2;
        opacity: 0; /* 預設不顯示 */
    }
}

.tag-orange {
    background-color: var(--color-cta);

    &::before {
        opacity: 1;
    }

    &::after {
        border-color: var(--color-cta);
        opacity: 1;
    }
}

.tag-blue {
    background-color: var(--color-blue);

    &::before {
        opacity: 1;
    }

    &::after {
        border-color: var(--color-blue);
        opacity: 1;
    }
}

.title {
    margin: 0 0 var(--space) 0;
    font-size: clamp(22px, 3vw, 32px);
    font-family: Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.3;
}


.section-structure {
    background: #fff;
    padding: var(--gap-lg) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.section-benefits {
    background: #fff;
    padding: var(--gap-lg) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.benefits-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.benefit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: var(--gap-lg);
}

.benefit-row.reverse {
    direction: rtl;
}

.benefit-row.reverse > * {
    direction: ltr;
}

.benefit-gap {
    height: var(--gap-lg);
}

.benefit-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    font-family: Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.35;
}

.benefit-title .accent {
    color: var(--color-accent);
}

.benefit-illustration img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: transparent;
}

.ill-660x513 img {
    aspect-ratio: 660 / 513;
}

.section-context {
    background: var(--color-bg-soft);
    padding: var(--gap-lg) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.structure-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.ctx-wrap {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.ctx-head {
    text-align: center;
    margin-bottom: var(--gap-md);
}

.ctx-title {
    margin: 12px 0;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.3;
}

.ctx-lede {
    margin: 0;
    color: #445;
    line-height: 1.75;
    font-size: clamp(14px, 1.6vw, 20px);
}

.ill-1346x439 img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

/* ============ 區塊 C（MFA） ============ */
.section-mfa {
    background: var(--color-bg-integrations);
    padding: var(--gap-lg) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.mfa-wrap {
    max-width: var(--container-middle);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.mfa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap-lg);
    align-items: start;
}

.mfa-title {
    margin: 12px 0;
    font-size: 14px;
    color: #2b3c55;
    text-align: center;
    line-height: 1.4;
}

.mfa-bullets {
    list-style: none; /* 隱藏預設符號 */
    margin: 36px 0 0;
    padding: 0;

    display: grid;
    row-gap: 16px;
    line-height: 1.8;
    color: #000000;
    font-size: clamp(14px, 1.6vw, 17px);

    li {
        position: relative;
        padding-left: 28px;

        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 12%;
            width: 20px;
            height: 20px;
            background-image: url("../images/home/icon-check.svg");
            background-repeat: no-repeat;
            background-size: contain;
        }
    }
}

.mfa-cards {
    --card-size: 198px;
    --card-radius: 30px;
    display: grid;
    grid-template-columns: repeat(3, var(--card-size));
    gap: 28px 20px;
    justify-content: end;
}

.mfa-item {
    width: var(--card-size);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mfa-card {
    width: 100%;
    height: var(--card-size);
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mfa-card img {
    height: auto;
    display: block;
}

.section-onboard {
    background: var(--color-bg-onboard-left);
    padding: calc(var(--space) * 4) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.onboard-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(var(--space), 4vw, calc(var(--space) * 3));
}

.steps {
    display: block;
    overflow: visible;
    padding-top: 11.5%;
}

.step-img {
    display: block;
    width: 100%;
    height: auto;
}

.ctx-bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 24px;
    row-gap: 8px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 17px;
}

.ctx-bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.8;
    white-space: nowrap;
}

.ctx-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 20px;
    height: 20px;
    background-image: url("../images/home/icon-check.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.ctx-bullets li:nth-child(3) {
    margin-inline: auto;
}

@media (max-width: 768px) {
    .ctx-bullets li {
        white-space: normal;
    }
}

.cta-lite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 37px;
    flex-shrink: 0;
    background: var(--color-btn-register);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.cta-lite:hover {
    background: var(--color-btn-register-hover);
    transform: translateY(-1px);
}

.section-integrations {
    background: #fff;
    padding: calc(var(--space) * 4) 0;
    scroll-margin-top: var(--header-offset, 72px);
}

.integ-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(var(--space), 4vw, calc(var(--space) * 3));
}

.integ-title {
    text-align: center;
    margin: 0 0 var(--gap-md) 0;
    font-size: clamp(20px, 2.8vw, 32px);
    font-family: Roboto, sans-serif;
    font-weight: 800;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 24px;
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    min-height: 88px;
    box-sizing: border-box;
}

.integration-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.integration-logo.logo-large {
    max-height: 48px;
}

.integration-logo.logo-xlarge {
    max-height: 54px;
}

.integration-logo.logo-scale-up {
    transform: scale(1.15);
    transform-origin: center;
}

@media (max-width: 992px) {
    .integration-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .integration-item {
        padding: 14px 10px;
        min-height: 76px;
    }

    .integration-logo {
        max-height: 34px;
    }
}

@media (max-width: 576px) {
    .integration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .integration-item {
        padding: 12px 8px;
        min-height: 68px;
    }

    .integration-logo {
        max-height: 30px;
    }
}

@media (max-width: 992px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .ctx-b, .mfa-row {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .mfa-cards {
        justify-content: start;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mfa-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .benefit-row {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .benefit-row.reverse {
        direction: ltr;
    }

    /* 直排時取消反轉 */
    .benefit-gap {
        height: var(--gap-lg);
    }

    .benefit-illustration {
        order: -1;
    }
}

@media (max-width: 1280px) {
    .section-deploy {
        padding: calc(var(--space) * 3) 0;
    }
}

@media (max-width: 992px) {
    .info-blade {
        padding: 36px 0;
    }
}

@media (max-width: 1200px) {
    .bg-color1 .one .one-title {
        left: clamp(24px, 5vw, 80px);
        width: min(50vw, 680px);
    }

    .hero-title {
        font-size: clamp(26px, 2.6vw, 48px);
    }

    .hero-subtitle {
        font-size: clamp(18px, 2vw, 34px);
    }
}

@media (max-width: 992px) {
    .bg-color1 .one {
        min-height: 560px;
    }

    .bg-color1 .one .one-title {
        left: 24px;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }

    .hero-sep {
        max-width: 100%;
    }
}