@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --navy:#0b2a5b;
  --blue:#0057c2;
  --blue-bright:#0f6dff;
  --ink:#1c2733;
  --ink-soft:#5b6675;
  --bg:#ffffff;
  --surface:#f4f7fb;
  --line:#e3e8f0;
  --gold:#f2a900;
  --brand-red:#d92b1c;
  --brand-blue:#1e5fd9;
  --brand-gold:#f5b301;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Noto Sans Thai','Poppins',sans-serif;
  line-height:1.7;
}
h1,h2,h3{font-family:'Poppins','Noto Sans Thai',sans-serif; font-weight:600; color:var(--navy); margin:0;}
.wrap{max-width:1140px; margin:0 auto; padding:0 28px;}
a{text-decoration:none; color:inherit;}
img.ph{display:block; width:100%; border-radius:4px;}
ul{margin:0; padding:0;}

/* ---------- HEADER ---------- */
.topbar{background:var(--navy); color:#cfe0ff; font-size:12.5px;}
.topbar .wrap{display:flex; justify-content:flex-end; gap:24px; padding:6px 28px;}

header.site{
  border-bottom:1px solid var(--line); background:white;
  position:sticky; top:0; z-index:50;
}
header.site .wrap{display:flex; align-items:center; justify-content:space-between; height:92px;}
.logo-block{display:flex; align-items:center; gap:14px;}
.logo-mark-img{width:52px; height:52px; object-fit:contain; flex-shrink:0; border-radius:50%;}
.logo-text .en{font-family:'Poppins'; font-weight:600; font-size:16px; color:var(--navy); line-height:1.3;}
.logo-text .th{font-size:12.5px; color:var(--ink-soft);}
nav.mainmenu{display:flex; gap:30px; font-size:15px; color:var(--ink);}
nav.mainmenu a:hover{color:var(--blue-bright);}
nav.mainmenu a.active{color:var(--blue-bright); font-weight:600;}
.header-right{display:flex; align-items:center; gap:24px;}
.lang-flags{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft);}
.lang-flags a{padding:2px 4px;}
.lang-flags a.active{color:var(--navy); font-weight:600;}
.lang-sep{color:var(--line);}
.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;}
.nav-toggle span{width:24px; height:2px; background:var(--navy); display:block;}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero{background:var(--navy); color:white; padding:56px 0;}
.page-hero h1{color:white; font-size:32px; margin-bottom:12px;}
.page-hero p{color:#c3d3ec; font-size:15.5px; max-width:640px; margin:0;}
.breadcrumb{font-size:13px; color:#9fb6de; margin-bottom:14px;}
.breadcrumb a:hover{color:white;}

/* ---------- HERO (home) ---------- */
.hero{padding:64px 0 0; background:var(--surface);}
.hero .wrap{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding-bottom:64px;}
.hero h1{font-size:38px; line-height:1.35; margin-bottom:20px;}
.hero p{color:var(--ink-soft); font-size:16px; max-width:480px; margin-bottom:30px;}
.btn{
  display:inline-block; padding:13px 30px; border-radius:4px;
  font-size:15px; font-weight:500; border:none; cursor:pointer;
}
.btn-blue{background:var(--blue-bright); color:white;}
.btn-blue:hover{background:var(--navy);}
.btn-outline{border:1.5px solid var(--navy); color:var(--navy); margin-left:12px;}
.btn-outline:hover{background:var(--navy); color:white;}

.hero-diagram{
  border-radius:6px; overflow:hidden; box-shadow:0 24px 48px -18px rgba(11,42,91,0.28);
  background:linear-gradient(135deg,#0b2a5b,#0f6dff); aspect-ratio:16/11;
  position:relative;
}
.hero-diagram .grid-graphic{
  position:absolute; inset:0; opacity:.35;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size:36px 36px;
}
.hero-diagram svg{position:relative; z-index:2; width:100%; height:100%; display:block;}

/* ---------- BANNER STRIP ---------- */
.banner{background:var(--navy); color:white;}
.banner .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:26px 28px; gap:24px; flex-wrap:wrap;
}
.banner-left{max-width:640px;}
.banner-left h3{color:white; font-size:19px; margin-bottom:6px;}
.banner-left p{color:#c3d3ec; font-size:14px; margin:0;}
.banner-tag{
  background:var(--gold); color:var(--navy); font-family:'Poppins'; font-weight:600;
  padding:10px 20px; border-radius:4px; font-size:14px; white-space:nowrap;
}

/* ---------- SECTION SHELL ---------- */
section{padding:76px 0;}
.section-title{text-align:center; max-width:680px; margin:0 auto 48px;}
.section-title .kicker{color:var(--blue-bright); font-weight:600; font-size:14px; margin-bottom:10px;}
.section-title h2{font-size:29px; margin-bottom:14px;}
.section-title p{color:var(--ink-soft); font-size:15.5px; margin:0;}

/* ---------- ABOUT / WHAT-IS BLOCK ---------- */
.about-block{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
.about-block .txt h2{font-size:27px; margin-bottom:18px;}
.about-block .txt p{color:var(--ink-soft); font-size:15.5px; margin-bottom:16px;}
.about-img{border-radius:6px; background:var(--surface); aspect-ratio:4/3; position:relative; overflow:hidden; border:1px solid var(--line);}
.node{position:absolute; background:white; border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 20px -8px rgba(11,42,91,.18); font-size:12px; font-family:'Poppins'; font-weight:500; color:var(--navy); display:flex; align-items:center; justify-content:center; text-align:center; padding:6px;}
.node-core{width:96px;height:96px;left:calc(50% - 48px);top:calc(50% - 48px); background:var(--blue-bright); color:white; font-size:13px; z-index:3;}
.n1{width:78px;height:50px; top:8%; left:10%;}
.n2{width:78px;height:50px; top:6%; right:8%;}
.n3{width:78px;height:50px; bottom:12%; left:6%;}
.n4{width:78px;height:50px; bottom:8%; right:10%;}
svg.lines{position:absolute; inset:0; width:100%; height:100%;}
svg.lines line{stroke:var(--line); stroke-width:1.5;}

/* evolution timeline */
.evo-row{display:flex; gap:0; border-top:1px solid var(--line); margin-top:52px;}
.evo-item{flex:1; padding:28px 24px; border-right:1px solid var(--line); text-align:left;}
.evo-item:last-child{border-right:none;}
.evo-num{font-family:'Poppins'; color:var(--blue-bright); font-weight:600; font-size:13px; margin-bottom:10px;}
.evo-item h4{font-size:16.5px; margin-bottom:8px; color:var(--navy);}
.evo-item p{margin:0; color:var(--ink-soft); font-size:14px;}
.evo-item.active{background:var(--surface);}

/* ---------- ICON CARDS ---------- */
.icon-cards{display:grid; grid-template-columns:repeat(5,1fr); gap:26px;}
.icon-cards.icon-cards-4{grid-template-columns:repeat(4,1fr);}
.icard-icon.lg{width:auto; height:auto; border-radius:8px; padding:12px 16px; font-size:26px; border-width:1.5px;}
.icard{text-align:center;}
.icard-icon{
  width:64px; height:64px; border-radius:50%; margin:0 auto 18px;
  background:var(--surface); border:2px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family:'Poppins'; font-weight:600; font-size:20px;
}
.icard h4{font-size:15.5px; margin-bottom:8px; color:var(--navy);}
.icard p{font-size:13.5px; color:var(--ink-soft); margin:0;}

/* ---------- STATS BAND ---------- */
.stat-band{background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.stat-cols{display:grid; grid-template-columns:repeat(3,1fr); text-align:center;}
.stat-cols > div{padding:44px 20px; border-right:1px solid var(--line);}
.stat-cols > div:last-child{border-right:none;}
.stat-num{font-family:'Poppins'; font-weight:700; font-size:44px; color:var(--blue-bright); margin-bottom:8px;}
.stat-label{color:var(--ink-soft); font-size:14px; max-width:220px; margin:0 auto;}

/* ---------- SECURITY ---------- */
.security-section{background:white;}
.sec-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.sec-grid.sec-grid-3{grid-template-columns:repeat(3,1fr);}
.sec-card{padding:30px 24px; border-right:1px solid var(--line);}
.sec-card:last-child{border-right:none;}
.sec-tag{font-family:'Poppins'; font-size:12px; font-weight:600; color:var(--blue-bright); letter-spacing:.04em; margin-bottom:12px;}
.sec-card h4{font-size:16px; margin-bottom:10px; color:var(--navy);}
.sec-card ul{margin:0; padding-left:16px; color:var(--ink-soft); font-size:13px; line-height:1.85; list-style:disc;}
.compliance-strip{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  background:var(--navy); color:white; padding:20px 28px; border-radius:6px; margin-top:0;
}
.compliance-strip .label{font-size:13.5px; color:#c3d3ec;}
.badge{background:rgba(255,255,255,0.14); padding:6px 16px; border-radius:4px; font-family:'Poppins'; font-size:12.5px; font-weight:500;}

/* ---------- USE CASE / CARDS ---------- */
.news-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:26px;}
.news-card{border:1px solid var(--line); border-radius:6px; overflow:hidden; background:white;}
.news-thumb{
  aspect-ratio:16/10; background:linear-gradient(135deg,#0b2a5b,#0f6dff);
  display:flex; align-items:center; justify-content:center; color:#cfe0ff;
  font-family:'Poppins'; font-size:12px; font-weight:600; letter-spacing:.04em; text-align:center; padding:0 12px;
}
.news-body{padding:20px;}
.news-tag{color:var(--blue-bright); font-size:12px; font-weight:600; margin-bottom:8px;}
.news-card h4{font-size:15px; margin-bottom:10px; color:var(--navy); line-height:1.5;}
.news-card p{font-size:13px; color:var(--ink-soft); margin:0 0 12px;}
.news-link{font-size:13px; font-weight:600; color:var(--blue-bright);}

/* ---------- USE CASE TABLE (full page) ---------- */
.usecase-table{width:100%; border-collapse:collapse; border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.usecase-table th{background:var(--navy); color:white; font-family:'Poppins'; font-weight:600; font-size:13.5px; text-align:left; padding:14px 16px;}
.usecase-table td{padding:16px; border-top:1px solid var(--line); font-size:14px; color:var(--ink-soft); vertical-align:top;}
.usecase-table td:first-child{font-family:'Poppins'; font-weight:600; color:var(--navy); white-space:nowrap;}
.usecase-table tr:nth-child(even) td{background:var(--surface);}
.table-scroll{overflow-x:auto;}

/* ---------- CLIENT LOGOS / TRUSTED ---------- */
.trusted-list{text-align:center; color:var(--ink-soft); font-family:'Poppins'; font-weight:500; font-size:15px; letter-spacing:.02em;}

/* ---------- CONTACT CTA ---------- */
.contact-cta{background:var(--navy); color:white; text-align:center;}
.contact-cta h2{color:white; font-size:28px; margin-bottom:22px;}
.contact-cta p{color:#c3d3ec; margin-bottom:28px;}

/* ---------- CONTACT PAGE ---------- */
.contact-grid{display:grid; grid-template-columns:1.1fr 1fr; gap:56px; align-items:start;}
.contact-card{border:1px solid var(--line); border-radius:6px; padding:28px; background:var(--surface);}
.contact-card h4{font-size:15px; color:var(--navy); margin-bottom:6px;}
.contact-card p{color:var(--ink-soft); font-size:14.5px; margin:0 0 20px;}
.contact-item{display:flex; gap:14px; margin-bottom:22px; align-items:flex-start;}
.contact-item .ic{
  width:40px; height:40px; border-radius:8px; background:white; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--blue-bright); font-size:17px;
}
.contact-item h5{font-family:'Poppins'; font-size:14.5px; color:var(--navy); margin:0 0 4px; font-weight:600;}
.contact-item p{margin:0; color:var(--ink-soft); font-size:14px;}
.map-box{aspect-ratio:16/9; border-radius:6px; border:1px solid var(--line); background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:13.5px; margin-top:24px;}

/* ---------- ABOUT PAGE ---------- */
.about-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:48px;}
.about-stat{text-align:center; padding:30px 20px; border:1px solid var(--line); border-radius:6px;}
.about-stat .num{font-family:'Poppins'; font-weight:700; font-size:34px; color:var(--blue-bright); margin-bottom:8px;}
.about-stat .lbl{color:var(--ink-soft); font-size:13.5px;}
.placeholder-box{border:1.5px dashed var(--line); border-radius:6px; padding:28px; background:var(--surface); color:var(--ink-soft); font-size:14px;}
.placeholder-box strong{color:var(--navy);}

/* ---------- SIMPLE CONTENT PAGE BLOCKS ---------- */
.content-block{max-width:820px; margin:0 auto;}
.content-block h2{font-size:26px; margin:44px 0 16px;}
.content-block h2:first-child{margin-top:0;}
.content-block h3{font-size:18px; margin:28px 0 12px; color:var(--navy);}
.content-block p{color:var(--ink-soft); font-size:15.5px; margin-bottom:16px;}
.content-block ul{padding-left:20px; color:var(--ink-soft); font-size:15px; margin-bottom:16px;}
.content-block li{margin-bottom:8px;}

.method-table{width:100%; border-collapse:collapse; margin:20px 0; border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.method-table th{background:var(--surface); font-family:'Poppins'; font-size:13px; text-align:left; padding:12px 16px; color:var(--navy); border-bottom:1px solid var(--line);}
.method-table td{padding:12px 16px; border-top:1px solid var(--line); font-size:14px; color:var(--ink-soft);}
.method-table td:first-child{font-weight:600; color:var(--navy); font-family:'Poppins'; font-size:13.5px;}

.protocol-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:24px 0;}
.protocol-card{border:1px solid var(--line); border-radius:6px; padding:22px;}
.protocol-card .tag{font-family:'Poppins'; font-weight:600; color:var(--blue-bright); font-size:14px; margin-bottom:8px;}
.protocol-card p{font-size:13.5px; color:var(--ink-soft); margin:0;}

/* ---------- FOOTER ---------- */
footer{background:#081d40; color:#a9bee0; padding:56px 0 28px; font-size:13.5px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px;}
.footer-grid h5{color:white; font-family:'Poppins'; font-size:15px; margin-bottom:16px; font-weight:600;}
.footer-grid ul{list-style:none; margin:0; padding:0;}
.footer-grid li{margin-bottom:10px;}
.footer-grid a:hover{color:white;}
.footer-logo-box{background:white; display:inline-block; padding:12px 18px; border-radius:6px; margin-bottom:16px;}
.footer-logo-box img{height:32px; width:auto; display:block;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.12); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;}

@media (max-width: 980px){
  .hero .wrap{grid-template-columns:1fr;}
  .icon-cards{grid-template-columns:repeat(2,1fr);}
  .sec-grid{grid-template-columns:repeat(2,1fr);}
  .news-grid{grid-template-columns:repeat(2,1fr);}
  .stat-cols{grid-template-columns:1fr;}
  .stat-cols > div{border-right:none; border-bottom:1px solid var(--line);}
  .evo-row{flex-direction:column;}
  .evo-item{border-right:none; border-bottom:1px solid var(--line);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .about-block{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .protocol-cards{grid-template-columns:1fr;}
  .about-stats{grid-template-columns:1fr;}

  .nav-toggle{display:flex;}
  nav.mainmenu{
    display:none; position:absolute; top:92px; left:0; right:0; background:white;
    border-bottom:1px solid var(--line); flex-direction:column; gap:0; padding:8px 0;
    box-shadow:0 12px 24px -12px rgba(11,42,91,.2);
  }
  nav.mainmenu.open{display:flex;}
  nav.mainmenu a{padding:12px 28px; border-bottom:1px solid var(--line);}
  .header-right{gap:14px;}
}

@media (max-width: 600px){
  .topbar .wrap{flex-wrap:wrap; gap:10px;}
  .hero h1{font-size:28px;}
  .section-title h2{font-size:23px;}
  .sec-grid{grid-template-columns:1fr;}
  .news-grid{grid-template-columns:1fr;}
  .icon-cards{grid-template-columns:1fr 1fr;}
  header.site .wrap{height:64px;}
  .logo-mark-img{width:36px; height:36px;}
  .logo-text .en{font-size:14px;}
  .logo-text .th{display:none;}
  .header-right{gap:8px;}
  .lang-flags{font-size:12px; gap:4px;}
  nav.mainmenu{top:64px;}
}
