:root {
    --blue: #148cff;
    --ink: #30343b;
    --muted: #707984;
    --light: #9aa2ad;
    --line: #e6ebf0;
    --page: #f8f9fa;
    --wrap: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(58, 96, 140, .08);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    width: min(var(--wrap), calc(100% - 64px));
    height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 180px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 56px;
    color: #2f343b;
    font-size: 16px;
    font-weight: bold;
}

.site-nav a {
    position: relative;
    padding: 10px 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle,
.mobile-nav {
    display: none;
}

.hero {
    height: 720px;
    background: url("./assets/hero-banner-bg.webp") center top / cover no-repeat;
}

.hero__inner {
    position: relative;
    width: min(var(--wrap), calc(100% - 64px));
    margin: 0 auto;
    padding-top: 178px;
}

.hero__ghost {
    position: absolute;
    top: 140px;
    left: 0;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(20, 140, 255, .09);
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.hero__title-wrap {
    position: relative;
    width: 495px;
    margin-bottom: 24px;
}

.hero__title {
    width: 100%;
    height: auto;
}

.hero__copy {
    width: 450px;
    margin: 0;
    color: #737b86;
    font-size: 16px;
    line-height: 1.7;
}

.section {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 1920px auto;
    background-position: center top;
}

.section__inner {
    position: relative;
    width: min(var(--wrap), calc(100% - 64px));
    margin: 0 auto;
}

.section__word {
    position: absolute;
    z-index: 0;
    width: auto;
    max-width: none;
    pointer-events: none;
}

.section__word--about {
    top: -20px;
    left: 0;
    width: 380px;
}

.section__word--publishing {
    top: -20px;
    left: 0;
    width: 380px;
}

.section__word--socialization {
    top: -20px;
    left: 0;
    width: 380px;
}

.section__word--tools {
    top: -20px;
    left: 0;
    width: 380px;
}

.section-title {
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
    margin: 0;
    color: #2d3138;
    font-size: 46px;
    font-weight: 900;
    -webkit-text-stroke: .35px currentColor;
    text-shadow: 0 0 .01px currentColor;
    line-height: 1;
}

.about {
    padding-top: 96px;
    background-image: url("./assets/section-bg-about.webp");
}

.about__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 520px 588px;
    gap: 92px;
    align-items: center;
    margin-top: 34px;
}

.about__copy {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.about__copy h3 {
    margin: 0 0 18px;
    color: #454a52;
    font-size: 22px;
    font-weight: 900;
}

.about__quote {
    display: inline-block;
    width: 26px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: -2px;
}

.about__copy p {
    margin: 0 0 12px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.about__copy .en {
    color: #999;
    font-size: 14px;
    line-height: 1.75;
}

.about__visual {
    margin: 0;
}

.about__visual img {
    width: 588px;
}

.publishing {
    padding: 96px 0 82px;
    background-image: url("./assets/section-bg-publishing.webp");
}

.product {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
}

.product--publishing {
    grid-template-columns: 820px 380px;
    margin-top: 42px;
}

.product__visual {
    margin: 0;
}

.product__visual img,
.product__copy h3,
.product__copy p {
    height: auto;
    transition: opacity .22s ease, transform .22s ease;
}

.product.is-switching .product__visual img,
.product.is-switching .product__copy h3,
.product.is-switching .product__copy p {
    opacity: 0;
    transform: translateY(6px);
}

.product__visual--game img {
    width: 760px;
    max-width: none;
    margin-left: -8px;
}

.product__copy {
    width: min(460px, 100%);
    display: flex;
    flex-direction: column;
    align-items: end;
}

.product__copy h3 {
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
    margin: 0 0 26px;
    color: #343840;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
}

.product__copy p {
    white-space: nowrap;
    margin: 0;
    color: #666;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.product__copy .en {
    color: #999;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.slash {
    display: block;
    width: 42px;
    height: 30px;
    margin: 24px 0;
    background: url("./assets/decorative-slash.webp") center / contain no-repeat;
}

.more {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    width: 116px;
    height: 36px;
    margin-top: 23px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue);
    color: var(--blue);
    background: url("./assets/product-logo-frame-blue-1.webp") center / 100% 100% no-repeat;
    font-size: 14px;
    font-weight: 900;
    transition: color .2s ease, transform .2s ease, opacity .2s ease;
}

.more::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity .2s ease;
}

.more span {
    position: relative;
    z-index: 1;
}

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

.more:hover::before {
    opacity: 1;
}

.more.is-disabled {
    cursor: default;
    opacity: .45;
    pointer-events: none;
}

.logo-strip {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 168px;
}

.logo-strip__item {
    position: relative;
    width: 126px;
    height: 64px;
    border: 1px solid #dfe5ec;
    padding: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.logo-strip__item::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    background: url("./assets/product-logo-bg.webp") center / 100% 100% no-repeat;
    opacity: 0;
    transition: opacity .2s ease;
}

.logo-strip__item img {
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.logo-strip__item:hover,
.logo-strip__item:focus-visible,
.logo-strip__item.is-active {
    box-shadow: 0 8px 18px rgba(20, 140, 255, .12);
    transform: translateY(-2px);
}

.logo-strip__item:hover::before,
.logo-strip__item:focus-visible::before,
.logo-strip__item.is-active::before {
    opacity: 1;
}

.socialization {
    padding: 76px 0 104px;
    background-image: url("./assets/section-bg-socialization.webp");
}

.product--social {
    grid-template-columns: 440px 800px;
    margin-top: 42px;
}

.product__copy--left {
    text-align: left;
}

.product__copy--left .slash {
    margin-right: 0;
    margin-left: 0;
}

.product__visual--social img {
    width: 800px;
}

.tools {
    padding: 78px 0 96px;
    background-image: url("./assets/section-bg-ai-tools.webp");
}

.product--tools {
    grid-template-columns: 800px 600px;
    margin-top: 42px;
}

.logo-strip--tools {
    margin-top: 130px;
}

.footer {
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.footer__inner {
    position: relative;
    width: min(var(--wrap), calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    align-items: top;
    gap: 176px;
    padding-bottom: 100px;
}

.footer__ghost {
    position: absolute;
    right: -200px;
    bottom: 0px;
    pointer-events: none;
}

.footer__brand {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.footer__brand img {
    height: 46px;
}

.footer__contact {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 92px;
}

.footer__item {
    max-width: 430px;
    gap: 16px;
    align-items: flex-start;
    color: #727983;
    font-size: 14px;
    line-height: 1.45;
}

.footer__item p {
    margin: 0;
}

.footer__item strong {
    display: block;
    color: #444950;
    font-size: 14px;
    font-weight: 900;
}

.footer__icon,
.footer__icon img {
    width: 40px;
    height: 40px;
}

.footer__icon {
    display: block;
    flex: 0 0 auto;
    margin-bottom: 29px;
}

.copyright {
    margin: 0;
    padding: 34px 20px 31px;
    border-top: 1px solid #eceff2;
    color: #9ba1a8;
    text-align: center;
    font-size: 12px;
}

.back-top {
    position: fixed;
    z-index: 60;
    right: 80px;
    bottom: 150px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    box-shadow: 0 10px 30px rgba(48, 90, 140, .14);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1320px) {
    :root {
        --wrap: 1040px;
    }

    .product--publishing {
        grid-template-columns: 660px 320px;
        gap: 60px;
    }

    .product__visual--game img {
        width: 660px;
    }

    .product--social {
        grid-template-columns: 330px 590px;
        gap: 120px;
    }

    .product__visual--social img {
        width: 590px;
    }

    .product--tools {
        grid-template-columns: 610px 330px;
        gap: 100px;
    }

    .product__visual--ai img {
        width: 610px;
    }

    .about__grid {
        grid-template-columns: 470px 520px;
        gap: 50px;
    }

    .about__visual img {
        width: 520px;
    }

    .footer__inner {
        gap: 90px;
    }
}

@media (max-width: 1100px) {
    :root {
        --wrap: 880px;
    }

    .site-header__inner,
    .hero__inner,
    .section__inner,
    .footer__inner {
        width: min(var(--wrap), calc(100% - 48px));
    }

    .site-nav {
        gap: 38px;
        font-size: 14px;
    }

    .hero {
        background-position: 57% top;
    }

    .hero__inner {
        padding-top: 150px;
    }

    .hero__title-wrap {
        width: 430px;
    }

    .hero__ghost {
        top: 127px;
        left: 74px;
        font-size: 100px;
    }

    .about__grid,
    .product--publishing,
    .product--social,
    .product--tools {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .75fr);
        gap: 44px;
    }

    .about__visual img,
    .product__visual--game img,
    .product__visual--social img,
    .product__visual--ai img {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .product__copy p {
        white-space: normal;
    }

    .logo-strip {
        margin-top: 80px;
    }

    .footer__inner {
        gap: 54px;
    }

    .footer__contact {
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        width: min(100% - 32px, var(--wrap));
        height: 58px;
    }

    .brand img {
        width: 124px;
    }

    .site-nav {
        display: none;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
        display: grid;
        gap: 5px;
        align-content: center;
        justify-content: center;
        border: 0;
        padding: 0;
        background: transparent;
    }

    .nav-toggle span {
        width: 21px;
        height: 2px;
        display: block;
        background: #30343b;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-header.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav {
        display: grid;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, .98);
        transition: max-height .25s ease;
    }

    .site-header.is-open .mobile-nav {
        max-height: 230px;
        border-top: 1px solid var(--line);
    }

    .mobile-nav a {
        width: min(100% - 32px, var(--wrap));
        margin: 0 auto;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        color: #30343b;
        font-size: 14px;
        font-weight: 800;
    }

    .hero {
        height: 520px;
        background-size: auto 500px;
        background-position: 60% top;
    }

    .hero__inner {
        width: min(100% - 32px, var(--wrap));
        padding-top: 96px;
    }

    .hero__ghost {
        top: 88px;
        left: 0;
        font-size: 58px;
    }

    .hero__title-wrap {
        width: min(86vw, 360px);
        margin-bottom: 18px;
    }

    .hero__copy {
        width: min(100%, 330px);
        font-size: 14px;
        line-height: 1.65;
    }

    .section {
        background-size: auto 100%;
    }

    .section__inner {
        width: min(100% - 32px, var(--wrap));
    }

    .section__word,
    .section__word--about,
    .section__word--publishing,
    .section__word--socialization,
    .section__word--tools {
        top: 34px;
        left: 16px;
        right: auto;
        width: min(270px, calc(100vw - 48px));
    }

    .section-title h2 {
        font-size: 30px;
    }

    .about,
    .publishing,
    .socialization,
    .tools {
        padding: 58px 0 68px;
    }

    .about__grid,
    .product,
    .product--publishing,
    .product--social,
    .product--tools {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .about__grid,
    .product--publishing,
    .product--tools {
        margin-top: 30px;
    }

    .product--social {
        margin-top: 38px;
    }

    .about__visual {
        order: -1;
    }

    .about__visual img {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .product__visual--game img,
    .product__visual--social img,
    .product__visual--ai img {
        width: min(100%, 520px);
        max-width: 100%;
        margin: 0 auto;
    }

    .product__copy,
    .product__copy--left {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .product__copy h3 {
        font-size: 26px;
    }

    .product__copy p {
        font-size: 14px;
        white-space: normal;
    }

    .product__copy .slash,
    .product__copy--left .slash {
        margin-right: 0;
        margin-left: 0;
    }

    .logo-strip,
    .logo-strip--tools {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 28px;
    }

    .logo-strip__item {
        width: 92px;
        height: 46px;
    }

    .footer__inner {
        width: min(100% - 32px, var(--wrap));
        min-height: 220px;
        display: block;
        padding: 38px 0 32px;
    }

    .footer__contact {
        flex-direction: column;
        gap: 20px;
        margin-top: 28px;
    }

    .footer__item {
        max-width: 100%;
        font-size: 12px;
    }

    .footer__item strong {
        font-size: 12px;
    }

    .footer__ghost {
        right: -170px;
        bottom: 10px;
        width: 420px;
    }

    .back-top {
        right: 18px;
        bottom: 22px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
        background-size: auto 455px;
        background-position: 62% top;
    }

    .hero__title-wrap {
        width: min(88vw, 210px);
    }

    .hero__ghost {
        font-size: 50px;
    }

    .about,
    .publishing,
    .socialization,
    .tools {
        padding: 50px 0 58px;
    }

    .about__copy h3 {
        font-size: 16px;
        line-height: 1.45;
    }

    .about__copy p {
        font-size: 12px;
        line-height: 1.78;
    }

    .about__copy .en {
        font-size: 11px;
    }

    .product__visual--game img {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .logo-strip__item {
        width: 86px;
        height: 43px;
    }

    .footer__item {
        font-size: 11px;
    }
}
