:root {
    --navy: #0b1f3a;
    --blue: #1769e0;
    --blue-dark: #0f4fb1;
    --cyan: #16b8c8;
    --green: #2fb67c;
    --ink: #102033;
    --muted: #5d6b7a;
    --line: #d9e3ef;
    --soft: #f4f8fc;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Thai", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

html[lang="th"] body {
    line-height: 1.75;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--navy);
    color: var(--white);
}

.skip-link:focus {
    left: 12px;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.section {
    padding: 92px 0;
}

.muted {
    background: var(--soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu a {
    color: #26384d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--blue);
}

.nav-cta {
    padding: 10px 16px;
    color: var(--white) !important;
    background: var(--blue);
    border-radius: 6px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.language-switcher a,
.language-switcher span {
    color: #26384d;
    text-decoration: none;
}

.language-switcher .active {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
}

.hero {
    color: var(--white);
    background:
            linear-gradient(140deg, rgba(11, 31, 58, 0.98), rgba(14, 71, 135, 0.94)),
            radial-gradient(circle at 80% 20%, rgba(22, 184, 200, 0.38), transparent 36%);
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.15;
}

.hero h1,
.page-hero h1 {
    color: inherit;
    font-size: clamp(38px, 6vw, 64px);
    max-width: 780px;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0;
}

.hero-text {
    max-width: 720px;
    margin-top: 22px;
    color: #d8e8f8;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.section-actions {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    color: var(--white);
    background: var(--blue);
}

.button.primary:hover,
.button.primary:focus {
    background: var(--blue-dark);
}

.button.secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    color: #e9f4ff;
    font-weight: 800;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a8f1d1;
    font-size: 13px;
}

.status-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-metrics div {
    min-height: 98px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.11);
}

.dashboard-metrics strong,
.dashboard-metrics span {
    display: block;
}

.dashboard-metrics span {
    margin-top: 8px;
    color: #c4d9ed;
    font-size: 13px;
}

.dashboard-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.dashboard-flow span {
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.two-column {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.lead-block p + p,
.text-panel p + p,
.policy p + p {
    margin-top: 14px;
}

.lead-block {
    color: var(--muted);
    font-size: 18px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
}

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

.value-grid,
.team-grid,
.support-grid,
.integration-category-grid,
.security-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.text-panel,
.review-note,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.06);
}

.feature-card {
    min-height: 230px;
    padding: 24px;
}

.feature-card p {
    margin-top: 12px;
    color: var(--muted);
}

.feature-card,
.team-grid article,
.support-grid article,
.architecture-grid article,
.integration-category-grid div,
.security-control-grid div,
.challenge-list div,
.workflow-timeline div,
.faq-list details,
.region-list span,
.scenario-grid span,
.check-grid li {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover,
.team-grid article:hover,
.support-grid article:hover,
.architecture-grid article:hover,
.integration-category-grid div:hover,
.security-control-grid div:hover,
.challenge-list div:hover,
.region-list span:hover,
.scenario-grid span:hover,
.check-grid li:hover {
    transform: translateY(-2px);
    border-color: #bcd2ea;
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.1);
}

.value-grid article,
.team-grid article,
.support-grid article,
.architecture-grid article,
.integration-category-grid div,
.security-control-grid div,
.challenge-list div,
.workflow-timeline div,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.06);
}

.team-grid article,
.support-grid article,
.architecture-grid article,
.integration-category-grid div,
.security-control-grid div {
    padding: 22px;
}

.team-grid p,
.support-grid p,
.architecture-grid p,
.integration-category-grid p,
.security-control-grid span,
.challenge-list span,
.workflow-timeline span,
.faq-list p {
    color: var(--muted);
}

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

.architecture-grid article {
    position: relative;
    min-height: 190px;
    background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.architecture-grid article::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.challenge-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.challenge-list div {
    padding: 18px 20px;
}

.challenge-list strong,
.challenge-list span,
.security-control-grid strong,
.security-control-grid span,
.workflow-timeline strong,
.workflow-timeline span {
    display: block;
}

.challenge-list span,
.security-control-grid span,
.workflow-timeline span {
    margin-top: 8px;
}

.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(9, minmax(175px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-color: var(--blue) #e6eef7;
}

.workflow-timeline div {
    position: relative;
    min-height: 150px;
    padding: 18px;
}

.workflow-timeline div::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    border: 6px solid #e8f3ff;
    border-radius: 50%;
    background: var(--blue);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.faq-list p {
    margin-top: 10px;
}

.last-updated {
    margin-top: 14px;
    color: #cfe2f7 !important;
    font-size: 14px !important;
}

.region-list,
.scenario-grid,
.check-grid {
    display: grid;
    gap: 12px;
}

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

.market-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.region-list span,
.scenario-grid span,
.check-grid li {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-weight: 700;
}

.region-list small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-note {
    max-width: 900px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
}

.api-callout {
    background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

.callout-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.callout-card p:not(.eyebrow) {
    max-width: 820px;
    margin-top: 12px;
    color: var(--muted);
}

.compact-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.compliance-list {
    max-width: 900px;
    margin-top: 26px;
    padding: 22px 24px 22px 42px;
    border: 1px solid #b9e6ec;
    border-radius: 8px;
    background: #f0fbfc;
}

.check-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    list-style: none;
}

.check-grid li span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 500;
}

.check-grid li strong {
    color: var(--navy);
}

.check-grid li::before,
.check-list li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 12px;
    margin-right: 8px;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(45deg);
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    padding: 34px;
}

.contact-list {
    margin: 0;
}

.contact-list div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.contact-list dt {
    color: var(--muted);
    font-weight: 800;
}

.contact-list dd {
    margin: 0;
}

.notice {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-left: 4px solid var(--cyan);
    background: #eefbfc;
    color: #27515b;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), #134f8d);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 18px;
    color: #d8e8f8;
    font-size: 18px;
}

.content-stack {
    display: grid;
    gap: 22px;
}

.text-panel,
.review-note {
    padding: 28px;
}

.text-panel p,
.policy p,
.number-list,
.check-list {
    color: var(--muted);
}

.number-list {
    margin: 18px 0 0;
    padding-left: 24px;
}

.number-list li + li {
    margin-top: 10px;
}

.table-wrap {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--navy);
    background: #edf5ff;
}

td {
    color: var(--muted);
}

.flow-diagram {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.flow-diagram div {
    position: relative;
    min-height: 140px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.flow-diagram div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: translateY(-50%) rotate(45deg);
}

.flow-diagram strong,
.flow-diagram span {
    display: block;
}

.flow-diagram span {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.check-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li + li {
    margin-top: 10px;
}

.review-note {
    border-color: #b9e6ec;
    background: #f0fbfc;
}

.policy {
    max-width: 900px;
}

.policy article + article {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.policy h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.site-footer {
    padding: 36px 0;
    color: #d7e3ef;
    background: var(--navy);
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.site-footer .footer-logo {
    color: var(--white);
}

.site-footer p {
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: #d7e3ef;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--white);
}

@media (max-width: 980px) {
    .hero-grid,
    .two-column,
    .contact-panel,
    .callout-card {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .scenario-grid,
    .check-grid,
    .value-grid,
    .team-grid,
    .support-grid,
    .integration-category-grid,
    .security-control-grid,
    .architecture-grid,
    .challenge-list,
    .market-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-diagram {
        grid-template-columns: 1fr;
    }

    .flow-diagram div {
        min-height: auto;
    }

    .flow-diagram div:not(:last-child)::after {
        right: 50%;
        top: auto;
        bottom: -18px;
        transform: translateX(50%) rotate(135deg);
    }
}

@media (max-width: 760px) {
    .section {
        padding: 62px 0;
    }

    .hero {
        min-height: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        min-height: 64px;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .language-switcher {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 12px;
        border-left: 0;
        border-top: 1px solid var(--line);
        white-space: normal;
    }

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

    .nav-menu a {
        padding: 12px;
    }

    .nav-cta {
        text-align: center;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-text {
        font-size: 17px;
    }

    .dashboard-metrics,
    .card-grid,
    .scenario-grid,
    .check-grid,
    .region-list,
    .value-grid,
    .team-grid,
    .support-grid,
    .integration-category-grid,
    .security-control-grid,
    .architecture-grid,
    .challenge-list,
    .market-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .button {
        width: 100%;
    }

    .contact-panel,
    .callout-card,
    .text-panel,
    .review-note {
        padding: 22px;
    }
}
