:root {
    --primary: #0a2540;
    /* Deep Navy */
    --primary-mid: #0e3a6e;
    --teal: #0077b6;
    /* Medical Blue */
    --teal-light: #3fc6fc;
    --accent: #06d6a0;
    /* Soft Green — "Ready" */
    --accent-dark: #04b389;
    --surface: #ffffff;
    --surface-2: #f4f8fd;
    --surface-3: #e8f1fb;
    --text-primary: #0a2540;
    --text-secondary: #4a6785;
    --text-muted: #7a92ab;
    --border: #d0e2f3;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 8px 28px rgba(10, 37, 64, 0.1);
    --shadow-lg: 0 20px 60px rgba(10, 37, 64, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --font-th: "Noto Sans Thai", sans-serif;
    --font-en: "Roboto", sans-serif;
}

/* ====================================================
       BASE
    ==================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-th);
    color: var(--text-primary);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-en {
    font-family: var(--font-en);
}

/* ====================================================
       NAVBAR
    ==================================================== */
.lp-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.lp-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    /* box-shadow: 0 4px 14px rgba(0, 119, 182, .35); */
    flex-shrink: 0;
}

.brand-text-en {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-text-th {
    font-family: var(--font-th);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.nav-link {
    font-family: var(--font-th);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition:
        color 0.2s,
        background 0.2s;
}

.nav-link:hover {
    color: var(--teal) !important;
    background: var(--surface-3);
}

/* ====================================================
       HERO SECTION
    ==================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

/* Layered mesh background */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: blur(9px);
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%,
            rgba(0, 180, 216, 0.18) 0%,
            transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%,
            rgba(6, 214, 160, 0.12) 0%,
            transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 10%,
            rgba(14, 58, 110, 0.6) 0%,
            transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.35);
    color: var(--accent);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-th);
}

.hero h1 .highlight {
    color: var(--teal-light);
}

.hero .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* === Hero Visual / Gateway Diagram === */
.hero-visual {
    position: relative;
    z-index: 2;
}

.gateway-diagram {
    /* background: rgba(255, 255, 255, .06); */
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    /* backdrop-filter: blur(10px); */
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.65);
}

.gd-title {
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 800;

    color: #000000;
    margin-bottom: 0.5rem;
    text-align: center;
}

.gd-node {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-family: var(--font-th);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    background-color: var(--surface-3);
}

.node-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.gd-node.source {
    border: 1px solid rgba(0, 180, 216);
}

.gd-node.dest {
    border: 1px solid rgba(6, 214, 160);
}

.gd-node.source .node-icon {
    background: rgba(0, 180, 216, 0.25);
    color: var(--teal);
}

.gd-node.dest .node-icon {
    background: rgba(6, 214, 160, 0.2);
    color: var(--accent-dark);
}

.gd-arrows {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.gd-arrow {
    height: 2px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gd-arrow::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 40%;
    animation: flow 1.8s linear infinite;
}

.gd-arrow.left-right::before {
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    animation-name: flow-lr;
}

.gd-arrow.right-left::before {
    background: linear-gradient(270deg, transparent, var(--accent), transparent);
    animation-name: flow-rl;
}

@keyframes flow-lr {
    0% {
        left: -40%;
    }

    100% {
        left: 140%;
    }
}

@keyframes flow-rl {
    0% {
        right: -40%;
    }

    100% {
        right: 140%;
    }
}

.gd-hub {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border-radius: var(--radius-md);
    /* padding: 1rem 1.25rem; */
    text-align: center;
    box-shadow:
        0 0 0 4px rgba(0, 180, 216, 0.15),
        0 8px 24px rgba(0, 119, 182, 0.4);
    position: relative;
}

.gd-hub::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-md) + 3px);
    background: linear-gradient(135deg, var(--teal-light), var(--accent));
    z-index: -1;
    opacity: 0.5;
    animation: hub-glow 3s ease-in-out infinite;
}

@keyframes hub-glow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.gd-hub-icon {
    font-size: 1.6rem;
    color: #fff;
}

.gd-hub-label {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 4px;
    text-transform: uppercase;
}

.gd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gd-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
}

.gd-stat-value {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--teal-light);
    line-height: 1;
}

.gd-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
    font-family: var(--font-en);
}

/* === Hero stats strip === */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.hs-item {
    display: flex;
    flex-direction: column;
}

.hs-value {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hs-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

.hs-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

/* ====================================================
       SECTION SHARED
    ==================================================== */
.section-label {
    font-family: var(--font-th);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-th);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
}

/* ====================================================
       FEATURES
    ==================================================== */
#features {
    background: var(--surface);
    padding: 100px 0;
}

.feature-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    cursor: grab;
    transform: translateY(-6px);
    border: 1px solid var(--teal);
    box-shadow: var(--shadow-lg);
    /* border-color: rgba(0, 119, 182, .25); */
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.fi-blue {
    background: rgba(0, 119, 182, 0.1);
    color: var(--teal);
}

.fi-teal {
    background: rgba(0, 180, 216, 0.1);
    color: var(--teal-light);
}

.fi-green {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-dark);
}

.fi-navy {
    background: rgba(10, 37, 64, 0.08);
    color: var(--primary);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-th);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* ====================================================
       STANDARDS SECTION
    ==================================================== */
#standards {
    background: var(--primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#standards::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 100% 0%,
            rgba(0, 180, 216, 0.12) 0%,
            transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 100%,
            rgba(6, 214, 160, 0.08) 0%,
            transparent 55%);
}

.std-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition:
        background 0.25s,
        border-color 0.25s;
}

.std-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 180, 216, 0.35);
}

.std-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: var(--accent);
    font-family: var(--font-en);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.std-card h5 {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.std-card p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0;
}

.compliance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compliance-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.compliance-list li:last-child {
    border: none;
}

.compliance-list li i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ====================================================
       GATEWAY ARCHITECTURE SECTION
    ==================================================== */
#architecture {
    background: var(--primary);
    padding: 100px 0;
}

.arch-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.arch-diagram {
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.arch-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.arch-col-title {
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.arch-node {
    background: var(--surface-3);
    border-radius: var(--radius-md);
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.arch-node:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.12);
}

.arch-node i {
    font-size: 0.95rem;
}

.arch-node.source {
    border: 1.5px solid var(--teal-light);
}

.arch-node.dest {
    border: 1.5px solid var(--accent);
}

.arch-node.source .node-icon {
    background: rgba(0, 180, 216, 0.25);
    color: var(--teal);
}

.arch-node.dest .node-icon{
    background: rgba(6, 214, 160, 0.2);
    color: var(--accent-dark);
}

.arch-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.arch-arrow-line {
    width: 60px;
    height: 2px;
    background-color: #ffffff;
    /* background: linear-gradient(90deg,var(--border),var(--teal-light),var(--border)); */
    background: linear-gradient(90deg,var(--border),var(--border),var(--border));
    position: relative;
    overflow: hidden;
}

.arch-arrow-line::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 50%;
}

.arch-arrow-line.left::after {
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    animation: flow-lr 2s linear infinite;
}
.arch-arrow-line.right::after {
    background: linear-gradient(270deg, transparent, var(--accent), transparent);
    animation: flow-lr 2s linear infinite;
}

.arch-hub {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.3);
    color: #fff;
    min-width: 150px;
}

.arch-hub i {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.arch-hub-name {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.arch-hub-sub {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-top: 3px;
}

/* ====================================================
       SOLUTIONS SECTION
    ==================================================== */
#solutions {
    background: var(--surface);
    padding: 100px 0;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid transparent;
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.25s;
    cursor: default;
}

.solution-item:hover {
    background: var(--surface-2);
    border-color: var(--border);
    transform: translateX(4px);
}

.sol-num {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-th);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}

.solution-item h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.solution-item p {
    font-size: 0.845rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.sol-visual {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sol-visual::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle,
            rgba(0, 180, 216, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
}

.sol-client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.sol-client-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 0.85rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.sol-client-card i {
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.sol-client-card .name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.sol-client-card .sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ====================================================
       CTA BANNER
    ==================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--teal), var(--primary-mid));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cta-section h2 {
    color: #fff;
    font-weight: 800;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
}

.btn-cta-white {
    font-family: var(--font-th);
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    color: var(--teal);
    border: none;
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
    color: var(--teal);
}

.btn-cta-ghost {
    font-family: var(--font-th);
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-ghost:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ====================================================
       FOOTER
    ==================================================== */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ====================================================
       SCROLL ANIMATIONS
    ==================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger helper */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ====================================================
       UTILITIES
    ==================================================== */
.text-teal {
    color: var(--teal);
}

.text-accent {
    color: var(--accent);
}

.bg-surface-2 {
    background: var(--surface-2);
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .hs-divider {
        display: none;
    }

    .gd-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .arch-arrow-line {
        width: 30px;
    }

    .arch-diagram {
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    .arch-arrows {
        flex-direction: row;
    }

    .arch-arrow-line {
        width: 30px;
        transform: rotate(90deg);
    }
}