:root {
    --blue: #298cff;
    --blue-dark: #0b4ea2;
    --blue-soft: #eaf4ff;
    --ink: #102033;
    --muted: #5c6b7c;
    --line: #d9e8f8;
    --white: #ffffff;
    --green: #13b981;
    --green-badge: #5db12f;
    --orange: #f59f00;
    --shadow: 0 22px 70px rgba(16, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Bai Jamjuree", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
    padding: 12px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(217, 232, 248, 0.7);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--blue-dark);
    white-space: nowrap;
}

.brand img {
    width: 52px;
    height: 36px;
    object-fit: contain;
}

.brand span {
    letter-spacing: 0;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #25364a;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue);
}

.lang-switch {
    min-width: 44px;
    padding: 8px 12px;
    color: var(--blue-dark);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 72px) 32px;
    background:
        linear-gradient(120deg, rgba(41, 140, 255, 0.1), rgba(255, 255, 255, 0.88) 48%),
        radial-gradient(circle at 82% 20%, rgba(19, 185, 129, 0.16), transparent 30%),
        #f8fbff;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 78px);
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-weight: 700;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    overflow-wrap: normal;
    word-break: keep-all;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.45rem, 5.6vw, 4.85rem);
    line-height: 1.02;
    letter-spacing: 0;
    color: #081d35;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.hero-subtitle {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: var(--muted);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(41, 140, 255, 0.28);
}

.button.secondary {
    color: var(--blue-dark);
    background: var(--white);
    border-color: var(--line);
}

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

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.trust-strip span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    color: #34455a;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.screenshot-slider {
    display: grid;
    gap: 16px;
}

.slider-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.slider-track {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #eef5ff;
}

.screenshot-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.screenshot-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.screenshot-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-slide figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 3px;
    max-width: 520px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 232, 248, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(16, 32, 51, 0.14);
}

.screenshot-slide figcaption strong {
    color: var(--blue-dark);
    font-size: 1rem;
    line-height: 1.25;
}

.screenshot-slide figcaption span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.slider-button {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.16);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.slider-button.prev {
    left: 14px;
}

.slider-button.next {
    right: 14px;
}

.slider-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #bfd7f2;
    cursor: pointer;
}

.slider-dots button.is-active {
    width: 24px;
    background: var(--blue);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 880px;
    margin: 40px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.stats-row div {
    padding: 22px;
    background: var(--white);
    text-align: center;
}

.stats-row strong {
    display: block;
    color: var(--blue);
    font-size: 2rem;
    line-height: 1;
}

.stats-row span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 600;
}

.section,
.security-band,
.cta {
    padding: clamp(66px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-head p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.customers-section .section-head {
    max-width: 1180px;
    text-align: left;
}

.customers-section .section-head h2::after {
    content: "";
    display: block;
    width: min(330px, 100%);
    height: 6px;
    margin-top: 22px;
    background: var(--blue);
}

.about-section {
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.about-copy h2 {
    max-width: 820px;
}

.about-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.about-copy .about-lead {
    color: #23384f;
    font-size: 1.14rem;
    font-weight: 600;
}

.about-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.about-logo {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.about-logo img {
    width: min(260px, 78%);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.about-facts div {
    padding: 18px 12px;
    background: var(--white);
    text-align: center;
}

.about-facts strong,
.about-facts span {
    display: block;
}

.about-facts strong {
    color: var(--blue);
    font-size: 1.75rem;
    line-height: 1;
}

.about-facts span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 34px auto 0;
}

.about-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 36px rgba(16, 32, 51, 0.06);
}

.card-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.3;
}

.info-card > .card-icon,
.about-card > .card-icon {
    width: 46px;
    height: 46px;
    padding: 11px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-soft);
    stroke-width: 2.2;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title .card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-soft);
}

.card-title h3 {
    margin: 0;
}

.about-card h3 {
    color: var(--blue-dark);
}

.about-card p {
    margin: 0;
    color: var(--muted);
}

.strength-grid,
.module-grid,
.feature-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.info-card,
.module-card,
.feature-card,
.service-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.info-card p,
.feature-card p {
    margin: 0;
    color: var(--muted);
}

.section-blue {
    background: var(--blue-soft);
}

.module-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.module-card li {
    padding: 7px 10px;
    border-radius: 8px;
    background: #f3f9ff;
    color: #24415f;
    font-size: 0.92rem;
    font-weight: 600;
}

.services {
    background: #fbfdff;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    box-shadow: 0 18px 40px rgba(16, 32, 51, 0.07);
}

.service-card span {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    font-weight: 700;
}

.service-card span .card-icon {
    width: 21px;
    height: 21px;
    stroke-width: 2.4;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

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

.feature-card {
    border-left: 4px solid var(--blue);
}

.feature-card p {
    margin-top: 18px;
}

.security-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 36px;
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, #0b4ea2, #298cff);
}

.security-band p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
}

.security-band .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

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

.security-stack span {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    place-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-weight: 700;
}

.security-stack .card-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.customer-card {
    position: relative;
    min-height: 264px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 18px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(16, 32, 51, 0.11);
    text-align: center;
}

.customer-badge {
    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-1px);
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 0 0 6px 6px;
    color: var(--white);
    background: var(--green-badge);
    font-size: 0.94rem;
    font-weight: 500;
}

.customer-logo {
    display: grid;
    place-items: center;
    min-height: 148px;
    margin-top: 28px;
    padding: 12px;
}

.customer-logo img {
    width: min(150px, 86%);
    height: 120px;
    object-fit: contain;
}

.customer-card h3 {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #2a3440;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
}

.implementation-section {
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.implementation-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto 30px;
}

.implementation-stats div {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
}

.implementation-stats .card-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-soft);
}

.implementation-stats strong {
    color: var(--blue-dark);
    font-size: 1.55rem;
    line-height: 1;
}

.implementation-stats span {
    color: var(--muted);
    font-weight: 700;
}

.implementation-slider {
    max-width: 1080px;
    margin: 0 auto;
}

.subscription {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 36px;
    align-items: center;
    background: #f8fbff;
}

.subscription-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
}

.subscription-box {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.subscription-box div {
    padding: 16px;
    border-radius: 8px;
    background: var(--blue-soft);
    font-weight: 700;
    color: #24415f;
}

.cta {
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(8, 29, 53, 0.72), rgba(8, 29, 53, 0.72)),
        url("TodayManufacturingERP1000x1000.png") center 42% / min(480px, 78vw) no-repeat,
        #0b4ea2;
}

.cta h2,
.cta p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.cta p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 42px;
    align-items: start;
}

.contact-lines {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 600;
}

.contact-lines p {
    margin: 0;
}

.contact-lines a {
    color: var(--blue-dark);
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.contact-form h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-form h3 .card-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-soft);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.form-status[data-state="success"] {
    color: var(--green);
}

.form-status[data-state="error"] {
    color: #d92d20;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px clamp(20px, 5vw, 72px);
    color: #5b6a7b;
    border-top: 1px solid var(--line);
}

.site-footer a {
    color: var(--blue-dark);
    font-weight: 700;
}

@media (max-width: 980px) {
    .menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 22px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
    }

    .lang-switch {
        width: fit-content;
    }

    .hero-inner,
    .security-band,
    .subscription,
    .contact,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-side {
        position: static;
    }

    .strength-grid,
    .module-grid,
    .feature-grid,
    .service-grid,
    .about-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .implementation-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
    }

    .brand span {
        font-size: 0.98rem;
    }

    .main-nav {
        top: 68px;
    }

    .hero {
        padding-top: 38px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        margin-top: 22px;
    }

    .screenshot-slide figcaption {
        left: 8px;
        right: 8px;
        bottom: 8px;
        max-width: none;
        padding: 9px 10px;
    }

    .screenshot-slide figcaption strong {
        font-size: 0.88rem;
    }

    .screenshot-slide figcaption span {
        font-size: 0.76rem;
        line-height: 1.32;
    }

    .slider-button {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .slider-button.prev {
        left: 8px;
    }

    .slider-button.next {
        right: 8px;
    }

    .slider-dots {
        gap: 7px;
    }

    .slider-dots button {
        width: 8px;
        height: 8px;
    }

    .slider-dots button.is-active {
        width: 18px;
    }

    .trust-strip span {
        width: 100%;
    }

    .panel-grid,
    .stats-row,
    .strength-grid,
    .module-grid,
    .feature-grid,
    .service-grid,
    .about-card-grid,
    .security-stack,
    .customer-grid {
        grid-template-columns: 1fr;
    }

    .about-logo {
        min-height: 240px;
    }

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

    .implementation-stats {
        margin-bottom: 22px;
    }

    .stats-row div {
        padding: 18px;
    }

    .section,
    .security-band,
    .cta {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .customers-section .section-head h2::after {
        width: 180px;
        height: 5px;
    }

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