* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans TC",
        Arial,
        sans-serif;

    color: #162033;
    background: #ffffff;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(224, 230, 240, .9);
}

.header-inner {
    max-width: 1380px;
    height: 82px;

    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    line-height: 1;

    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.brand-ct {
    color: #101a33;
}

.brand-art,
.hero-art {
    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #2563eb,
            #18a77b
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.brand-subtitle {
    margin-top: 7px;

    color: #7b879d;

    font-size: 11px;
    letter-spacing: .7px;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    position: relative;

    color: #293247;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -14px;

    height: 2px;

    border-radius: 999px;

    background: #2563eb;
}

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    font-size: 28px;
    color: #25314a;

    cursor: pointer;
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;

    overflow: hidden;

    min-height: 540px;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(243, 247, 255, .9),
            transparent 32%
        ),
        radial-gradient(
            circle at 78% 20%,
            rgba(230, 231, 255, .92),
            transparent 31%
        ),
        radial-gradient(
            circle at 92% 78%,
            rgba(221, 252, 241, .75),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #ffffff 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 2;

    max-width: 1380px;

    min-height: 540px;

    margin: 0 auto;
    padding: 80px 32px 70px;

    display: grid;

    grid-template-columns:
        1.1fr
        .9fr;

    align-items: center;

    gap: 40px;
}

.hero-logo {
    line-height: .92;

    font-size: clamp(78px, 8vw, 118px);
    font-weight: 900;

    letter-spacing: -7px;
}

.hero-ct {
    color: #0e1830;
}

.hero-kicker {
    margin-top: 26px;

    color: #6682c0;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 3px;
}

.hero-copy h1 {
    margin: 10px 0 0;

    color: #34435f;

    font-size: 39px;
    letter-spacing: 7px;
}

.hero-description {
    margin: 24px 0 0;

    color: #66748e;

    font-size: 18px;
    line-height: 1.85;
}

.hero-actions {
    margin-top: 30px;

    display: flex;
    gap: 12px;
}

.hero-primary,
.hero-secondary {
    min-width: 132px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
}

.hero-primary {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #6d43e7,
            #2563eb
        );

    box-shadow:
        0 10px 24px
        rgba(78, 82, 217, .18);
}

.hero-secondary {
    color: #3c4b67;
    background: rgba(255, 255, 255, .8);

    border: 1px solid #dbe3f0;
}

.hero-signature {
    margin-top: 28px;

    color: #3e5e9c;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        cursive;

    font-size: 21px;

    transform: rotate(-4deg);
}

.hero-visual {
    position: relative;

    min-height: 350px;
}

.visual-card {
    position: absolute;

    width: 200px;
    height: 160px;

    padding: 24px;

    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 26px;

    display: flex;
    flex-direction: column;

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 50px
        rgba(47, 61, 102, .10);
}

.visual-card strong {
    margin-top: auto;

    font-size: 25px;
}

.visual-card span:last-child {
    margin-top: 3px;

    color: #79869d;

    font-size: 12px;
}

.visual-card-pdf {
    left: 30px;
    top: 55px;

    background:
        linear-gradient(
            145deg,
            rgba(235, 244, 255, .96),
            rgba(255, 255, 255, .85)
        );

    transform: rotate(-8deg);
}

.visual-card-video {
    right: 40px;
    top: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(245, 235, 255, .96),
            rgba(255, 255, 255, .85)
        );

    transform: rotate(7deg);
}

.visual-card-pic {
    left: 150px;
    bottom: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(229, 251, 241, .96),
            rgba(255, 255, 255, .86)
        );

    transform: rotate(-2deg);
}

.visual-small {
    color: #2d78dc;

    font-size: 12px;
    font-weight: 900;
}

.visual-play {
    color: #8e43de;

    font-size: 27px;
}

.visual-spark {
    color: #13a16d;

    font-size: 28px;
}

.visual-note {
    position: absolute;

    right: 60px;
    bottom: 0;

    color: #5b70a5;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        cursive;

    font-size: 18px;

    transform: rotate(-7deg);
}

.hero-blob {
    position: absolute;

    border-radius: 999px;

    filter: blur(1px);
}

.hero-blob-one {
    width: 420px;
    height: 420px;

    top: -120px;
    right: -100px;

    background:
        radial-gradient(
            circle,
            rgba(207, 215, 255, .56),
            transparent 70%
        );
}

.hero-blob-two {
    width: 330px;
    height: 330px;

    bottom: -120px;
    right: 22%;

    background:
        radial-gradient(
            circle,
            rgba(210, 250, 235, .50),
            transparent 70%
        );
}

.hero-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #9cb0e3;
}

.hero-dot-one {
    left: 8%;
    top: 20%;
}

.hero-dot-two {
    right: 8%;
    top: 35%;
}


/* ============================================================
   Common section
   ============================================================ */

.section-header {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}

.section-eyebrow {
    color: #5578bd;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2.8px;
}

.section-header h2,
.about-copy h2,
.disclaimer-heading h2 {
    margin: 8px 0 12px;

    color: #172136;

    font-size: 32px;
}

.section-header p,
.about-copy p {
    margin: 0;

    color: #66748a;

    font-size: 15px;
    line-height: 1.85;
}


/* ============================================================
   Services
   ============================================================ */

.services-section {
    padding: 80px 28px 40px;
}

.service-grid {
    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.service-card {
    position: relative;

    min-height: 390px;

    padding: 28px;

    border-radius: 24px;

    border: 1px solid rgba(214, 224, 238, .8);

    box-shadow:
        0 14px 36px
        rgba(28, 44, 78, .06);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 48px
        rgba(28, 44, 78, .11);
}

.service-card-blue {
    background:
        linear-gradient(
            180deg,
            #edf5ff 0%,
            #fbfdff 100%
        );
}

.service-card-purple {
    background:
        linear-gradient(
            180deg,
            #f6efff 0%,
            #fdfbff 100%
        );
}

.service-card-green {
    background:
        linear-gradient(
            180deg,
            #ebfaf4 0%,
            #fbfffd 100%
        );
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(255, 255, 255, .92);

    box-shadow:
        0 8px 24px
        rgba(33, 51, 90, .08);

    font-size: 20px;
    font-weight: 900;
}

.service-number {
    color: rgba(65, 79, 110, .22);

    font-size: 26px;
    font-weight: 900;
}

.service-domain {
    margin-top: 27px;

    font-size: 13px;
    font-weight: 800;
}

.service-card-blue .service-domain {
    color: #2d78dd;
}

.service-card-purple .service-domain {
    color: #8550d8;
}

.service-card-green .service-domain {
    color: #139266;
}

.service-card h3 {
    margin: 5px 0 0;

    color: #172033;

    font-size: 25px;
}

.service-card p {
    min-height: 82px;

    margin: 16px 0;

    color: #627088;

    font-size: 14px;
    line-height: 1.85;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}

.service-tags span {
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .76);

    color: #65738b;

    font-size: 11px;
    font-weight: 700;
}

.service-button {
    min-height: 50px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 14px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
}

.service-card-blue .service-button {
    background:
        linear-gradient(
            90deg,
            #2f83f3,
            #1764db
        );
}

.service-card-purple .service-button {
    background:
        linear-gradient(
            90deg,
            #9c58df,
            #7041d5
        );
}

.service-card-green .service-button {
    background:
        linear-gradient(
            90deg,
            #23b675,
            #15955e
        );
}


/* ============================================================
   About
   ============================================================ */

.about-section {
    padding: 65px 28px 20px;
}

.about-panel {
    max-width: 1120px;

    margin: 0 auto;

    padding: 42px;

    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    gap: 50px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #f7f9fd,
            #ffffff
        );

    border: 1px solid #e7ebf3;
}

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

.about-values {
    display: grid;

    gap: 12px;
}

.value-item {
    padding: 17px 18px;

    display: grid;

    grid-template-columns:
        45px
        1fr;

    align-items: center;

    column-gap: 8px;

    border-radius: 16px;

    background: #ffffff;

    border: 1px solid #e7ebf2;
}

.value-item span {
    grid-row: span 2;

    color: #8ba0cb;

    font-size: 12px;
    font-weight: 900;
}

.value-item strong {
    color: #28344a;

    font-size: 16px;
}

.value-item small {
    color: #7b8799;

    font-size: 12px;
}


/* ============================================================
   Disclaimer
   ============================================================ */

.disclaimer-section {
    padding: 55px 28px 70px;
}

.disclaimer-panel {
    max-width: 1120px;

    margin: 0 auto;

    padding: 34px;

    border-radius: 26px;

    border: 1px solid #e7eaf0;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fcfdff
        );
}

.disclaimer-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 28px;
}

.disclaimer-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ff756f,
            #eb4747
        );

    color: #ffffff;

    font-size: 29px;
    font-weight: 900;
}

.disclaimer-heading h2 {
    margin-bottom: 0;
}

.disclaimer-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.disclaimer-item {
    padding: 18px 20px;

    border-radius: 16px;

    background: #f8fafc;
}

.disclaimer-item strong {
    color: #27344a;

    font-size: 14px;
}

.disclaimer-item p {
    margin: 7px 0 0;

    color: #677386;

    font-size: 13px;
    line-height: 1.75;
}


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background:
        linear-gradient(
            115deg,
            #111c2d,
            #182f4a
        );

    color: #ffffff;
}

.footer-inner {
    max-width: 1380px;

    min-height: 155px;

    margin: 0 auto;
    padding: 30px 32px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    gap: 30px;

    align-items: center;
}

.footer-logo {
    font-size: 29px;
    font-weight: 900;
}

.footer-logo span {
    color: #ffffff;
}

.footer-logo strong {
    background:
        linear-gradient(
            90deg,
            #9b7cff,
            #60a5fa,
            #38d49b
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.footer-subtitle {
    margin-top: 6px;

    color: #9eacbf;

    font-size: 11px;
    letter-spacing: .5px;
}

.footer-links {
    display: flex;
    justify-content: center;

    gap: 24px;
}

.footer-links a {
    color: #d6deea;

    text-decoration: none;

    font-size: 13px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-meta {
    text-align: right;

    color: #97a7bb;

    font-size: 12px;
}

.footer-signature {
    margin-bottom: 8px;

    color: #ffffff;

    font-family:
        "Segoe Print",
        "Bradley Hand",
        cursive;

    font-size: 18px;

    transform: rotate(-4deg);
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {

    .main-nav {
        position: fixed;

        top: 82px;
        left: 18px;
        right: 18px;

        display: none;

        padding: 18px;

        flex-direction: column;

        gap: 0;

        border-radius: 16px;

        background: rgba(255, 255, 255, .98);

        border: 1px solid #e5eaf2;

        box-shadow:
            0 18px 50px
            rgba(34, 49, 82, .15);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 13px 8px;
    }

    .main-nav a.active::after {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        padding-top: 58px;
    }

    .hero-visual {
        max-width: 590px;

        width: 100%;

        margin: 0 auto;
    }

    .service-grid {
        grid-template-columns: 1fr;

        max-width: 620px;
    }

    .service-card {
        min-height: auto;
    }

    .service-card p {
        min-height: 0;
    }

    .about-panel {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-meta {
        text-align: center;
    }

}

@media (max-width: 650px) {

    .header-inner {
        height: 72px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .main-nav {
        top: 72px;
    }

    .brand-mark {
        font-size: 27px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;

        padding:
            48px
            20px
            55px;
    }

    .hero-logo {
        font-size: 68px;
        letter-spacing: -4px;
    }

    .hero-copy h1 {
        font-size: 29px;
        letter-spacing: 4px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        max-width: 250px;
    }

    .hero-visual {
        min-height: 310px;

        transform: scale(.88);

        transform-origin: top center;
    }

    .visual-card-pdf {
        left: 0;
    }

    .visual-card-video {
        right: 0;
    }

    .visual-card-pic {
        left: 82px;
    }

    .services-section,
    .about-section,
    .disclaimer-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-header h2,
    .about-copy h2,
    .disclaimer-heading h2 {
        font-size: 26px;
    }

    .about-panel,
    .disclaimer-panel {
        padding: 24px;
    }

    .disclaimer-heading {
        align-items: flex-start;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* ============================================================
   CT-Art account entry
   ============================================================ */

.account-link {
    padding: 10px 18px !important;

    border-radius: 999px;

    color: #ffffff !important;

    background:
        linear-gradient(
            90deg,
            #7047df,
            #426fe1
        );

    box-shadow:
        0 8px 20px
        rgba(75, 79, 200, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease !important;
}

.account-link::after {
    display: none !important;
}

.account-link:hover {
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 11px 25px
        rgba(75, 79, 200, .25);
}


/* ============================================================
   Free campaign badge
   ============================================================ */

.hero-free-badge {
    width: fit-content;

    margin-bottom: 27px;
    padding: 10px 15px 10px 11px;

    display: inline-flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        rgba(103, 79, 218, .18);

    border-radius: 999px;

    color: #44358d;
    text-decoration: none;

    background:
        linear-gradient(
            90deg,
            rgba(246, 241, 255, .96),
            rgba(235, 244, 255, .96)
        );

    box-shadow:
        0 8px 24px
        rgba(70, 72, 160, .08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.hero-free-badge:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(70, 72, 160, .14);
}

.hero-free-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7450e5,
            #4176e7
        );

    font-size: 16px;
}

.hero-free-copy {
    display: flex;
    align-items: center;

    gap: 9px;
}

.hero-free-copy strong {
    color: #392c82;

    font-size: 13px;
    font-weight: 900;
}

.hero-free-copy small {
    color: #697696;

    font-size: 12px;
    font-weight: 700;
}

.hero-free-arrow {
    margin-left: 3px;

    color: #6d5bd3;

    font-size: 16px;
    font-weight: 900;
}


/* Hero 登入按鈕 */

.hero-account-button {
    border-color:
        rgba(89, 101, 196, .22);

    color: #5263bc;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #f5f6ff
        );
}

.hero-account-button:hover {
    border-color:
        rgba(89, 101, 196, .35);

    color: #4055bb;

    transform: translateY(-1px);
}


/* ============================================================
   Account entry responsive
   ============================================================ */

@media (max-width: 980px) {

    .account-link {
        margin-top: 9px;

        text-align: center;
    }

}


@media (max-width: 650px) {

    .hero-free-badge {
        margin-bottom: 22px;

        padding-right: 12px;
    }

    .hero-free-copy {
        flex-direction: column;
        align-items: flex-start;

        gap: 1px;
    }

    .hero-free-copy strong {
        font-size: 12px;
    }

    .hero-free-copy small {
        font-size: 10px;
    }

}


/* ============================================================
   Logged-in account menu
   ============================================================ */

.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 230px;

    padding: 10px;

    border: 1px solid #e5e9f2;
    border-radius: 16px;

    background: rgba(255, 255, 255, .98);

    box-shadow:
        0 18px 45px
        rgba(29, 43, 78, .16);

    z-index: 300;
}

.account-dropdown[hidden] {
    display: none;
}

.account-dropdown-user {
    padding: 10px 11px 13px;

    border-bottom: 1px solid #edf0f5;

    margin-bottom: 6px;
}

.account-dropdown-user strong {
    display: block;

    color: #202b42;

    font-size: 14px;
}

.account-dropdown-user small {
    display: block;

    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #8a94a8;

    font-size: 11px;
}

.account-dropdown > a,
.account-dropdown > button {
    width: 100%;

    padding: 10px 11px;

    display: block;

    border: 0;
    border-radius: 10px;

    color: #49556d;
    background: transparent;

    text-align: left;
    text-decoration: none;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.account-dropdown > a:hover,
.account-dropdown > button:hover {
    color: #365fc8;
    background: #f3f6fd;
}

.account-dropdown > button {
    color: #c34852;
}

.account-dropdown > button:hover {
    color: #b8323d;
    background: #fff2f3;
}

.account-link.logged-in::after {
    content: " ▾" !important;

    position: static !important;

    display: inline !important;

    width: auto !important;
    height: auto !important;

    background: none !important;

    font-size: 11px;
}


/* 手機選單內不要使用浮動 dropdown */

@media (max-width: 980px) {

    .account-menu {
        width: 100%;
    }

    .account-dropdown {
        position: static;

        width: 100%;

        margin-top: 8px;

        box-shadow: none;
    }

}
