/* ==========================================================================
   Softnix — Central Website
   Minimal tech-company design system · Primary #2786C2
   ========================================================================== */

:root {
  --primary: #2786C2;
  --primary-dark: #1B6899;
  --primary-tint: #F0F7FC;
  --primary-line: #CFE5F3;

  --ink: #13202F;          /* headings */
  --body: #47576B;         /* body text */
  --muted: #7C8DA1;        /* secondary text */
  --line: #E4EAF1;         /* hairlines */
  --bg: #FFFFFF;
  --bg-soft: #F7FAFC;      /* light section bg */
  --navy: #0E1B2A;         /* dark sections / footer */
  --navy-soft: #16283C;    /* cards on navy */

  --font: "Inter", "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 47, .05), 0 2px 8px rgba(19, 32, 47, .04);
  --shadow-md: 0 8px 28px rgba(19, 32, 47, .10);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 650; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .92rem; line-height: 1;
  padding: 14px 26px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; }

/* ==========================================================================
   Header + mega menu
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.main-nav { flex: 1; display: flex; align-items: stretch; height: 100%; min-width: 0; }
.nav-list { display: flex; align-items: stretch; gap: 2px; height: 100%; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; }
.nav-item.has-panel { position: static; /* panel positions against .site-header */ }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 8px;
  color: var(--ink); font-weight: 550; font-size: .92rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--bg-soft); color: var(--primary); }
.nav-link .caret { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-item.open > .nav-link .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn { padding: 11px 20px; font-size: .86rem; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 8px 11px; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Mega panel */
.panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(19, 32, 47, .10);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, visibility .15s;
  z-index: 250;
}
/* Desktop: open on hover — keep panel reachable without click */
@media (hover: hover) and (min-width: 1024px) {
  .site-header { overflow: visible; }
  .nav-item:hover > .panel,
  .nav-item:focus-within > .panel,
  .nav-item.open > .panel {
    visibility: visible; pointer-events: auto; opacity: 1;
  }
  /* Invisible bridge covering any sub-pixel gap under the header row */
  .nav-item.has-panel:hover > .panel::before,
  .nav-item.has-panel:focus-within > .panel::before,
  .nav-item.has-panel.open > .panel::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -12px;
    height: 12px;
  }
}
.nav-item.open > .panel { visibility: visible; pointer-events: auto; opacity: 1; }

.panel-inner { max-width: var(--container); margin: 0 auto; padding: 36px 24px 40px; display: grid; gap: 36px; }
.panel--products .panel-inner { grid-template-columns: repeat(4, 1fr) 1.1fr; }
.panel--simple .panel-inner { grid-template-columns: repeat(3, 1fr); max-width: 880px; }

.panel-col h4 {
  font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.panel-col h4 .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--primary); }
.panel-link { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; transition: background .15s ease; }
.panel-link:hover { background: var(--bg-soft); }
.panel-link .t { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.panel-link .d { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.panel-link:hover .t { color: var(--primary); }
.badge-new {
  font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--primary); border-radius: 4px; padding: 3px 7px;
}

/* Featured card inside mega panel */
.panel-feature {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  border-left: 4px solid var(--primary);
}
.panel-feature .pf-tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FC6E8; margin-bottom: 10px; }
.panel-feature h5 { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.panel-feature p { color: rgba(255, 255, 255, .7); font-size: .84rem; line-height: 1.55; margin-bottom: 14px; }
.panel-feature span.pf-cta { color: #fff; font-weight: 600; font-size: .86rem; }
.panel-feature:hover span.pf-cta { color: #8FC6E8; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 8px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: .22s ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero (home) — minimal, no screenshots, no heavy animation
   ========================================================================== */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(52% 60% at 78% 8%, rgba(39, 134, 194, .08) 0%, rgba(39, 134, 194, 0) 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 4vw, 56px); align-items: center; }
.hero h1 .hl { color: var(--primary); }
.hero .lead { font-size: 1.12rem; color: var(--body); max-width: 540px; margin: 20px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hero-ctas [data-video-open] { order: 1; }
.hero .hero-ctas a.btn { order: 2; }
.hero-note { margin-top: 22px; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--primary); flex: none; }

.hero-art { display: flex; width: 100%; justify-content: center; align-items: center; min-width: 0; }
.hero-visual {
  display: block;
  width: min(680px, 100%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* ---------- Stats bar ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font-size: 2.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat .n em { font-style: normal; color: var(--primary); }
.stat .l { font-size: .84rem; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 92px 0; }
.section.tight { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .75); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #8FC6E8; }
.section.dark .eyebrow::before { background: #8FC6E8; }

/* Pillars (What we do) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pillar:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.pillar .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.pillar h3 { font-size: 1.02rem; }
.pillar p { font-size: .87rem; color: var(--muted); flex: 1; }
.pillar .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar .tags span { font-size: .72rem; font-weight: 550; color: var(--body); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; }

/* Vision */
.vision-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 48px 56px;
  align-items: center;
}
.vision-copy { max-width: 640px; }
.vision blockquote { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.3; }
.vision blockquote .hl { color: #8FC6E8; }
.vision .v-lead { margin-top: 16px; font-size: 1.04rem; color: rgba(255, 255, 255, .68); }
#vision.section { padding: 64px 0; }
.vision-stack { display: flex; flex-direction: column; gap: 12px; }
.vp {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(143, 198, 232, .18);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--navy-soft);
}
.vp-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #8FC6E8;
  background: rgba(39, 134, 194, .16);
  box-shadow: 0 0 18px rgba(39, 134, 194, .22);
}
.vp-ico svg { width: 22px; height: 22px; display: block; }
.vp h3 { font-size: 1.02rem; margin: 2px 0 6px; color: #fff; }
.vp p { font-size: .84rem; color: rgba(255, 255, 255, .62); line-height: 1.55; margin: 0; }
.vp .vp-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary); margin-bottom: 10px; line-height: 1; }
.vision-art { display: none; }
.vision-points { display: none; }

/* Customers */
.cust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cust { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .15s ease, box-shadow .15s ease; }
.cust:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.cust .n { font-size: 2.3rem; font-weight: 700; color: var(--primary); letter-spacing: -.02em; }
.cust .n small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.cust h3 { font-size: 1rem; margin: 4px 0 6px; }
.cust p { font-size: .85rem; color: var(--muted); }

/* Featured product banner — stage photo + navy overlay (Designer) */
#featured {
  position: relative;
  color: #fff;
  background-color: #0E1B2A;
  background-image:
    linear-gradient(
      180deg,
      rgba(14, 27, 42, 0.80) 0%,
      rgba(14, 27, 42, 0.76) 45%,
      rgba(14, 27, 42, 0.88) 100%
    ),
    url("../img/featured-stage.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  padding: 72px 0 80px;
  overflow: hidden;
}
#featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 27, 42, 0.42) 0%,
    rgba(14, 27, 42, 0.18) 42%,
    rgba(14, 27, 42, 0.08) 70%,
    rgba(14, 27, 42, 0.22) 100%
  );
}
#featured .container { position: relative; z-index: 1; }
#featured .feat-prod {
  border: 0;
  background: transparent;
  border-radius: 0;
}
#featured .feat-prod .fp-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px 48px;
  padding: 8px 0;
  align-items: center;
}
#featured .fp-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: #7ec8ff;
  background: rgba(56, 140, 220, 0.18);
  border: 1px solid rgba(126, 200, 255, 0.28);
  margin: 0 0 10px;
}
#featured .fp-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(180, 214, 240, 0.88);
  max-width: none;
}
#featured .feat-prod h3 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 18px rgba(8, 16, 28, 0.45);
}
#featured .feat-prod p {
  color: rgba(230, 238, 246, 0.92);
  max-width: 54ch;
  margin-bottom: 28px;
  font-size: 1rem;
}
#featured .btn-primary {
  background: #2786C2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 70, 150, 0.35);
}
#featured .btn-primary:hover { background: #1B6899; }
#featured .fp-points {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: rgba(10, 20, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
#featured .fp-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #f3f7fb;
  font-size: .95rem;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#featured .fp-points li:last-child { border-bottom: 0; }
#featured .fp-points svg { flex: none; margin-top: 3px; color: #2786C2; }

/* Solutions / Why — minimal cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.m-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px 24px; transition: border-color .15s ease, box-shadow .15s ease; }
.m-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.m-card .num { font-size: .76rem; font-weight: 700; color: var(--primary); letter-spacing: .08em; margin-bottom: 10px; }
.m-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.m-card p { font-size: .87rem; color: var(--muted); }
.m-card .lnk { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .86rem; color: var(--primary); }
.m-card .lnk:hover { color: var(--primary-dark); }

/* CTA / contact band */
.cta-band { border-radius: var(--radius); background: var(--navy); padding: 60px 56px; color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .68); margin-top: 12px; max-width: 440px; }
.cta-contact { display: grid; gap: 12px; }
.cta-contact a, .cta-contact span.c-row { display: flex; align-items: center; gap: 13px; color: #fff; font-weight: 550; font-size: 1rem; }
.cta-contact a:hover { color: #8FC6E8; }
.cta-contact .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #8FC6E8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .62); border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding: 64px 0 48px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .85rem; max-width: 270px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #fff; transition: background .15s ease; }
.socials a:hover { background: var(--primary); }
.footer-col h4 { color: #fff; font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom a { color: rgba(255, 255, 255, .62); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Product page (Gen AI) — concise, CTA-driven
   ========================================================================== */
.page-hero {
  position: relative;
  color: #fff;
  background-color: #0E1B2A;
  background-image:
    linear-gradient(90deg, rgba(14, 27, 42, .90) 0%, rgba(14, 27, 42, .72) 46%, rgba(14, 27, 42, .62) 100%),
    linear-gradient(180deg, rgba(14, 27, 42, .80) 0%, rgba(14, 27, 42, .76) 45%, rgba(14, 27, 42, .88) 100%),
    url("../img/featured-stage.jpg");
  background-size: cover;
  background-position: 70% 55%;
  background-repeat: no-repeat;
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-hero--stage-open {
  background-image:
    linear-gradient(90deg, rgba(14, 27, 42, .78) 0%, rgba(14, 27, 42, .38) 40%, rgba(14, 27, 42, .10) 100%),
    linear-gradient(180deg, rgba(14, 27, 42, .28) 0%, rgba(14, 27, 42, .18) 50%, rgba(14, 27, 42, .40) 100%),
    url("../img/featured-stage.jpg");
  background-position: 70% 55%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: .8rem; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.page-hero .crumbs a { color: rgba(255, 255, 255, .85); font-weight: 550; }
.page-hero .crumbs a:hover { color: #8FC6E8; }
.page-hero h1 { color: #fff; max-width: 700px; }
.page-hero h1 .hl { color: #8FC6E8; }
.page-hero .lead { font-size: 1.08rem; color: rgba(255, 255, 255, .72); max-width: 580px; margin: 18px 0 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.88); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 7px 13px; }
.hero-badges svg { color: #8FC6E8; }

/* Feature rows with real screenshots */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat-row + .feat-row { margin-top: 72px; }
.feat-row.rev > .feat-media { order: -1; }
.feat-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: 10px; }
.feat-row .f-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.feat-row p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.check-list { display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); }
.check-list svg { flex: none; margin-top: 4px; color: var(--primary); }

.shot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-md);
}
.shot img { border-radius: 8px; width: 100%; height: auto; }
.shot .cap { font-size: .74rem; color: var(--muted); text-align: center; padding: 10px 6px 4px; }

/* Compact strip (use cases / LLM list) */
.strip-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.strip-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 18px; }
.strip-item h4 { font-size: .9rem; color: var(--ink); margin-bottom: 4px; }
.strip-item p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-row span {
  font-weight: 600; font-size: .84rem; color: var(--body);
  border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 16px;
}

/* Security highlights — 3 compact items */
.hl3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl3 .vp svg { color: #8FC6E8; margin-bottom: 12px; }

/* AI in the Box — compact package cards */
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.pack { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 30px 28px; }
.pack.hot { border: 1px solid var(--primary); box-shadow: var(--shadow-sm); }
.pack .pk-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--primary); border-radius: 4px; padding: 4px 10px; margin-bottom: 12px; }
.pack h3 { font-size: 1.25rem; }
.pack .pk-sub { font-size: .83rem; color: var(--muted); margin-top: 3px; }
.pack .pk-price { margin: 16px 0 4px; font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.pack .pk-price small { font-size: .85rem; font-weight: 550; color: var(--muted); }
.pack .pk-note { font-size: .74rem; color: var(--muted); margin-bottom: 18px; }
.pack ul { display: grid; gap: 8px; margin-bottom: 24px; }
.pack li { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--body); }
.pack li svg { flex: none; margin-top: 4px; color: var(--primary); }

/* ---------- Subtle reveal only (no heavy animation) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pillars, .card-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .panel--products .panel-inner { grid-template-columns: repeat(2, 1fr); }
  .panel-feature { display: none; }
  .strip-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; padding: 10px 20px 44px;
    transform: translateX(100%); transition: transform .25s ease;
    border-top: 1px solid var(--line);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: .98rem; }
  .panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .nav-item.open > .panel { display: block; }
  .panel-inner { padding: 6px 8px 18px; display: block; }
  .panel-col { margin-bottom: 16px; }
  .panel-feature { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .vision-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .hero-visual { width: min(440px, 100%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .cust-grid, .card-grid, .hl3 { grid-template-columns: repeat(2, 1fr); }
  #featured { padding: 56px 0 64px; background-position: 70% 55%; }
  #featured .feat-prod .fp-grid { grid-template-columns: 1fr; padding: 0; gap: 28px; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 44px 30px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 1fr; gap: 28px; }
  .feat-row.rev > .feat-media { order: 0; }
  .feat-row + .feat-row { margin-top: 56px; }
  .pack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero-visual { width: min(380px, 100%); }
  .section { padding: 64px 0; }
  .pillars, .card-grid, .card-grid.g4, .cust-grid, .hl3, .strip-list { grid-template-columns: 1fr; }
  .vision-points { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .header-actions .btn { padding: 10px 15px; font-size: .8rem; }
}

/* ==========================================================================
   Video lightbox ("Get to Know Us")
   ========================================================================== */
.video-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(14, 27, 42, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: vm-fade .25s ease;
}
.video-modal-dialog {
  position: relative; width: min(960px, 100%); border-radius: var(--radius-lg, 24px);
  background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  animation: vm-pop .28s cubic-bezier(.2, .8, .3, 1);
}
.video-modal-close {
  position: absolute; top: -46px; right: 0; z-index: 2;
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; background: #000; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vm-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }


/* Dead catalog items: show names, no fake jump-to-top links */
.panel-link--soon { cursor: default; }
.panel-link--soon:hover { background: transparent; }
.panel-link--soon:hover .t { color: var(--ink); }
.site-footer .soon { color: rgba(255,255,255,.55); cursor: default; }
#contact.section.dark { }
.section.dark .cta-band { background: transparent; padding: 8px 0 0; }

/* ===== Testimonial (ONLB case study) ===== */
.tstm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}
.tstm-org {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.tstm-copy blockquote {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--primary);
}
.tstm-copy blockquote p {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.65;
}
.tstm-copy footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .88rem;
  color: var(--muted);
}
.tstm-copy footer strong {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
}
.tstm-note {
  margin-top: 22px;
  font-size: .92rem;
  color: var(--body);
  line-height: 1.6;
}
.tstm-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
}
.tstm-source:hover { color: var(--primary-dark); }
.tstm-media { margin: 0; }
.tstm-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.tstm-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tstm-media figcaption {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .tstm-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Activities (news & events) ===== */
.act-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.act-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.act-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.act-card:hover {
  border-color: var(--primary-line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  color: inherit;
}
.act-card .act-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.act-card .act-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.act-card .act-body { padding: 16px 16px 18px; }
.act-date {
  font-size: .76rem;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: .02em;
}
.act-card h3 {
  font-size: .95rem;
  margin-top: 6px;
  line-height: 1.4;
}
.act-card p {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.55;
}
.act-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
}
.act-more:hover { color: var(--primary-dark); }

.act-crumbs {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.act-crumbs a { color: var(--ink); font-weight: 550; }
.act-crumbs a:hover { color: var(--primary); }

.act-article { max-width: 720px; margin: 0 auto; }
.act-article h1 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 10px 0 8px; }
.act-article .act-cover { margin: 28px 0 18px; }
.act-article .act-cover img,
.act-article .act-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.act-article .act-gallery { display: grid; gap: 14px; margin-bottom: 28px; }
.act-article .act-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 1.05em;
}
.act-article .act-source {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.act-article .act-source a { font-weight: 600; }

@media (max-width: 1100px) {
  .act-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .act-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .act-grid, .act-list { grid-template-columns: 1fr; }
}


.page-hero--plain {
  background-image: none;
  background-color: #0E1B2A;
  background-position: center;
}
.company-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width:1023px){ .company-grid { grid-template-columns:1fr; } }
.partner-card h3 { margin-bottom:8px; }

.life-at { background: var(--bg-soft); }
.life-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
}
.life-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0E1B2A;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}
.life-grid picture, .life-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.life-grid img { object-fit: cover; max-width: none; }
.life-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 56px 18px 16px;
  background: linear-gradient(transparent, rgba(14,27,42,.78));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-grid figure { min-height: 280px; }
  .life-grid figure.life-portrait { min-height: 360px; }
}

.doc-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.doc-card .doc-kicker { font-size:.75rem; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--primary); margin-bottom:8px; }
.doc-card h3 { margin-bottom:8px; }
.doc-card p { color:var(--muted); font-size:.92rem; }
.doc-dl { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.doc-note { margin-top:28px; color:var(--muted); font-size:.9rem; }
@media (max-width:720px){ .doc-grid { grid-template-columns:1fr; } }

.sol-parts { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.sol-parts .prod { display:inline-block; margin-top:10px; font-size:.82rem; font-weight:650; color:var(--primary); }
.sol-parts .prod a { font-weight:650; }
@media (max-width:720px){ .sol-parts { grid-template-columns:1fr; } }


/* Problem + relations side-by-side (gov) */
.sol-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 360px);
  gap: 32px 40px;
  align-items: center;
}
.sol-split-copy .eyebrow { display: inline-flex; }
.sol-split-copy h2 { margin: 10px 0 14px; }
.sol-split-copy p { margin: 0; }
.sol-split-note {
  margin-top: 16px !important;
  font-size: .8rem;
  color: var(--muted);
}
.sol-split .sol-arch {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.sol-split .sol-arch img {
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .sol-split { grid-template-columns: 1fr; gap: 24px; }
  .sol-split .sol-arch { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* Solution architecture / product figures */
.sol-arch {
  max-width: 920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.sol-arch--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px; /* match education, not wider */
  margin: 0 auto;
}
.sol-arch--pair .sol-arch { max-width: none; margin: 0; }
@media (max-width: 820px) {
  .sol-arch--pair { grid-template-columns: 1fr; }
}
.sol-arch + .sol-arch { margin-top: 40px; }
.sol-arch--shot {
  max-width: 760px; /* screenshots smaller than diagrams */
}
.sol-arch--portrait {
  max-width: 520px;
}
.sol-arch img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid rgba(39, 134, 194, .28);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(19, 32, 47, .06);
  padding: 0;
}
.sol-arch--zoom img {
  cursor: zoom-in;
}
.sol-arch figcaption {
  margin: 10px auto 0;
  max-width: 64ch;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
/* Tighter vertical rhythm around figure sections */
.section.sol-fig {
  padding-top: 56px;
  padding-bottom: 56px;
}
.section.sol-fig .section-head { margin-bottom: 28px; }

/* Minimal image lightbox (gov zoom) */
.img-lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19, 32, 47, .72);
  cursor: zoom-out;
}
.img-lb.open { display: flex; }
.img-lb img {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  background: #fff;
}

/* softnix-mobile-nav-overflow-fix */
@media (max-width: 1023px) {
  .site-header { overflow-x: clip; }
  .header-inner { gap: 10px; min-width: 0; }
  .header-actions { gap: 8px; flex-shrink: 0; position: relative; z-index: 2; }
  .header-actions .btn-primary { max-width: 38vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand { min-width: 0; flex-shrink: 1; max-width: min(118px, 32vw); overflow: hidden; }
  .brand img { max-width: 100%; height: auto; max-height: 30px; display: block; }
  .lang-switch { position: relative; z-index: 3; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .brand { max-width: min(96px, 28vw); }
  .brand img { max-height: 26px; }
  .header-actions .btn-primary { padding: 9px 12px; font-size: .75rem; max-width: 42vw; }
  .lang-switch button { padding: 6px 8px; font-size: .75rem; }
}

