:root {
  /* Brand palette — magenta (เครือ ONE DNA) + navy (B2B) + blue-grey (คลื่นน้ำ) */
  --deep:        #1B3A5C;  /* navy — deep backgrounds */
  --deep-2:      #16314D;  /* darker navy for gradients */
  --teal:        #A02860;  /* PRIMARY magenta — CTA, links, tags */
  --teal-dark:   #7E1E4B;  /* magenta hover */
  --aqua:        #8FA8BC;  /* accent blue-grey — waves, soft accents */
  --pink:        #E86AA0;  /* light magenta — hero highlight */
  --aqua-light:  #F6EBF1;  /* soft magenta tint — badge/tag backgrounds */
  --pale:        #EDF1F4;  /* soft blue-grey tint */
  --white:       #FFFFFF;
  --gray-bg:     #F5F5F5;  /* neutral */
  --gray-line:   #E3E7EB;
  --text-dark:   #16283C;
  --text-mid:    #4A5A69;
  --text-soft:   #8494A1;
  --green:       #2FA36B;
  --amber:       #E0972A;
  --red:         #D2564B;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(27,58,92,0.08);
  --shadow-lg:   0 16px 48px rgba(27,58,92,0.14);
  --maxw:        1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Noto Sans Thai', 'Inter', system-ui, sans-serif; color: var(--text-dark); background: var(--white) url('/images/bg-water-light.jpg') center top / cover fixed; overflow-x: hidden; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  box-shadow: 0 2px 16px rgba(27,58,92,0.05);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text strong { display: block; font-size: 17px; font-weight: 800; color: var(--deep); letter-spacing: .5px; line-height: 1.1; }
.nav-logo-text span { font-size: 9.5px; color: var(--text-soft); letter-spacing: 1.2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-mid); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active { font-weight: 700; }
.nav-cta { background: var(--teal); color: #fff !important; padding: 10px 22px; border-radius: 26px; text-decoration: none; font-size: 13.5px; font-weight: 700; transition: all .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--teal-dark); box-shadow: 0 6px 18px rgba(160,40,96,.28); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 23px; height: 2px; background: var(--deep); margin: 5px 0; transition: all .3s; border-radius: 2px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 30px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: inherit; transition: all .22s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(160,40,96,.30); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--aqua-light); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ─── HERO ─── */
.hero { position: relative; padding: 150px 5% 100px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(158deg, rgba(18,38,60,.80) 0%, rgba(20,44,68,.72) 48%, rgba(126,30,75,.68) 100%), url('/images/hero-water.jpg') center/cover; background-attachment: scroll; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(circle at 15% 20%, rgba(143,168,188,.30), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(160,40,96,.45), transparent 48%); }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #eafcff; font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 24px; margin-bottom: 26px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 9px var(--pink); }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 800; line-height: 1.18; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 .hl { color: var(--pink); }
.hero-desc { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 20px; }
.hero-origin { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ─── SECTION ─── */
section.sec { padding: 84px 5%; }
.sec-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; padding: 5px 15px; background: var(--aqua-light); border-radius: 24px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(25px, 3.6vw, 38px); font-weight: 800; color: var(--text-dark); margin-bottom: 14px; letter-spacing: -.3px; }
.sec-head p { font-size: 16px; color: var(--text-mid); }
.sec-title-left h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.3px; }

/* ─── PROBLEM / SOLUTION CARDS ─── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius); box-shadow: var(--shadow); transition: all .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c5dbe3; }
.prob-card { padding: 30px 26px; }
.prob-card .ico { font-size: 34px; margin-bottom: 16px; display: block; }
.prob-card h3 { font-size: 18.5px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.prob-card .aud { font-size: 12.5px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.prob-card p { font-size: 14.5px; color: var(--text-mid); }

/* ─── FEATURE / WHY ─── */
.why-card { padding: 28px 26px; background: var(--gray-bg); border: 1px solid var(--gray-line); border-radius: var(--radius); }
.why-card .num { font-size: 13px; font-weight: 800; color: #fff; background: var(--teal); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--text-mid); }

/* ─── SPLIT / STORY ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .txt h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-bottom: 18px; letter-spacing: -.3px; }
.split .txt p { font-size: 16px; color: var(--text-mid); margin-bottom: 16px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: var(--text-dark); align-items: flex-start; }
.check-list li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--aqua-light); color: var(--teal); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.visual-water { border-radius: 20px; overflow: hidden; min-height: 360px; position: relative;
  background: linear-gradient(160deg, rgba(27,58,92,.72) 0%, rgba(53,89,126,.55) 55%, rgba(143,168,188,.5) 100%), url('/images/bg-hero.jpg') center/cover; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; }
.visual-water .drop { font-size: 120px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); }
.visual-water .ripple { position: absolute; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; animation: ripple 4s ease-out infinite; }
@keyframes ripple { 0% { width: 40px; height: 40px; opacity: .8; } 100% { width: 340px; height: 340px; opacity: 0; } }

/* ─── PRODUCT ─── */
.prod-card { padding: 34px 30px; display: flex; flex-direction: column; overflow: hidden; }
.prod-img { height: 168px; background-size: cover; background-position: center; margin: -34px -30px 22px; }
.prod-card .badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--aqua-light); padding: 5px 13px; border-radius: 20px; margin-bottom: 16px; }
.prod-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.prod-card .en { font-size: 13px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.prod-card > p { font-size: 15px; color: var(--text-mid); margin-bottom: 18px; }
.prod-card .pack { font-size: 13.5px; color: var(--deep); background: var(--pale); border: 1px dashed var(--gray-line); padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }

/* ─── CTA BAND ─── */
.cta-band { background: linear-gradient(135deg, rgba(27,58,92,.92), rgba(126,30,75,.88)), url('/images/bg-magenta.jpg') center/cover; color: #fff; border-radius: 22px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 82% 18%, rgba(232,106,160,.45), transparent 52%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── FORM ─── */
.form-card { background: #fff; border: 1px solid var(--gray-line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 38px 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-line); border-radius: 11px;
  font-family: inherit; font-size: 15px; color: var(--text-dark); background: var(--gray-bg); transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(160,40,96,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }
.form-status { font-size: 14.5px; font-weight: 600; margin-top: 14px; text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ─── CONTACT INFO ─── */
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--aqua-light); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.contact-line .cl { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; }
.contact-line .cv { font-size: 15.5px; font-weight: 700; color: var(--text-dark); }
.contact-line a.cv { text-decoration: none; }

/* ─── AI WATER TOOL ─── */
.tool-wrap { max-width: 720px; margin: 0 auto; }
.drop-zone { border: 2px dashed var(--gray-line); border-radius: 16px; background: var(--gray-bg); padding: 44px 24px; text-align: center; cursor: pointer; transition: all .2s; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--teal); background: var(--aqua-light); }
.drop-zone .di { font-size: 40px; margin-bottom: 12px; }
.drop-zone p { font-size: 15px; color: var(--text-mid); }
.drop-zone .sub { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; }
.preview-img { max-height: 260px; border-radius: 14px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.result-card { background: #fff; border: 1px solid var(--gray-line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 26px; margin-top: 24px; }
.result-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.pill { display: inline-block; padding: 4px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.pill.sev-เบา, .pill.low { background: #e4f6ec; color: var(--green); }
.pill.sev-ปานกลาง, .pill.mid { background: #fdf1dd; color: var(--amber); }
.pill.sev-รุนแรง, .pill.high { background: #fbe6e4; color: var(--red); }
.result-block { margin-top: 18px; }
.result-block h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); margin-bottom: 8px; }
.result-block ul { padding-left: 20px; }
.result-block li { font-size: 15px; color: var(--text-mid); margin-bottom: 5px; }
.result-block p { font-size: 15px; color: var(--text-mid); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--gray-line); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ─── */
footer { background: var(--deep); color: rgba(255,255,255,.7); padding: 56px 5% 26px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 44px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-logo-text strong { display: block; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.footer-logo-text span { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--aqua); }
.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer-col h5 { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 15px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.62); text-decoration: none; font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: var(--aqua); }
.footer-contact li { font-size: 13.5px; color: rgba(255,255,255,.62); display: flex; gap: 9px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.4); }

/* ─── FLOATING CTA (mobile) ─── */
.float-cta { position: fixed; bottom: 18px; right: 18px; z-index: 90; background: var(--teal); color: #fff; padding: 14px 22px; border-radius: 30px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px rgba(160,40,96,.4); display: none; align-items: center; gap: 8px; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: #fff; padding: 18px 5% 26px; gap: 0; box-shadow: 0 8px 32px rgba(0,0,0,.12); border-top: 1px solid var(--gray-line); z-index: 99; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-links.mobile-open li { border-bottom: 1px solid var(--gray-line); }
  .nav-links.mobile-open a { display: block; padding: 14px 0; font-size: 15.5px; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split .visual-water { min-height: 260px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .float-cta { display: inline-flex; }
}
@media (max-width: 620px) {
  section.sec { padding: 60px 5%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 130px 6% 80px; }
}
