/* ===== LIGHT MODE REDESIGN ===== */
:root {
    --green: #397bff;
    --green2: #6b9fff;
    --green-lt: #eef2ff;
    --green-md: #c7d5ff;
    --text: #1e293b;
    --text2: #475569;
    --text3: #94a3b8;
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Sarabun', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden
}

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

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: .3s;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green)
}

.logo i {
    margin-right: 6px
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none
}

.nav-links a {
    font-size: .95rem;
    color: var(--text2);
    transition: .2s;
    font-weight: 500
}

.nav-links a:hover {
    color: var(--green)
}

.btn-nav {
    background: red;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    transition: .3s;
}

.btn-nav:hover {
    background: rgb(241, 96, 96);
    transform: translateY(-1px)
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 5% 80px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-lt);
    border: 1px solid var(--green-md);
    color: var(--green);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text)
}

.grad {
    color: var(--green);
    -webkit-text-fill-color: var(--green)
}

.hero-sub {
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px
}

.pain-list {
    list-style: none;
    margin-bottom: 28px
}

.pain-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text2);
    padding: 5px 0;
    font-size: .95rem
}

.pain-list li i {
    color: #dc2626;
    font-size: .85rem
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn-primary {
    background: red;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sarabun', sans-serif;
}

.btn-primary:hover {
    background: var(--green2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 123, 255, .28)
}

.btn-outline {
    border: 2px solid var(--green);
    color: var(--green);
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    font-family: 'Sarabun', sans-serif;
}

.btn-outline:hover {
    background: var(--green-lt)
}

/* DEVICE MOCKUP */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center
}

.feature-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: .3s;
    border: 1px solid transparent;
}

.tab-item:hover,
.tab-item.active {
    background: var(--green-lt);
    border-color: var(--green-md)
}

.tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
}

.tab-item.active .tab-icon {
    background: var(--green);
    color: #fff;
    border-color: var(--green)
}

.tab-label {
    font-size: .7rem;
    color: var(--text3);
    text-align: center;
    white-space: nowrap;
    line-height: 1.3
}

.tab-item.active .tab-label {
    color: var(--green);
    font-weight: 600
}

.device-wrap {
    position: relative;
    max-width: 620px;
    width: 100%
}

/* Screen panel fade transition */
@keyframes spFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.screen-panel.sp-fade {
    animation: spFadeIn .25s ease forwards;
}

.laptop-frame {
    background: #e8eaed;
    border-radius: 10px;
    padding: 6px;
    border: 1px solid #d0d3d8;
    box-shadow: var(--shadow-md);
}

.laptop-screen {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/10
}

.screen-header {
    background: #f6f8fa;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #e1e4e8;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%
}

.screen-content {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f6f8fa
}

.s-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e1e4e8
}

.s-card-label {
    font-size: .6rem;
    color: #6b7280;
    margin-bottom: 5px
}

.s-card-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text)
}

.s-card-val span {
    font-size: .65rem;
    font-weight: 400;
    color: var(--green);
    margin-left: 3px
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    margin-top: 6px
}

.bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: #cbd5e1;
    opacity: .8
}

.bar.green {
    background: var(--green)
}

.bar.purple {
    background: #7c3aed
}

.shift-table {
    grid-column: 1/-1;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e1e4e8
}

.shift-row {
    display: grid;
    grid-template-columns: 70px repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 3px;
    font-size: .58rem
}

.sc {
    padding: 2px 4px;
    border-radius: 3px;
    text-align: center;
    font-weight: 600
}

.sc.m {
    background: #dcfce7;
    color: #15803d
}

.sc.e {
    background: #fef3c7;
    color: #d97706
}

.sc.n {
    background: #e0f2fe;
    color: #0369a1
}

.sc.off {
    background: #f1f5f9;
    color: #94a3b8
}

.phone-float {
    position: absolute;
    right: -30px;
    bottom: -10px;
    width: 120px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.phone-screen {
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px;
    min-height: 160px
}

.ph-header {
    font-size: .58rem;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin-bottom: 6px
}

.ph-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .58rem;
    color: var(--text)
}

.ph-badge {
    padding: 2px 5px;
    border-radius: 4px;
    font-size: .52rem;
    font-weight: 600
}

.ph-badge.m {
    background: #dcfce7;
    color: #15803d
}

.ph-badge.e {
    background: #fef3c7;
    color: #d97706
}

/* SECTIONS */
section {
    padding: 72px 5%
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.section-tag {
    text-align: center;
    margin-bottom: 12px
}

.tag {
    display: inline-block;
    background: var(--green-lt);
    border: 1px solid var(--green-md);
    color: var(--green);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
}

h2 {
    font-size: 2.1rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--text)
}

.section-desc {
    text-align: center;
    color: var(--text2);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7
}

/* PROBLEM */
#problem {
    background: var(--bg2)
}

.prob-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 32px
}

.prob-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.prob-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #dc2626;
}

.prob-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #fca5a5
}

.prob-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #dc2626;
}

.prob-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text)
}

.prob-card p {
    color: var(--text2);
    font-size: .88rem;
    line-height: 1.6
}

.prob-quote {
    text-align: center;
    padding: 24px;
    background: var(--green-lt);
    border: 1px solid var(--green-md);
    border-radius: 12px;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--green);
    font-weight: 600;
}

/* SOLUTION */
#solution {
    background: var(--bg)
}

.sol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.sol-features {
    display: grid;
    gap: 12px
}

.sol-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: var(--bg2);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: .3s;
}

.sol-item:hover {
    border-color: var(--green-md);
    background: var(--green-lt)
}

.sol-check {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
    color: #fff;
}

.sol-item h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text)
}

.sol-item p {
    font-size: .83rem;
    color: var(--text2)
}

.sol-visual {
    background: var(--bg2);
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--border);
    text-align: center;
}

.sol-logo {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 10px
}

.sol-visual h3 {
    color: var(--text);
    margin-bottom: 12px
}

.sol-desc {
    color: var(--text2);
    font-size: .93rem;
    line-height: 1.7
}

/* GROUPS */
#groups {
    background: var(--bg2)
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.group-card {
    border-radius: 16px;
    padding: 28px;
    transition: .3s;
    border: 1px solid var(--border);
    background: var(--bg)
}

.group-card.nurse {
    border-top: 4px solid var(--green)
}

.group-card.hr {
    border-top: 4px solid #7c3aed
}

.group-card.exec {
    border-top: 4px solid #0369a1
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md)
}

.group-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
}

.nurse .group-icon {
    background: var(--green-lt);
    border-color: var(--green-md);
    color: var(--green)
}

.hr .group-icon {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #7c3aed
}

.exec .group-icon {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1
}

.group-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text)
}

.group-list {
    list-style: none;
    display: grid;
    gap: 8px
}

.group-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--text2)
}

.group-list li i {
    font-size: .78rem;
    width: 18px;
    text-align: center
}

.nurse .group-list li i {
    color: var(--green)
}

.hr .group-list li i {
    color: #7c3aed
}

.exec .group-list li i {
    color: #0369a1
}

.group-punch {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: .88rem;
    font-style: italic;
    font-weight: 600
}

.nurse .group-punch {
    color: var(--green)
}

.hr .group-punch {
    color: #7c3aed
}

.exec .group-punch {
    color: #0369a1
}

/* RESULTS */
#results {
    background: var(--bg)
}

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

.result-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: .3s;
}

.result-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.result-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green)
}

.result-text {
    color: var(--text2);
    font-size: .88rem;
    margin-top: 6px;
    line-height: 1.5
}

/* TESTIMONIALS */
#testimonials {
    background: var(--bg2)
}

.testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.testi-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: .3s;
}

.testi-card:hover {
    border-color: var(--green-md);
    box-shadow: var(--shadow-md)
}

.stars {
    color: #f59e0b;
    font-size: .95rem;
    margin-bottom: 14px
}

.testi-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text)
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff
}

.av1 {
    background: var(--green)
}

.av2 {
    background: #7c3aed
}

.testi-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text)
}

.testi-role {
    font-size: .78rem;
    color: var(--text3)
}

/* TRUST */
#trust {
    background: var(--bg)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.trust-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: .3s;
}

.trust-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--green-lt);
    border: 1px solid var(--green-md);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}

.trust-card h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text)
}

.trust-card p {
    font-size: .82rem;
    color: var(--text2);
    line-height: 1.5
}

/* SECURITY */
#security {
    background: var(--bg2)
}

.sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.sec-card {
    background: var(--bg);
    border: 1px solid var(--green-md);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: .3s;
}

.sec-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.sec-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 12px;
    color: #fff;
}

.sec-card h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text)
}

.sec-card p {
    font-size: .82rem;
    color: var(--text2)
}

/* FINAL CTA */
#cta {
    background: #2fc6d1;
    color: #fff;
    text-align: center;
    padding: 80px 5%;
}

/* Override .grad and .tag to look good on teal background */
#cta .grad {
    color: #07235b;
    -webkit-text-fill-color: #07235b;
}

#cta .tag {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

/* Primary button: dark navy on teal bg */
#cta .btn-big.primary {
    background: red;
    color: #fff;
}

#cta .btn-big.primary:hover {
    background: rgb(252, 4, 4);
    box-shadow: 0 8px 24px rgba(7, 35, 91, .35);
}

#cta h2 {
    color: #fff;
    margin-bottom: 14px
}

.cta-roles {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap
}

.cta-role {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 1.5rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.6
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap
}

.btn-big {
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: .3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-big.primary {
    background: #fff;
    color: var(--green)
}

.btn-big.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15)
}

.btn-big.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .6);
    color: #fff
}

.btn-big.outline:hover {
    background: rgba(255, 255, 255, .1)
}

/* CONTACT SECTION */
#contact {
    background: #f8fafc;
    padding: 80px 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.contact-info-sub {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: .95rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: .75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}

.contact-item-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}

.contact-item-value a {
    color: var(--text);
    text-decoration: none;
}

.contact-item-value a:hover {
    color: var(--green)
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
}

.contact-social-btn:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* Contact Form */
.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
}

.contact-form-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-form-sub {
    font-size: .85rem;
    color: var(--text2);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .02em;
}

.form-group label span {
    color: #e53e3e
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    font-family: 'Sarabun', sans-serif;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57, 123, 255, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--green2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(57, 123, 255, .3);
}

.form-success {
    display: none;
    text-align: center;
    padding: 32px 20px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-lt);
    color: var(--green);
    font-size: 1.8rem;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success h4 {
    color: var(--text);
    margin-bottom: 8px
}

.form-success p {
    color: var(--text2);
    font-size: .9rem
}

@media(max-width:768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .contact-form-card {
        padding: 28px 20px
    }
}

/* FOOTER */
footer {
    background: #0f172a;
    padding: 40px 5% 20px
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

.footer-desc {
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.7
}

.footer-col h5 {
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    font-size: .9rem
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 8px
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: .85rem;
    transition: .2s
}

.footer-col ul li a:hover {
    color: var(--green2)
}

.footer-bot {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px
}

.footer-bot p {
    color: #64748b;
    font-size: .82rem
}

.social {
    display: flex;
    gap: 10px
}

.social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: .3s;
}

.social a:hover {
    border-color: var(--green);
    color: var(--green2)
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: .6s
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

/* =============================================
   RESPONSIVE — MOBILE-FIRST OVERHAUL
   ============================================= */

/* HAMBURGER BUTTON (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

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

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ---- TABLET 900px ---- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .cta-group,
    .pain-list {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pain-list {
        align-items: flex-start;
        display: inline-block;
        text-align: left;
    }

    .cta-group {
        flex-direction: row;
    }

    .sol-grid {
        grid-template-columns: 1fr;
    }

    .sol-features-inner {
        padding: 40px 5%;
        max-width: none;
    }

    .groups-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .hero-bg {
        padding-bottom: 60px;
    }
}

/* ---- MOBILE 768px ---- */
@media (max-width: 768px) {

    /* NAV — hamburger */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 300px);
        height: 100dvh;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 88px 32px 40px;
        gap: 24px;
        z-index: 1000;
        box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
        transition: right .35s cubic-bezier(.4, 0, .2, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.05rem;
        display: block;
        padding: 4px 0;
    }

    .btn-nav {
        display: block;
        text-align: center;
    }

    /* dismiss overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .3);
        z-index: 999;
    }

    .nav-overlay.open {
        display: block;
    }

    /* HERO */
    #hero {
        padding: 88px 5% 56px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .cta-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pain-list {
        text-align: left;
        display: inline-block;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    /* Feature tabs — scroll horizontally */
    .feature-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .feature-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        min-width: 70px;
        flex-shrink: 0;
    }

    /* Phone float mockup — hide on mobile */
    .phone-float {
        display: none;
    }

    /* SECTIONS */
    section {
        padding: 52px 5%;
    }

    #cta {
        padding: 60px 5%;
    }

    #contact {
        padding: 60px 5%;
    }

    /* GRIDS */
    .hero-grid,
    .sol-grid,
    .testi-grid,
    .groups-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-top {
        gap: 24px;
    }

    .sol-features-inner {
        padding: 36px 5%;
    }

    .prob-grid,
    .results-grid,
    .trust-grid,
    .sec-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* PHOTO FEATURE */
    #photo-feature {
        grid-template-columns: 1fr;
    }

    .photo-feature-img {
        min-height: 240px;
    }

    .photo-feature-content {
        padding: 36px 24px;
    }

    .photo-feature-content h2 {
        font-size: 1.5rem;
    }

    /* SOLUTION VIDEO */
    .sol-grid {
        gap: 0;
    }

    .sol-video-wrap {
        border-radius: 0;
        box-shadow: none;
        aspect-ratio: 16/9;
    }

    /* GALLERY */
    #gallery-strip {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .gallery-item {
        height: 150px;
    }

    /* IMG BANNER */
    .img-banner-content {
        padding: 48px 5%;
    }

    .img-banner-content h2 {
        font-size: 1.4rem;
    }

    .img-banner-stats {
        gap: 18px;
    }

    .img-stat-num {
        font-size: 1.8rem;
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-form-card {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-role {
        font-size: 1rem;
    }

    .cta-subtitle {
        font-size: 1rem !important;
    }
}

/* ---- SMALL PHONE 480px ---- */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .prob-grid,
    .results-grid,
    .trust-grid,
    .sec-grid,
    .groups-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-outline {
        font-size: .88rem;
        padding: 11px 18px;
    }

    .btn-big {
        font-size: .9rem;
        padding: 12px 24px;
    }

    .cta-roles {
        flex-direction: column;
        align-items: center;
    }

    .cta-role {
        font-size: .92rem;
    }

    .cta-subtitle {
        font-size: .95rem !important;
    }

    .img-banner-stats {
        flex-direction: column;
        gap: 14px;
    }

    .img-stat-num {
        font-size: 1.6rem;
    }

    #gallery-strip {
        grid-template-columns: 1fr 1fr;
    }

    .feature-tabs {
        gap: 4px;
    }

    .tab-item {
        min-width: 64px;
        padding: 8px 6px;
    }

    .tab-icon {
        width: 34px;
        height: 34px;
        font-size: .95rem;
    }

    .tab-label {
        font-size: .6rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .nav-links {
        width: 100%;
        border-radius: 0;
    }
}

/* ===== IMAGE SECTIONS ===== */

/* Hero photo panel */
#hero {
    position: relative;
    overflow: hidden
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1400&q=80') center/cover no-repeat;
    opacity: .08;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1
}

/* Full-width banner with image overlay */
.img-banner {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.img-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s;
}

.img-banner:hover .img-banner-bg {
    transform: scale(1.03)
}

.img-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(35, 84, 180, 0.8) 100%);
}

.img-banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 60px 5%;
    max-width: 700px;
}

.img-banner-content h2 {
    color: #fff;
    text-align: left;
    font-size: 2rem;
    margin-bottom: 12px
}

.img-banner-content p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px
}

.img-banner-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap
}

.img-stat {
    text-align: center
}

.img-stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1
}

.img-stat-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 4px
}

/* Solution section – full-width edge-to-edge video */
#solution {
    padding: 0
}

.sol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: none;
}

.sol-features-inner {
    padding: 60px 5% 60px 52px;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

@media(max-width:768px) {
    .sol-grid {
        grid-template-columns: 1fr
    }

    .sol-features-inner {
        padding: 40px 5%
    }
}

.sol-video-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .14);
    position: relative;
    background: #000;
    /* ยืดเต็ม column ซ้าย ให้ match height กับ sol-features */
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.sol-video-wrap iframe,
.sol-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Thumbnail overlay before play */
.sol-video-thumb {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=700&q=80') center/cover no-repeat;
    cursor: pointer;
    z-index: 2;
    transition: opacity .4s;
}

.sol-video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 33, 92, 0.5);
}

.sol-video-thumb.hidden {
    opacity: 0;
    pointer-events: none
}

.sol-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--green);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}

.sol-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 8px 32px rgba(57, 123, 255, .45)
}

.sol-play-btn i {
    margin-left: 4px
}

.sol-video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, transparent 100%);
    padding: 28px 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sol-video-label-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0
}

.sol-video-label-text {
    font-size: .8rem;
    font-weight: 700;
    color: #fff
}

.sol-video-label-sub {
    font-size: .68rem;
    color: rgba(255, 255, 255, .8)
}

/* Photo testimonials bg */
#testimonials {
    position: relative;
    overflow: hidden
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1400&q=80') center/cover no-repeat;
    opacity: .05;
    z-index: 0;
}

#testimonials .container {
    position: relative;
    z-index: 1
}

/* Photo feature section */
#photo-feature {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.photo-feature-img {
    background: url('https://images.unsplash.com/photo-1551076805-e1869033e561?w=800&q=80') center/cover no-repeat;
    min-height: 420px;
}

.photo-feature-content {
    background: #07235b;
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo-feature-content .tag {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    margin-bottom: 16px;
    display: inline-block
}

.photo-feature-content h2 {
    color: #fff;
    text-align: left;
    font-size: 1.9rem;
    margin-bottom: 16px
}

.photo-feature-content p {
    color: rgba(255, 255, 255, .88);
    line-height: 1.75;
    margin-bottom: 28px
}

.photo-feature-checks {
    display: grid;
    gap: 12px;
    margin-bottom: 32px
}

.photo-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .9);
    font-size: .93rem
}

.photo-check-item i {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0
}

/* Gallery strip */
#gallery-strip {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 260px
}

.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.gallery-item:hover img {
    transform: scale(1.08)
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 60, 180, .75) 0%, transparent 60%);
    opacity: 0;
    transition: .3s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1
}

.gallery-item-text {
    color: #fff;
    font-size: .82rem;
    font-weight: 600
}

/* Responsive image sections */
@media(max-width:768px) {
    #photo-feature {
        grid-template-columns: 1fr
    }

    .photo-feature-img {
        min-height: 280px
    }

    .photo-feature-content {
        padding: 40px 28px
    }

    #gallery-strip {
        grid-template-columns: repeat(2, 1fr);
        height: auto
    }

    .gallery-item {
        height: 160px
    }

    .img-banner-stats {
        gap: 20px
    }

    .img-banner-content h2 {
        font-size: 1.5rem
    }
}

@media(max-width:480px) {
    #gallery-strip {
        grid-template-columns: 1fr 1fr
    }
}

/* ===== HR PAGE SPECIFIC STYLES ===== */
.hr-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
}

.hr-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.hr-highlight-item i {
    font-size: 1.1rem;
}

@media(max-width:768px) {
    .hr-hero-highlights {
        flex-direction: column;
        gap: 10px;
    }
    
    .prob-grid[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .groups-grid[style*="repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .sec-grid[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media(max-width:480px) {
    .prob-grid[style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    
    .groups-grid[style*="repeat(5"] {
        grid-template-columns: 1fr !important;
    }
    
    .sec-grid[style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}