:root {
    --home-ink: #071a33;
    --home-muted: #52647c;
    --home-blue: #155eef;
    --home-blue-dark: #0b43b8;
    --home-teal: #0e7490;
    --home-mint: #71e0c2;
    --home-bg: #f8fafc;
    --home-paper: #fff;
    --home-line: #dce5ee;
    --home-radius: 16px;
    --home-shadow: 0 24px 60px rgba(7, 26, 51, .11);
}

html {
    scroll-padding-top: 88px;
}

body.home-page {
    overflow-x: hidden;
    background: var(--home-bg);
    color: var(--home-ink);
    font-family: "DM Sans", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

body.home-page #main-content {
    width: 100%;
    max-width: none;
    margin: -34px 0 0;
    padding-bottom: 0;
}

.home-page .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 11px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--home-blue-dark);
    font-weight: 900;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.home-page .skip-link:focus {
    transform: translateY(0);
}

.home-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.home-header,
.hero-carousel {
    position: relative;
    min-height: clamp(720px, 92svh, 920px);
    background: var(--home-ink);
}

.home-header .site-nav {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 40;
    width: min(1200px, calc(100% - 48px));
    min-height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    transform: translateX(-50%);
}

.home-header .brand-mark,
.home-header .nav-actions > a,
.home-header .member-pill {
    color: #fff;
}

.home-header .brand-mark i {
    color: var(--home-mint);
}

.home-header .nav-actions > a,
.home-header .member-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 9px 12px;
    transition: background .18s ease, color .18s ease;
}

.home-header .nav-actions > a:hover,
.home-header .nav-actions > a:focus-visible,
.home-header .member-pill:hover,
.home-header .member-pill:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, .14);
}

.home-header .login-link {
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(7, 26, 51, .18);
}

.home-header .menu-toggle {
    border-color: rgba(255, 255, 255, .42);
    background: rgba(7, 26, 51, .38);
    color: #fff;
    backdrop-filter: blur(12px);
}

.hero-carousel {
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(4, 17, 38, .9) 0%, rgba(4, 17, 38, .72) 35%, rgba(4, 17, 38, .14) 68%),
        linear-gradient(180deg, rgba(4, 17, 38, .18) 54%, rgba(4, 17, 38, .78) 100%);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 142px 0 170px;
}

.hero-slide-copy {
    width: min(640px, 55vw);
    color: #fff;
}

.hero-kicker,
.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    color: var(--home-mint);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-kicker::before,
.home-eyebrow::before {
    width: 30px;
    height: 2px;
    border-radius: 20px;
    background: currentColor;
    content: "";
}

.hero-slide h1,
.hero-slide h2 {
    max-width: 9em;
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 6.1vw, 86px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-slide-lead {
    max-width: 570px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.home-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.home-button-primary {
    background: var(--home-blue);
    color: #fff;
    box-shadow: 0 16px 34px rgba(21, 94, 239, .3);
}

.home-button-primary:hover {
    background: #0f52d7;
    color: #fff;
}

.home-button-secondary {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    backdrop-filter: blur(12px);
}

.home-button-secondary:hover {
    background: #fff;
    color: var(--home-ink);
}

.hero-proof {
    position: absolute;
    bottom: 35px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 800;
    transform: translateX(-50%);
}

.hero-proof span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-proof i {
    color: var(--home-mint);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-control {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 12px;
    background: rgba(7, 26, 51, .42);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background .18s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
    outline: 3px solid rgba(113, 224, 194, .42);
    background: rgba(21, 94, 239, .85);
}

.hero-dots {
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 26px;
    height: 8px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.hero-dot[aria-current="true"] {
    width: 46px;
    background: var(--home-mint);
}

.home-alerts {
    display: grid;
    gap: 10px;
    padding-top: 24px;
}

.home-alerts .notice,
.home-alerts .setup-alert {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    padding: 13px 16px;
    color: #1e3a8a;
}

.home-trust {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -1px;
    border: 1px solid var(--home-line);
    border-top: 0;
    border-radius: 0 0 var(--home-radius) var(--home-radius);
    background: #fff;
}

.home-trust-item {
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border-right: 1px solid var(--home-line);
}

.home-trust-item:last-child {
    border-right: 0;
}

.home-trust-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf4ff;
    color: var(--home-blue);
}

.home-trust strong,
.home-trust span {
    display: block;
}

.home-trust strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.home-trust-item div > span {
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-section {
    padding: 104px 0;
}

.home-section + .home-section {
    border-top: 1px solid rgba(220, 229, 238, .7);
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 42px;
}

.home-section-copy {
    max-width: 720px;
}

.home-eyebrow {
    color: var(--home-blue);
}

.home-section h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(38px, 4.8vw, 64px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.home-section-intro {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.75;
}

.home-text-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-blue-dark);
    text-decoration: none;
    font-weight: 900;
}

.home-text-link:hover {
    color: var(--home-blue);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-product-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-product-card:hover {
    border-color: #b7c9e5;
    box-shadow: 0 18px 44px rgba(7, 26, 51, .1);
    transform: translateY(-4px);
}

.home-product-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.home-product-visual {
    position: relative;
    min-height: 126px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px;
    background:
        radial-gradient(circle at 86% 14%, rgba(113, 224, 194, .5), transparent 35%),
        linear-gradient(135deg, #0b43b8, #0e7490);
    color: #fff;
}

.home-product-visual::after {
    position: absolute;
    right: -18px;
    bottom: -44px;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    content: "";
}

.home-product-region {
    position: relative;
    z-index: 1;
    max-width: 72%;
    font-size: 15px;
    font-weight: 900;
}

.home-product-visual > i {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .9);
    font-size: 33px;
}

.home-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 21px;
}

.home-product-topline,
.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-product-badge {
    border-radius: 99px;
    background: #e6f8f3;
    padding: 5px 9px;
    color: #0b6657;
    font-size: 11px;
    font-weight: 900;
}

.home-product-code {
    overflow: hidden;
    color: #7a8ba1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-card h3 {
    margin: 15px 0 13px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.4;
}

.home-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-product-meta span {
    border-radius: 8px;
    background: #f1f5f9;
    padding: 6px 9px;
    color: #43556c;
    font-size: 12px;
    font-weight: 800;
}

.home-product-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 15px 0 20px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--home-line);
}

.home-product-price small,
.home-product-price strong {
    display: block;
}

.home-product-price small {
    color: var(--home-muted);
    font-size: 11px;
}

.home-product-price strong {
    margin-top: 2px;
    color: var(--home-blue-dark);
    font-size: 21px;
}

.home-product-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--home-blue);
}

.home-empty {
    grid-column: 1 / -1;
    border: 1px dashed #b8c8da;
    border-radius: var(--home-radius);
    padding: 30px;
    background: #fff;
    color: var(--home-muted);
    text-align: center;
}

.home-how {
    background: #071a33;
    color: #fff;
}

.home-how .home-eyebrow {
    color: var(--home-mint);
}

.home-how h2 {
    color: #fff;
}

.home-how .home-section-intro {
    color: rgba(255, 255, 255, .7);
}

.home-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-step {
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--home-radius);
    background: rgba(255, 255, 255, .055);
    padding: 28px;
}

.home-step-number {
    display: block;
    color: var(--home-mint);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-step h3 {
    margin: 56px 0 10px;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
}

.home-step p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: 1.25fr .875fr .875fr;
    gap: 20px;
}

.home-blog-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    color: var(--home-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-blog-card:hover {
    color: var(--home-ink);
    box-shadow: var(--home-shadow);
    transform: translateY(-4px);
}

.home-blog-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-blog-card:hover img {
    transform: scale(1.025);
}

.home-blog-card-content {
    padding: 22px;
}

.home-blog-card-content > span {
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-blog-card h3 {
    margin: 9px 0;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.4;
}

.home-blog-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-final-cta {
    border-top: 0 !important;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: clamp(86px, 9vw, 128px) 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(113, 224, 194, .22), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(21, 94, 239, .42), transparent 32%),
        linear-gradient(135deg, #06172f 0%, #0b43b8 52%, #0e7490 100%);
    isolation: isolate;
}

.home-final-cta::after {
    position: absolute;
    right: -130px;
    bottom: -180px;
    z-index: -1;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    content: "";
    pointer-events: none;
}

.home-final-cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 14%, rgba(113, 224, 194, .26), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055));
    padding: clamp(32px, 6vw, 70px);
    color: #fff;
    box-shadow: 0 28px 74px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
}

.home-final-cta-panel::before {
    position: absolute;
    top: -44px;
    right: 18%;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(113, 224, 194, .18);
    filter: blur(4px);
    content: "";
    pointer-events: none;
}

.home-final-cta-panel h2 {
    color: #fff;
    text-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.home-final-cta-panel p:not(.hero-kicker) {
    max-width: 620px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .84);
    line-height: 1.7;
}

.home-final-cta-panel .home-button {
    flex: 0 0 auto;
    background: #fff;
    color: var(--home-blue-dark);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.home-final-cta-panel .home-button:hover,
.home-final-cta-panel .home-button:focus-visible {
    background: #a6f1dc;
    color: #06172f;
}

@media (max-width: 1024px) {
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-item:nth-child(2) {
        border-right: 0;
    }

    .home-trust-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--home-line);
    }

    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-blog-card:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.15fr .85fr;
    }

    .home-blog-card:first-child img {
        height: 100%;
        aspect-ratio: auto;
    }

    .hero-proof {
        left: 24px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-shell,
    .home-header .site-nav,
    .hero-slide-content {
        width: min(100% - 32px, 1200px);
    }

    .home-header,
    .hero-carousel {
        min-height: max(700px, 92svh);
    }

    .home-header .site-nav {
        min-height: 70px;
    }

    .hero-slide::before {
        background:
            linear-gradient(90deg, rgba(4, 17, 38, .8), rgba(4, 17, 38, .3)),
            linear-gradient(180deg, rgba(4, 17, 38, .12) 34%, rgba(4, 17, 38, .9) 82%);
    }

    .hero-slide img {
        object-position: 60% center;
    }

    .hero-slide-content {
        display: flex;
        align-items: flex-end;
        min-height: max(700px, 92svh);
        padding: 112px 0 142px;
    }

    .hero-slide-copy {
        width: 100%;
    }

    .hero-slide h1,
    .hero-slide h2 {
        max-width: 8em;
        font-size: clamp(42px, 11.5vw, 62px);
    }

    .hero-slide-lead {
        max-width: 520px;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-proof {
        right: 16px;
        bottom: 82px;
        left: 16px;
        gap: 8px;
        justify-content: space-between;
        font-size: 11px;
    }

    .hero-proof span:nth-child(2) {
        display: none;
    }

    .hero-controls {
        right: 16px;
        bottom: 21px;
        left: 16px;
        justify-content: flex-end;
    }

    .hero-dots {
        margin-right: auto;
        order: -1;
    }

    .home-section {
        padding: 76px 0;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .home-section h2 {
        font-size: clamp(34px, 9vw, 48px);
    }

    .home-step-grid {
        grid-template-columns: 1fr;
    }

    .home-step {
        min-height: 0;
    }

    .home-step h3 {
        margin-top: 28px;
    }

    .home-final-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero-ctas {
        display: grid;
    }

    .home-button {
        width: 100%;
    }

    .home-trust {
        grid-template-columns: 1fr;
    }

    .home-trust-item {
        min-height: 92px;
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
        padding: 18px;
    }

    .home-trust-item:last-child {
        border-bottom: 0;
    }

    .home-product-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .home-blog-card:first-child {
        grid-column: auto;
        display: block;
    }

    .home-blog-card:first-child img {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .home-button,
    .home-product-card,
    .home-blog-card,
    .home-blog-card img {
        transition: none !important;
    }
}
