:root {
    --bg: #dce7f6;
    --ink: #0f3160;
    --ink-soft: #3f5f83;
    --primary: #0d7cff;
    --primary-deep: #005acc;
    --line: #a9c7ee;
    --shadow: 0 18px 45px rgba(13, 70, 138, 0.14);
}

* {
    box-sizing: border-box;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", "Noto Sans SC", "Noto Sans Thai", sans-serif;
}

html[lang="th"] body {
    font-family: "Noto Sans Thai", "Manrope", "Noto Sans SC", sans-serif;
}

.site-shell {
    width: 100%;
    margin: 0;
    overflow-x: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: clamp(10px, 2.5vw, 16px) clamp(12px, 3vw, 24px);
    background: linear-gradient(90deg, #0b72ea 0%, #1f8fff 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 64, 142, 0.2);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: linear-gradient(90deg, rgba(8, 96, 211, 0.92) 0%, rgba(19, 120, 236, 0.92) 100%);
    box-shadow: 0 14px 34px rgba(0, 49, 111, 0.28);
}

section[id] {
    scroll-margin-top: 84px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logos {
    width: clamp(132px, 22vw, 220px);
    max-width: 100%;
    flex: 0 0 auto;
}

.header-nav {
    align-items: center;
    gap: 8px;
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 160ms ease;
}

.header-nav-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.header-nav-link.active {
    color: var(--primary-deep);
    background: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.brand-wordmark {
    display: inline-block;
    font-family: "Rajdhani", "Manrope", sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.32rem);
    letter-spacing: 0.02em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 45, 107, 0.28);
}

.brand-logo-icon {
    width: 100%;
    max-width: clamp(26px, 4.8vw, 40px);
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 45, 107, 0.25));
}

.brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.brand-text>div:first-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.brand-text>div:first-child>span:first-child {
    display: block;
    font-family: "Noto Sans SC", "Manrope", sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.16rem);
    letter-spacing: 0.02em;
    line-height: 1.06;
    max-width: clamp(92px, 19vw, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text>div:last-child>span {
    display: block;
    font-size: clamp(0.52rem, 1.25vw, 0.72rem);
    opacity: 0.88;
    letter-spacing: 0.08em;
    line-height: 1.15;
    max-width: clamp(120px, 23vw, 340px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-support-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 0 !important;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 160ms ease;
}

.header-support-btn:hover,
.header-support-btn:focus {
    box-shadow: none !important;
    transform: scale(1.04);
}

.header-support-btn img {
    width: 100%;
    max-width: 100%;
}

.lang-select {
    min-width: clamp(94px, 14vw, 132px);
    height: 36px;
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    background-color: rgba(7, 75, 168, 0.22);
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    padding-left: 12px;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-size: 11px 11px;
    background-position: right 10px center;
    transition: 160ms ease;
}

.lang-select:hover,
.lang-select:focus {
    border-color: rgba(255, 255, 255, 0.72);
    background-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 0.16rem rgba(255, 255, 255, 0.2);
}

.lang-select option {
    color: #112c4a;
    background: #ffffff;
}

.menu-btn {
    width: 38px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    background: rgba(7, 75, 168, 0.22) !important;
    border-radius: 10px;
    color: #fff !important;
}

.menu-btn:hover,
.menu-btn:focus {
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.24) !important;
    box-shadow: 0 0 0 0.16rem rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
}

main {
    padding: clamp(20px, 4.2vw, 48px) clamp(12px, 3vw, 44px) clamp(34px, 6vw, 70px);
}

.hero {
    text-align: center;
    animation: rise 700ms ease both;
}

.hero-eyebrow {
    margin: 0 0 6px;
    font: 800 clamp(1.45rem, 7vw, 3rem) / 1.1 "Rajdhani", "Noto Sans SC", sans-serif;
    letter-spacing: 0.03em;
    color: #0070ed;
}

.hero h1 {
    margin: 0;
    font: 800 clamp(1.05rem, 3.8vw, 2.15rem) / 1.2 "Noto Sans SC", sans-serif;
    color: #18509a;
    word-break: break-word;
}

.hero-subtitle {
    margin: 6px 0 0;
    font: 700 clamp(1.1rem, 1.8vw, 0.9rem) / 1.4 "Rajdhani", sans-serif;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
    text-transform: uppercase;
    word-break: break-word;
}

.hero-visual {
    width: min(920px, 100%);
    margin: clamp(16px, 3vw, 28px) auto clamp(14px, 2.6vw, 22px);
    padding: clamp(10px, 1.8vw, 16px);
    border-radius: 22px;
    background: url("/static/images/bg-texture.png") center / 100% no-repeat;
    /* box-shadow: 0 14px 30px rgba(18, 70, 140, 0.12); */
}

.hero-main-image {
    width: 100%;
    border-radius: 14px;
}

.phone-stage {
    margin: clamp(18px, 4vw, 34px) auto clamp(16px, 3vw, 26px);
    max-width: 820px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(10px, 3.2vw, 38px);
    padding: 14px 8px 12px;
}

.phone-stage::before {
    content: "";
    position: absolute;
    inset: 22% 10% 8%;
    border-radius: 26px;
    background: linear-gradient(140deg, rgba(169, 210, 255, 0.5), rgba(107, 164, 226, 0.4));
    filter: blur(0.5px);
}

.phone-card {
    --rotation: 0deg;
    --base-y: 0px;
    z-index: 1;
    position: relative;
    width: clamp(122px, 37vw, 220px);
    height: clamp(228px, 71vw, 390px);
    border-radius: 26px;
    background: #111;
    padding: 12px 10px;
    border: 4px solid #222b37;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: float 3.8s ease-in-out infinite;
}

.phone-card.left {
    --rotation: -6deg;
    --base-y: 8px;
}

.phone-card.right {
    --rotation: 7deg;
    --base-y: -2px;
    animation-direction: reverse;
}

.phone-notch {
    width: 35%;
    height: 14px;
    border-radius: 0 0 10px 10px;
    background: #111;
    margin: 0 auto 8px;
}

.screen {
    height: calc(100% - 28px);
    border-radius: 17px;
    position: relative;
    padding: clamp(9px, 2.4vw, 12px);
    display: flex;
}

.screen-green {
    background: radial-gradient(circle at 20% 8%, #2dc48d, #126f60);
    justify-content: space-between;
    align-items: flex-end;
}

.screen-dark {
    background: linear-gradient(160deg, #1f2d4f, #151822 55%, #0d1020);
    flex-direction: column;
    gap: 12px;
}

.chip {
    display: inline-grid;
    place-items: center;
    width: clamp(36px, 10vw, 52px);
    height: clamp(52px, 14vw, 72px);
    border-radius: 10px;
    background: #fff;
    color: #1456af;
    font: 800 clamp(1rem, 3vw, 1.3rem) / 1 "Rajdhani", sans-serif;
    box-shadow: 0 10px 18px rgba(8, 32, 78, 0.18);
}

.list-line {
    height: clamp(12px, 2.5vw, 16px);
    border-radius: 999px;
    background: linear-gradient(90deg, #2d83ff, #2ec1ff);
    opacity: 0.85;
}

.list-line:nth-child(2) {
    width: 86%;
}

.list-line:nth-child(3) {
    width: 72%;
}

.hero-ctas {
    max-width: 440px;
    margin: 0 auto;
}

.hero-ctas .btn {
    width: 100%;
    min-height: 48px;
    line-height: 48px;
    border-radius: 13px;
    white-space: normal;
}

.portal-btn-primary {
    background: linear-gradient(180deg, #2a92ff, #0d6ee7);
    border: 0;
    box-shadow: 0 10px 20px rgba(14, 97, 200, 0.2);
}

.portal-btn-primary:hover,
.portal-btn-primary:focus {
    background: linear-gradient(180deg, #2e9afe, #0868e3);
}

.hero-ctas .portal-btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
}

.hero-ctas .portal-btn-app .app-logo-img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}

.portal-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
}

.portal-btn-secondary:hover,
.portal-btn-secondary:focus {
    background: #0d6efd;
    color: #fff;
}

.feature {
    margin-top: clamp(34px, 5.2vw, 58px);
    text-align: center;
    position: relative;
    animation: rise 760ms ease both;
}

.feature::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 36px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.feature-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font: 700 clamp(0.82rem, 2vw, 0.95rem) / 1 "Rajdhani", "Noto Sans SC", sans-serif;
    letter-spacing: 0.05em;
    color: #2a5f99;
}

.feature-head-icon {
    width: clamp(32px, 1.8vw, 22px);
    max-width: clamp(32px, 1.8vw, 22px);
    flex: 0 0 auto;
    /* box-sizing: content-box;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(27, 126, 246, 0.18), rgba(129, 182, 245, 0.2));
    box-shadow: inset 0 0 0 1px rgba(13, 124, 255, 0.18), 0 4px 10px rgba(35, 102, 186, 0.12); */
    margin-top: -10px;
}

.feature h3 {
    margin: 8px 0;
    font: 900 clamp(1.55rem, 5.2vw, 2.8rem) / 1.14 "Noto Sans SC", sans-serif;
    color: #0e6fe3;
}

.feature p {
    margin: 0 auto;
    max-width: 760px;
    color: #355f8f;
    font-weight: 500;
    font-size: clamp(0.88rem, 1.9vw, 1.02rem);
    line-height: 1.65;
    word-break: break-word;
}

.feature-media {
    width: min(920px, 100%);
    margin: clamp(14px, 2.5vw, 22px) auto 0;
    padding: clamp(10px, 1.8vw, 16px);
    border-radius: 22px;
    background: url("/static/images/bg-texture.png") center / 100% no-repeat;
    /* box-shadow: 0 14px 30px rgba(18, 70, 140, 0.12); */
}

.feature-media img {
    width: 100%;
    border-radius: 14px;
}

.feature--story .feature-media {
    padding: 0;
    border-radius: 0;
    background: none;
}

html[lang="en"] .hero-eyebrow,
html[lang="th"] .hero-eyebrow {
    letter-spacing: 0.015em;
    font-size: clamp(1.15rem, 5.2vw, 2.55rem);
}

html[lang="en"] .hero h1,
html[lang="th"] .hero h1 {
    font-family: "Manrope", "Noto Sans Thai", sans-serif;
    font-size: clamp(1rem, 3.2vw, 1.95rem);
}

html[lang="en"] .hero-subtitle,
html[lang="th"] .hero-subtitle {
    letter-spacing: 0.04em;
}

html[lang="en"] .feature p,
html[lang="th"] .feature p {
    max-width: 860px;
}

html[lang="en"] .hero-ctas .btn,
html[lang="th"] .hero-ctas .btn {
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
}

html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] .feature p {
    word-break: keep-all;
}

html[lang="th"] .brand-text {
    letter-spacing: 0;
}

html[lang="th"] .lang-select,
html[lang="en"] .lang-select {
    min-width: clamp(98px, 15vw, 140px);
}

.site-footer {
    margin-top: 44px;
    padding: clamp(24px, 4vw, 32px) 18px clamp(20px, 3vw, 26px);
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #0668de, #1685ff);
}

.footer-brand {
    width: min(520px, 85vw);
    margin: 0 auto;
    display: block;
    font-family: "Rajdhani", "Noto Sans SC", sans-serif;
    font-size: clamp(1rem, 2.7vw, 1.28rem);
    font-weight: 700;
}

.footer-brand img {
    width: 100%;
    max-width: clamp(220px, 42vw, 440px);
    margin: 0 auto;
}

.site-footer p {
    margin: 14px 0 0;
    letter-spacing: 0.04em;
    font-size: clamp(0.68rem, 1.6vw, 0.8rem);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(var(--base-y)) rotate(var(--rotation));
    }

    50% {
        transform: translateY(calc(var(--base-y) - 10px)) rotate(var(--rotation));
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header-logos {
        width: 220px;
    }

    .brand-text>div:last-child {
        display: block;
    }

    .header-actions {
        gap: 6px;
        padding: 3px;
    }

    .header-support-btn {
        width: 32px;
        height: 32px;
    }

    .header-support-btn img {
        width: 80%;
        max-width: 80%;
    }

    .menu-btn {
        width: 34px;
        height: 34px;
    }

    .lang-select {
        min-width: 74px;
        padding-left: 10px;
        padding-right: 24px;
        height: 34px;
        background-position: right 8px center;
    }

    .brand-wordmark {
        font-size: 1.02rem;
    }

    .footer-brand img {
        max-width: min(300px, 82vw);
    }

    .brand-text>div:first-child>span:first-child {
        max-width: 40vw;
        font-size: 0.88rem;
    }

    .brand-text>div:last-child>span {
        max-width: 46vw;
        font-size: 0.5rem;
        letter-spacing: 0.04em;
    }

    .hero-subtitle {
        letter-spacing: 0.04em;
    }

    .phone-stage::before {
        inset: 24% 8% 10%;
    }

    .feature::before {
        left: 3%;
        right: 3%;
    }
}

@media (min-width: 900px) {
    main {
        padding: 44px 52px 72px;
    }

    .phone-stage {
        max-width: 920px;
        gap: clamp(26px, 4vw, 46px);
        padding-top: 22px;
    }

    .phone-card {
        width: clamp(185px, 20vw, 245px);
        height: clamp(350px, 38vw, 430px);
    }
}

@media (min-width: 1200px) {

    .hero,
    .feature {
        padding-left: 56px !important;
        padding-right: 56px !important;
    }
}
