/* ============================================================
   Softnix Data Lakehouse Platform — Landing Page
   Theme aligned with SDP Datasheet 2026
   ============================================================ */

:root {
  /* Brand palette (from datasheet) */
  --navy-950: #050d1c;
  --navy-900: #081226;
  --navy-850: #0a1830;
  --navy-800: #0d1f3c;
  --navy-700: #12294d;
  --navy-100: #dbe6f4;

  --blue: #2786c2;
  --blue-bright: #50a5dc;
  --blue-deep: #19577e;
  --orange: #f0932b;
  --green: #35b57c;
  --purple: #7c5cfc;
  --teal: #1fa9a0;

  --mist: #eef3f9;
  --cloud: #f6f9fc;
  --white: #ffffff;

  --ink: #12233c;
  --ink-soft: #445873;
  --ink-mute: #6b7d95;

  --line-light: #dde6f0;
  --line-dark: rgba(255, 255, 255, 0.09);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  --shadow-card: 0 10px 30px rgba(13, 31, 60, 0.08);
  --shadow-pop: 0 24px 60px rgba(5, 13, 28, 0.35);

  --font-head: "Poppins", "Noto Sans Thai", "Thonburi", sans-serif;
  --font-body: "Inter", "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif;

  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -0.01em; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Badges / buttons ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid transparent;
}
.badge-blue   { color: var(--blue-bright); border-color: rgba(80,165,220,.45); background: rgba(39,134,194,.12); }
.badge-orange { color: var(--orange);      border-color: rgba(240,147,43,.45);  background: rgba(240,147,43,.10); }
.badge-green  { color: var(--green);       border-color: rgba(53,181,124,.45);  background: rgba(53,181,124,.10); }
.badge-purple { color: var(--purple);      border-color: rgba(124,92,252,.45);  background: rgba(124,92,252,.10); }
.badge-white  { color: #fff;               border-color: rgba(255,255,255,.5);  background: rgba(255,255,255,.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 26px rgba(39,134,194, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(39,134,194,.45); }

.btn-ghost {
  color: #eaf3fb; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.5); }

.btn-white { color: var(--blue-deep); background: #fff; box-shadow: 0 10px 24px rgba(5,13,28,.18); }
.btn-white:hover { transform: translateY(-2px); }

.btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(8, 18, 38, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.navbar.scrolled { border-bottom-color: var(--line-dark); background: rgba(8, 18, 38, 0.92); }

.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand-icon { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; }
.brand-text small { font-size: 0.68rem; color: #9fb4cd; letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: #c8d6e8; font-size: 0.9rem; font-weight: 500;
  padding: 8px 13px; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex; padding: 3px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.lang-btn {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  color: #a9bdd6; padding: 5px 13px; border-radius: 100px;
  transition: all .2s ease;
}
.lang-btn.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 4px 12px rgba(39,134,194,.4); }

.nav-toggle { display: none; color: #fff; padding: 6px; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-850) 60%, var(--navy-900) 100%);
  color: #fff;
  padding: 160px 0 90px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 165, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 220, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.hero-glow-blue   { width: 560px; height: 560px; background: rgba(39,134,194,.22); top: -160px; right: -80px; }
.hero-glow-orange { width: 380px; height: 380px; background: rgba(240,147,43,.10); bottom: -120px; left: -100px; }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; } /* กัน grid track ขยายตามเนื้อหาจนล้นจอ (mobile) */

.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; margin: 22px 0 14px; }

.accent-bar { display: block; width: 88px; height: 5px; border-radius: 4px; background: var(--blue-bright); margin-bottom: 20px; }

.hero-tagline { font-family: var(--font-head); color: var(--blue-bright); font-weight: 500; font-size: 1.02rem; letter-spacing: .04em; margin-bottom: 18px; }

.hero-desc { color: #b9c9dd; max-width: 34rem; margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #8fa6c0; font-size: 0.88rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--green); }

/* Hero visual */
.hero-visual { position: relative; }

.browser-frame {
  background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.browser-frame img { width: 100%; height: auto; }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  background: #eef2f7; padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #cdd8e4; }
.browser-dot:nth-child(1) { background: #f26d6d; }
.browser-dot:nth-child(2) { background: #f5bf4f; }
.browser-dot:nth-child(3) { background: #5bc97e; }
.browser-url {
  margin-left: 10px; flex: 1;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.72rem; color: #8a99ad; padding: 4px 12px;
  font-family: var(--font-body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.float-anim { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  color: var(--navy-850); background: #fff;
  padding: 10px 16px; border-radius: 100px;
  box-shadow: 0 14px 34px rgba(5,13,28,.35);
}
.hero-chip .icon { color: var(--blue); }
.hero-chip-1 { top: 18px; left: -26px; animation: floaty 6s ease-in-out infinite .6s; }
.hero-chip-2 { bottom: 26px; right: -14px; animation: floaty 6.6s ease-in-out infinite 1.2s; }
.hero-chip-2 .icon { color: var(--green); }

/* Hero cards (like datasheet cover) */
.hero-cards {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 74px;
}
.h-card {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 24px 26px 30px;
  backdrop-filter: blur(4px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.h-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); }
.h-card-tag { font-family: var(--font-head); font-size: 0.68rem; font-weight: 600; letter-spacing: .14em; }
.h-card-blue  .h-card-tag, .h-card-blue  .h-card-bar { color: var(--blue-bright); }
.h-card-orange .h-card-tag { color: var(--orange); }
.h-card-green  .h-card-tag { color: var(--green); }
.h-card h3 { font-size: 1.18rem; margin: 10px 0 8px; }
.h-card p { color: #9db1ca; font-size: 0.9rem; }
.h-card-bar { display: block; width: 52px; height: 4px; border-radius: 4px; margin-top: 18px; background: currentColor; }
.h-card-blue .h-card-bar { background: var(--blue-bright); }
.h-card-orange .h-card-bar { background: var(--orange); }
.h-card-green .h-card-bar { background: var(--green); }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy-950); border-block: 1px solid var(--line-dark); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; color: #93a9c4; font-size: 0.82rem; }
.stat strong {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(120deg, #7ed3ff, var(--blue-bright) 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-unit { font-size: 1.1rem; }
.stat span { line-height: 1.45; }

/* ---------- Sections base ---------- */
.section { padding: 96px 0; position: relative; }
.section-light { background: var(--white); }
.section-mist  { background: var(--cloud); }
.section-dark  { background: var(--navy-900); color: #eaf2fb; overflow: hidden; }
.section-navy  { background: var(--navy-850); color: #eaf2fb; overflow: hidden; }
.section-navy .hero-grid-bg { opacity: .6; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: 18px 0 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; }
.section-dark .section-sub, .section-navy .section-sub { color: #9db1ca; }

.block-title { font-size: 1.3rem; font-weight: 600; margin: 64px 0 26px; text-align: center; position: relative; }
.block-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--blue); margin: 12px auto 0; }
.block-title-light { color: #fff; }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-card {
  position: relative; background: var(--cloud);
  border: 1px solid var(--line-light); border-radius: var(--radius-m);
  padding: 26px 22px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.pain-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--orange), #d97b16);
  margin-bottom: 14px;
}
.pain-card p { color: var(--ink-soft); font-size: 0.93rem; }

.solution-panel {
  margin-top: 44px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-bright) 100%);
  border-radius: var(--radius-l);
  padding: 48px 52px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(22, 100, 161, 0.3);
}
.solution-copy h3 { font-size: 1.65rem; margin: 16px 0 12px; }
.solution-copy p { color: rgba(255,255,255,.88); margin-bottom: 26px; }
.solution-points { display: flex; flex-direction: column; gap: 14px; }
.solution-points li {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  padding: 13px 16px; border-radius: 12px; font-size: 0.92rem;
}
.solution-points .icon { color: #bff3da; margin-top: 2px; }

/* ---------- Tech stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack-card {
  background: #fff; border: 1px solid var(--line-light);
  border-left-width: 5px; border-radius: var(--radius-m);
  padding: 24px 24px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stack-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.stack-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stack-card h4 { font-size: 1.12rem; }
.stack-card ul { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 0.9rem; }

.border-blue   { border-left-color: var(--blue); }
.border-teal   { border-left-color: var(--teal); }
.border-orange { border-left-color: var(--orange); }
.border-purple { border-left-color: var(--purple); }
.border-green  { border-left-color: var(--green); }
.border-navy   { border-left-color: var(--navy-700); }

.stack-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tag-blue   { color: var(--blue); }
.tag-teal   { color: var(--teal); }
.tag-orange { color: var(--orange); }
.tag-purple { color: var(--purple); }
.tag-green  { color: var(--green); }
.tag-navy   { color: var(--navy-700); }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-m);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.cap-card h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.cap-card h4 .icon { color: var(--blue); width: 1.4em; height: 1.4em; }

.dot-list li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; }
.dot-blue li::before { background: var(--blue); }
.dot-orange li::before { background: var(--orange); }
.dot-green li::before { background: var(--green); }

/* ---------- Features showcase (dark) ---------- */
.section-dark .hero-grid-bg { opacity: .5; }
.showcase {
  display: grid; grid-template-columns: 320px 1fr; gap: 34px;
  position: relative;
}
.showcase-tabs {
  display: flex; flex-direction: column; gap: 18px;
  max-height: 640px; overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.tab-group { display: flex; flex-direction: column; gap: 6px; }
.tab-group-label {
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #6f87a6;
  padding: 0 12px 4px;
}
.tab-btn {
  display: flex; align-items: center; gap: 11px;
  color: #b4c6dc; font-size: 0.9rem; font-weight: 500; text-align: left;
  padding: 11px 14px; border-radius: 11px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.tab-btn .icon { color: #7389a5; transition: color .2s ease; }
.tab-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.tab-btn.active {
  background: linear-gradient(120deg, rgba(39,134,194,.22), rgba(25,87,126,.28));
  border-color: rgba(80,165,220,.4);
  color: #fff;
}
.tab-btn.active .icon { color: var(--blue-bright); }

.showcase-panel {
  display: flex; flex-direction: column; gap: 22px;
  min-width: 0;
}
.showcase-copy h3 { font-size: 1.5rem; margin-bottom: 8px; }
.showcase-copy p { color: #a7bad2; max-width: 46rem; }
.panel-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.panel-points li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: #c3d3e7;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  padding: 8px 14px; border-radius: 100px;
}
.panel-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); flex: none; }

.showcase-figure .browser-frame { box-shadow: var(--shadow-pop); }
.showcase-figure img { transition: opacity .25s ease; }
.showcase-figure img.fading { opacity: 0; }

/* ---------- Architecture ---------- */
.arch-diagram {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  padding: 40px 36px;
}
.arch-layer-label {
  display: block; text-align: center;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #7f96b5;
  margin-bottom: 14px;
}
.arch-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.arch-node {
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 500;
}
.arch-node-ghost { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.22); color: #c3d3e7; }

.arch-connector { width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(180deg, rgba(80,165,220,.1), rgba(80,165,220,.7)); }

.arch-vip {
  width: fit-content; margin: 0 auto;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  padding: 10px 26px; border-radius: 100px;
  box-shadow: 0 10px 26px rgba(39,134,194,.35);
}
.arch-vip small { font-weight: 400; opacity: .8; }

.arch-masters { align-items: stretch; gap: 18px; }
.arch-master {
  flex: 1; max-width: 380px;
  background: rgba(80,165,220,.08);
  border: 1px solid rgba(80,165,220,.35);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}
.arch-master strong { width: 100%; font-family: var(--font-head); font-size: 0.98rem; margin-bottom: 6px; }
.arch-master-standby { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); }
.arch-chip {
  font-size: 0.72rem; color: #c3d3e7;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 4px 11px; border-radius: 100px;
}
.arch-replication {
  align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--blue-bright); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase;
}
.arch-replication .icon { animation: spin 5s linear infinite; width: 1.7em; height: 1.7em; }
@keyframes spin { to { transform: rotate(360deg); } }

.arch-workers { margin-top: 4px; }
.arch-worker {
  background: rgba(53,181,124,.09); border: 1px solid rgba(53,181,124,.3);
  border-radius: var(--radius-m); padding: 14px 20px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.78rem; color: #9db1ca;
}
.arch-worker strong { font-family: var(--font-head); color: #fff; font-size: 0.92rem; }
.arch-worker-more { background: rgba(255,255,255,.04); border-style: dashed; border-color: rgba(255,255,255,.2); align-items: center; justify-content: center; text-align: center; }

.ha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ha-card {
  background: rgba(255,255,255,.045); border: 1px solid var(--line-dark);
  border-radius: var(--radius-m); padding: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.ha-card:hover { transform: translateY(-5px); border-color: rgba(80,165,220,.4); }
.ha-card .icon { width: 2em; height: 2em; color: var(--blue-bright); margin-bottom: 14px; }
.ha-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.ha-card p { color: #9db1ca; font-size: 0.88rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-m);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-card);
  background: #fff;
  color: var(--ink); /* กัน text สีอ่อนจาก section มืดทับบนพื้นตารางสีขาว */
}
.section-navy .table-wrap { border-color: var(--line-dark); box-shadow: none; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 15px 20px; text-align: left; }
thead th {
  font-family: var(--font-head); font-size: 0.82rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--navy-850); color: #fff;
}
tbody tr + tr { border-top: 1px solid var(--line-light); }
tbody tr:hover { background: var(--cloud); }

.spec-table td:first-child { font-weight: 600; color: var(--navy-800); }

.cmp-table td:first-child { font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.cmp-table .col-sdp { background: rgba(39,134,194,.07); }
.cmp-table thead .col-sdp { background: var(--blue-deep); color: #fff; }
.th-logo { display: inline-block; width: 22px; height: auto; vertical-align: -5px; margin-right: 8px; }
.cmp-table tbody td { vertical-align: top; }

/* ---------- Comparison summary ---------- */
.cmp-summary { margin-top: 48px; text-align: center; }
.cmp-summary h3 { font-size: 1.35rem; margin-bottom: 28px; }
.cmp-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.cmp-sum-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-m);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cmp-sum-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.cmp-sum-card .icon { width: 2em; height: 2em; color: var(--blue); margin-bottom: 14px; }
.cmp-sum-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.cmp-sum-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.phase-card {
  position: relative;
  background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius-m); padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.phase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.phase-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 4px;
  border-radius: 0 0 6px 6px; background: var(--blue);
}
.phase-num {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.phase-card h3 { font-size: 1.12rem; margin: 10px 0 4px; }
.phase-sub { color: var(--ink-mute); font-size: 0.85rem; margin-bottom: 16px; }
.phase-card ul { display: flex; flex-direction: column; gap: 9px; }
.phase-card ul li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: 0.87rem; }
.phase-card ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.phase-highlight { background: linear-gradient(160deg, var(--navy-800), var(--navy-850)); border-color: var(--navy-700); color: #fff; }
.phase-highlight::before { background: linear-gradient(90deg, var(--orange), var(--purple)); }
.phase-highlight .phase-num { color: var(--orange); }
.phase-highlight .phase-sub { color: #93a9c4; }
.phase-highlight ul li { color: #c3d3e7; }
.phase-highlight ul li::before { background: var(--orange); }

.road-note {
  margin-top: 40px;
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(124,92,252,.1), rgba(39,134,194,.1));
  border: 1px solid rgba(124,92,252,.3);
  border-radius: var(--radius-m);
  padding: 24px 28px;
}
.road-note .icon { width: 2em; height: 2em; color: var(--purple); flex: none; margin-top: 2px; }
.road-note p { color: var(--ink-soft); }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-card {
  background: var(--cloud); border: 1px solid var(--line-light); border-radius: var(--radius-m);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.uc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.uc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.uc-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--green), #1f8f5c);
}
.uc-head h3 { font-size: 1.1rem; }
.uc-card > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-tags span {
  font-size: 0.76rem; font-weight: 500; color: var(--blue-deep);
  background: rgba(39,134,194,.1); border: 1px solid rgba(39,134,194,.25);
  padding: 5px 12px; border-radius: 100px;
}

.dep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dep-card {
  border-radius: var(--radius-l); padding: 34px;
  border: 1px solid var(--line-light); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dep-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.dep-card header { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.dep-card header .icon { width: 2.4em; height: 2.4em; flex: none; }
.dep-onprem { border-top: 5px solid var(--blue); }
.dep-onprem header .icon { color: var(--blue); }
.dep-cloud { border-top: 5px solid var(--purple); }
.dep-cloud header .icon { color: var(--purple); }
.dep-card h4 { font-size: 1.2rem; }
.dep-card header p { color: var(--ink-mute); font-size: 0.88rem; }

.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 0.93rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(53,181,124,.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 12.5l3.2 3.2L17 9" fill="none" stroke="%2335b57c" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/11px no-repeat;
}

/* ---------- Partners ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.pt-card {
  background: rgba(255,255,255,.045); border: 1px solid var(--line-dark);
  border-radius: var(--radius-m); padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.pt-card:hover { transform: translateY(-5px); border-color: rgba(240,147,43,.45); }
.pt-card .icon { width: 2.1em; height: 2.1em; color: var(--orange); margin-bottom: 16px; }
.pt-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pt-card p { color: #9db1ca; font-size: 0.89rem; }

.pt-cta {
  margin-top: 46px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: var(--radius-l); padding: 30px 38px;
}
.pt-cta p { font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; }

/* ---------- Contact / CTA ---------- */
.section-cta { background: var(--navy-950); color: #fff; overflow: hidden; }
.section-cta .hero-glow-blue { top: auto; bottom: -220px; right: -140px; opacity: .8; }

.cta-panel {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  padding: 56px;
}
.cta-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 18px 0 14px; }
.cta-copy > p { color: #a7bad2; margin-bottom: 26px; }
.cta-points { display: flex; flex-direction: column; gap: 13px; }
.cta-points li { display: flex; gap: 11px; align-items: flex-start; color: #c3d3e7; font-size: 0.95rem; }
.cta-points .icon { color: var(--green); margin-top: 3px; }

.cta-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  padding: 36px;
  backdrop-filter: blur(6px);
}
.cta-logo { width: 190px; margin-bottom: 26px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.92rem; color: #c3d3e7; }
.contact-list .icon { color: var(--blue-bright); margin-top: 3px; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line-dark); color: #8fa6c0; padding: 54px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { width: 170px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { font-size: 0.82rem; display: flex; flex-direction: column; gap: 8px; }
.footer-version { color: #5f7694; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-anim, .hero-chip-1, .hero-chip-2, .arch-replication .icon { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(8,18,38,.97); backdrop-filter: blur(16px);
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open a { padding: 13px 14px; font-size: 1rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 720px; margin: 0 auto; }
  .hero-chip-1 { left: 8px; }
  .hero-chip-2 { right: 8px; }

  .pain-grid, .pt-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid, .cap-grid, .ha-grid, .uc-grid, .cmp-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .solution-panel { grid-template-columns: 1fr; padding: 40px; }
  .cta-panel { grid-template-columns: 1fr; padding: 40px; gap: 40px; }

  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs {
    flex-direction: row; flex-wrap: nowrap; gap: 8px;
    max-height: none; overflow-x: auto; padding-bottom: 8px;
  }
  .tab-group { flex-direction: row; align-items: center; gap: 8px; flex: none; }
  .tab-group-label { display: none; }
  .tab-btn { white-space: nowrap; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero { padding: 130px 0 70px; }
  .container { width: calc(100% - 36px); }

  .nav-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-icon { width: 32px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1rem; }
  .lang-btn { padding: 5px 10px; font-size: 0.74rem; }

  .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .badge { white-space: normal; text-align: center; line-height: 1.5; }
  .hero-tagline { word-break: break-word; }
  .btn { white-space: normal; text-align: center; }

  .hero-cards, .stats-grid, .pain-grid, .stack-grid, .cap-grid,
  .ha-grid, .uc-grid, .dep-grid, .roadmap, .pt-grid, .cmp-summary-grid { grid-template-columns: 1fr; }

  .stats-grid { gap: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 10px; }
  .arch-masters { flex-direction: column; }
  .arch-master { max-width: none; }
  .arch-replication { flex-direction: row; padding: 4px 0; }
  .arch-replication .icon { transform: rotate(90deg); animation: none; }
  .arch-diagram { padding: 26px 18px; }
  .solution-panel, .cta-panel { padding: 30px 24px; }
  .cta-card { padding: 26px 22px; }
  .pt-cta { flex-direction: column; text-align: center; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cmp-table td:first-child { white-space: normal; }
  th, td { padding: 12px 14px; font-size: 0.85rem; }
}
