/* ==========================================================================
   The Data Creative — stylesheet
   สีหลักอ้างอิงจากโลโก้ (น้ำเงินคอบอลต์) + สีเหลืองอำพันเป็นจุดเน้น
   ========================================================================== */

:root {
  --brand: #0a38b8;
  --brand-700: #082d93;
  --brand-500: #2457e6;
  --brand-400: #5b86ff;
  --brand-100: #e1e9ff;
  --brand-50: #f3f6ff;
  --navy-950: #060f2e;
  --navy-900: #0a1740;
  --ink: #0f1a3a;
  --text: #2a3558;
  --muted: #566180;
  --line: #dbe3f6;
  --accent: #ffb020;
  --accent-soft: #ffd979;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 64, .05), 0 6px 18px -8px rgba(10, 23, 64, .12);

  --font-head: "Prompt", "Noto Sans Thai", "Leelawadee UI", "Tahoma", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", "Tahoma", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem;
  font: 600 .98rem/1.3 var(--font-head);
  border: 1.5px solid transparent; border-radius: 14px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 56, 184, .8); }
.btn-primary:hover { background: var(--brand-500); transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(10, 56, 184, .85); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; border-radius: 12px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(10, 23, 64, .5);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand); text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: auto; aspect-ratio: 518 / 367; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.brand-top { font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; }
.brand-bot { font-weight: 500; font-size: .6rem; letter-spacing: .44em; margin-top: .3rem; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 10px;
  font-weight: 500; font-size: .98rem; color: var(--text); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-list a:not(.btn):hover,
.nav-list a[aria-current="true"] { background: var(--brand-50); color: var(--brand); }
.nav-cta-m { display: none; }

.header-actions { display: flex; align-items: center; gap: .7rem; margin-left: .6rem; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: .28rem .65rem; border-radius: 9px;
  font: 600 .78rem/1.4 var(--font-head); letter-spacing: .04em; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-btn:hover { color: var(--brand); }
.lang-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Shared bits ---------- */
.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .36rem .9rem .36rem .7rem;
  font: 500 .88rem/1.5 var(--font-head); color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px;
}
.eyebrow.on-dark { color: #d3dfff; background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }

.px { position: relative; width: 9px; height: 9px; border-radius: 2.5px; background: var(--brand); flex: none; }
.px::after { content: ""; position: absolute; left: 8px; top: -4px; width: 5px; height: 5px; border-radius: 1.5px; background: var(--accent); }
.on-dark .px { background: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-head h2, .data-copy h2, .about-copy h2, .contact-copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 1.15rem + 2.5vw, 2.9rem);
  font-weight: 600; line-height: 1.28;
}
.section-sub { margin-top: 1rem; max-width: 40rem; font-size: 1.08rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(55% 50% at 88% 8%, rgba(36, 87, 230, .13), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(255, 176, 32, .12), transparent 70%),
    #fff;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
  margin-top: 1.3rem;
  font-size: clamp(2rem, 1.1rem + 4.6vw, 4.3rem);
  font-weight: 700; line-height: 1.22;
}
html[lang="en"] .hero h1 { letter-spacing: -.015em; line-height: 1.12; }
.ph { display: inline-block; }
.nw { white-space: nowrap; }
.hl { position: relative; z-index: 0; color: var(--brand); }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .1em; height: .36em;
  background: var(--accent-soft); border-radius: 4px; transform-origin: left center;
  animation: hl-in .9s .9s cubic-bezier(.2, .8, .2, 1) both;
}
/* ภาษาอังกฤษ: วลีเน้นขึ้นหลายบรรทัดได้ จึงใช้ไฮไลต์แบบพื้นหลังที่ตามข้อความ */
html[lang="en"] .hl {
  display: inline;
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%, var(--accent-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[lang="en"] .hl::after { display: none; }
.lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.7rem; margin-top: 2.3rem; font-size: .93rem; color: var(--muted); }
.hero-meta li::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem;
  border-radius: 2px; background: var(--brand); vertical-align: .08em;
}

.hero-visual {
  --px: 0; --py: 0;
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #f7f9ff 0%, #e8efff 100%);
  border: 1px solid var(--brand-100);
  box-shadow: 0 40px 80px -50px rgba(10, 56, 184, .55);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 56, 184, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 56, 184, .075) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 12);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 45%, transparent 100%);
}
.hv-cells { position: absolute; inset: 0; }
.hv-cell { position: absolute; left: calc(var(--c) * 100% / 12); top: calc(var(--r) * 100% / 12); width: calc(100% / 12); height: calc(100% / 12); padding: 3px; }
.hv-cell::before {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 6px; background: var(--brand);
  opacity: 0; animation: twinkle var(--t, 5s) ease-in-out var(--dl, 0s) infinite;
}
.hv-layer {
  position: absolute; inset: 0; pointer-events: none;
  transform: translate3d(calc(var(--px) * var(--k, 0px)), calc(var(--py) * var(--k, 0px)), 0);
  transition: transform .3s ease-out;
}
.hv-mark { display: grid; place-items: center; }
.mark { width: 76%; height: auto; overflow: visible; fill: var(--brand); filter: drop-shadow(0 22px 26px rgba(10, 56, 184, .22)); }
.mark .fl { animation: float 7s ease-in-out calc(var(--i) * -1.15s) infinite; }
.mark .sq {
  transform-box: fill-box; transform-origin: center;
  animation: sq-in .9s calc(.2s + var(--n) * .12s) cubic-bezier(.2, .9, .25, 1.15) both;
}
.mark .dpath { animation: d-in 1.1s .55s cubic-bezier(.2, .85, .25, 1) both; }

.chip {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 12px;
  font: 600 .86rem/1 var(--font-head); color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 26px -14px rgba(10, 56, 184, .5);
  animation: chip-in .7s 1.1s cubic-bezier(.2, .8, .2, 1) both, bob var(--dur, 6s) ease-in-out var(--dl, 0s) infinite;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: var(--c, var(--brand)); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--brand); color: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 2.2rem; padding: 1.05rem 2.2rem 1.05rem 0;
  font: 600 1rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.marquee-group i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--accent); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cards > div { display: flex; }
.card {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  padding: 1.9rem 1.7rem 1.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.card::after {
  content: ""; position: absolute; right: -22px; bottom: -22px; width: 76px; height: 76px;
  border-radius: 18px; background: var(--brand-50); z-index: 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); border-color: rgba(10, 56, 184, .4); box-shadow: 0 26px 50px -26px rgba(10, 56, 184, .5); }
.card:hover::after { transform: scale(2.4); }
.card-no { position: absolute; top: 1.35rem; right: 1.5rem; font: 600 .85rem var(--font-head); letter-spacing: .08em; color: #a9b6dc; }
.card-icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 14px;
  background: var(--brand-50); color: var(--brand);
  transition: background .3s, color .3s, transform .3s;
}
.card:hover .card-icon { background: var(--brand); color: #fff; transform: rotate(-5deg); }
.card h3 { margin-top: 1.3rem; font-size: 1.3rem; }
.card p { margin-top: .7rem; font-size: 1rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1.3rem; }
.tags li {
  padding: .22rem .65rem; border-radius: 8px;
  font-size: .78rem; font-weight: 500; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
}

/* ---------- Ad packages ---------- */
.packages { background: var(--brand-50); }
.draft-note {
  display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.4rem; padding: .8rem 1rem;
  font-size: .92rem; line-height: 1.6; color: #5a3e00;
  background: #fff6e0; border: 1px solid #f1d283; border-radius: 12px;
}
.draft-note[hidden] { display: none; }
.draft-note::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: .15rem;
  font: 700 .8rem/1 var(--font-head); color: #5a3e00; background: var(--accent); border-radius: 50%;
}

.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.platforms > div { display: flex; }
.platform { width: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.platform b { display: flex; align-items: center; gap: .55rem; font: 600 1.02rem/1.3 var(--font-head); color: var(--ink); }
.platform b::before { content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: var(--pc, var(--brand)); }
.platform p { margin-top: .4rem; font-size: .9rem; line-height: 1.65; color: var(--muted); }

.finder {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  margin: 1.2rem 0 2.4rem; padding: 1.1rem 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.finder-label { font: 600 1rem/1.5 var(--font-head); color: var(--ink); }
.finder-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.finder-opt {
  padding: .5rem 1rem; font: 500 .95rem/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.finder-opt:hover { border-color: var(--brand); color: var(--brand); }
.finder-opt[aria-pressed="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.finder-hint { flex-basis: 100%; font-size: .85rem; color: var(--muted); }

.pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.pkgs > div { display: flex; }
.pkg {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: 1.8rem 1.5rem 1.5rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.pkg:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(10, 56, 184, .45); }
.pkg.is-pop { border-color: var(--brand); box-shadow: 0 26px 50px -28px rgba(10, 56, 184, .55); }
.pkg.is-rec { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 176, 32, .3); }
.pkg-badge, .pkg-rec {
  position: absolute; top: -.8rem; padding: .22rem .75rem; border-radius: 999px;
  font: 600 .75rem/1.5 var(--font-head);
}
.pkg-badge { left: 1.3rem; color: #fff; background: var(--brand); }
.pkg-rec { display: none; right: 1.1rem; color: #3a2600; background: var(--accent); }
.pkg.is-rec .pkg-rec { display: inline-block; }
.pkg-name { font: 700 1.4rem/1.2 var(--font-head); color: var(--ink); }
.pkg-tag { margin-top: .2rem; font-size: .88rem; font-weight: 500; color: var(--brand); }
.pkg-for { margin-top: .7rem; font-size: .92rem; line-height: 1.65; color: var(--muted); }
.pkg-price { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.pkg-fee { display: block; font-size: .8rem; color: var(--muted); }
.pkg-amount { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: .1rem .45rem; min-height: 2.82rem; margin-top: .1rem; }
.pkg-amount b { font: 700 2.25rem/1.25 var(--font-head); color: var(--ink); }
.pkg-amount .pkg-amount-text { font-size: 1.7rem; }
.pkg-amount span { font-size: .9rem; color: var(--muted); }
.pkg-budget { margin-top: .75rem; padding: .6rem .8rem; font-size: .82rem; line-height: 1.5; color: var(--brand-700); background: var(--brand-50); border-radius: 10px; }
.pkg-budget b { display: block; font-weight: 600; font-size: .9rem; }
.pkg-feats { display: grid; flex: 1; gap: .65rem; margin-top: 1.25rem; font-size: .94rem; line-height: 1.6; }
.pkg-feats li { display: grid; grid-template-columns: 1.15rem 1fr; gap: .6rem; align-items: start; }
.pkg-feats .icon { width: 1.1rem; height: 1.1rem; margin-top: .3rem; color: var(--brand); stroke-width: 2.4; }
.pkg-cta { width: 100%; margin-top: 1.6rem; }
.pkg-note { max-width: 46rem; margin-top: 1.8rem; font-size: .9rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 1100px) {
  .pkgs, .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pkgs, .platforms { grid-template-columns: minmax(0, 1fr); }
  .finder-opt { flex: 1 1 calc(50% - .5rem); }
}
@media (max-width: 480px) {
  .finder-opt { flex-basis: 100%; }
}

/* ---------- Process ---------- */
.process { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.step { position: relative; padding: 1.6rem 1.5rem 1.7rem; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.05rem; left: 100%; width: 1.4rem; border-top: 2px dashed #a9b8e6;
}
.step-no {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  font: 700 1rem var(--font-head); color: #fff; background: var(--brand);
}
.step h3 { margin-top: 1.1rem; font-size: 1.2rem; }
.step p { margin-top: .5rem; font-size: .98rem; color: var(--muted); }

/* ---------- Data / Why (dark) ---------- */
.data {
  overflow: clip; color: #c3cff2;
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(36, 87, 230, .42), transparent 65%),
    radial-gradient(45% 55% at 0% 100%, rgba(255, 176, 32, .11), transparent 70%),
    var(--navy-950);
}
.data::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
}
.data .container { position: relative; }
.data h2 { color: #fff; }
.data .section-sub { color: #adbae6; }
.data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.principles { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.principles li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; }
.pr-ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px;
  color: #a9c1ff; background: rgba(91, 134, 255, .18); border: 1px solid rgba(169, 193, 255, .28);
}
.pr-ico .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2.2; }
.principles h3 { font-size: 1.12rem; color: #fff; }
.principles p { margin-top: .15rem; font-size: .98rem; color: #adbae6; }

.dash {
  padding: 1rem 1.1rem 1.1rem; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.dash-bar { display: flex; align-items: center; gap: .4rem; }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .24); }
.dash-bar span { margin-left: .6rem; font: 500 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #9fb0e3; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.kpi { padding: .8rem .85rem; border-radius: 14px; background: rgba(6, 15, 46, .5); border: 1px solid rgba(255, 255, 255, .12); }
.kpi span { display: block; font: 500 .68rem/1.2 var(--font-head); letter-spacing: .09em; text-transform: uppercase; color: #9fb0e3; }
.kpi b { display: block; width: var(--w, 60%); height: .85rem; margin-top: .65rem; border-radius: 5px; background: linear-gradient(90deg, #5b86ff, #93b2ff); }
.kpi svg { width: 100%; height: 1.5rem; margin-top: .55rem; }
.dash-chart { margin-top: .9rem; padding: .8rem; border-radius: 14px; background: rgba(6, 15, 46, .5); border: 1px solid rgba(255, 255, 255, .1); }
.dash-chart svg { width: 100%; height: auto; overflow: visible; }
.bar { fill: rgba(91, 134, 255, .85); }
.bar.hi { fill: var(--accent); }
.dash-note { margin-top: .8rem; font-size: .76rem; text-align: right; color: #7f90c4; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-copy p { margin-top: 1.1rem; }
.about-copy h2 + p { margin-top: 1.4rem; }
.mini-title { margin-top: 2rem; font-size: 1rem; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.chips li { padding: .5rem 1rem; border-radius: 12px; font-weight: 500; font-size: .98rem; color: var(--ink); background: #fff; border: 1px solid var(--line); }

.facts {
  position: relative; overflow: hidden; padding: 2rem 1.9rem;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
}
.facts-mark { width: 74px; height: auto; margin-bottom: 1.2rem; color: var(--brand); }
.facts h3 { font-size: 1.2rem; }
.facts dl { display: grid; gap: 1.1rem; margin: 1.3rem 0 0; }
.facts dt { font-size: .82rem; font-weight: 500; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 500; color: var(--ink); line-height: 1.6; }
.facts .alt { font-weight: 400; font-size: .94rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { overflow: clip; color: #e3ebff; background: var(--brand); }
.contact::before, .contact::after { content: ""; position: absolute; pointer-events: none; }
.contact::before { right: -70px; top: -70px; width: 280px; height: 280px; border-radius: 52px; background: rgba(255, 255, 255, .06); }
.contact::after { left: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 34px; background: rgba(255, 176, 32, .16); }
.contact .container { position: relative; z-index: 1; }
.contact :focus-visible { outline-color: #fff; }
.contact h2 { color: #fff; }
.contact .section-sub { color: #cdd9ff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.channels { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.channels li { display: grid; grid-template-columns: 2.7rem 1fr; gap: .95rem; align-items: start; }
.ch-ico { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .15); }
.ch-label { display: block; font-size: .82rem; color: #bccbff; }
.ch-val { display: block; font-weight: 500; color: #fff; }
a.ch-val { width: fit-content; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
a.ch-val:hover { border-bottom-color: #fff; }

.form {
  padding: clamp(1.4rem, 3vw, 2.3rem); color: var(--text);
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 50px 90px -50px rgba(3, 10, 40, .8);
}
.field { display: grid; gap: .4rem; margin-bottom: 1.05rem; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .95rem; color: var(--ink); background: #fff;
  border: 1.5px solid #ccd6f0; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 56, 184, .15); }
.field [aria-invalid="true"] { border-color: #d92d20; }
.field ::placeholder { color: #8a95b5; }
.err { min-height: 0; font-size: .85rem; line-height: 1.4; color: #b42318; }
.err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: .7rem; margin: .2rem 0 .3rem; font-size: .9rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .22rem; accent-color: var(--brand); }
.err-check { margin: .2rem 0 .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: .95rem; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.ok { color: #067647; }
.form-status.bad { color: #b42318; }
.form :focus-visible { outline-color: var(--brand-400); }

.chipset { min-width: 0; margin: 0 0 1.05rem; padding: 0; border: 0; }
.chipset legend { padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.chipset-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pchip { position: relative; cursor: pointer; }
.pchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pchip span {
  display: block; padding: .5rem .95rem; font-size: .93rem; font-weight: 500; color: var(--text);
  background: #fff; border: 1.5px solid #ccd6f0; border-radius: 12px;
  transition: background .2s, border-color .2s, color .2s;
}
.pchip:hover span { border-color: var(--brand); }
.pchip input:checked + span { color: #fff; background: var(--brand); border-color: var(--brand); }
.pchip input:focus-visible + span { outline: 3px solid var(--brand-400); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); color: #aebbe6; background: var(--navy-950); }
.site-footer :focus-visible { outline-color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr; gap: 2.5rem; padding-bottom: 2.6rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 1.1rem; max-width: 22rem; font-size: .98rem; }
.site-footer h3 { margin-bottom: 1rem; font: 600 .82rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-size: .98rem; line-height: 1.65; }
.footer-links { margin-top: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  padding-block: 1.4rem; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .12);
}
.to-top { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  transition:
    opacity .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    translate .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.js:not(.show-all) .reveal { opacity: 0; translate: 0 24px; }
.js:not(.show-all) .reveal.is-in { opacity: 1; translate: 0 0; }

.js:not(.show-all) .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1) calc(.25s + var(--b) * 70ms); }
.js:not(.show-all) .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .5s; }
.js:not(.show-all) .dot { opacity: 0; transition: opacity .4s calc(1.1s + var(--b) * 90ms); }
.js:not(.show-all) .dash.is-in .bar { transform: scaleY(1); }
.js:not(.show-all) .dash.is-in .ln { stroke-dashoffset: 0; }
.js:not(.show-all) .dash.is-in .dot { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes sq-in { from { opacity: 0; transform: translate(-70px, 38px) rotate(-18deg) scale(.3); } to { opacity: 1; transform: none; } }
@keyframes d-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes chip-in { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes twinkle { 0%, 100% { opacity: 0; } 45%, 55% { opacity: var(--o, .12); } }
@keyframes hl-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .header-actions { margin-left: auto; }
  .nav-cta-d { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none;
    padding: .8rem var(--gutter) 1.4rem; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(10, 23, 64, .5);
  }
  .nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-list a:not(.btn) { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav-cta-m { display: block; margin-top: .8rem; }
  .nav-cta-m .btn { width: 100%; }
}

@media (max-width: 899px) {
  .hero-grid, .data-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .chip-hide-sm { display: none; }
  .brand-mark { width: 40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .dash-kpis { gap: .5rem; }
  .kpi { padding: .65rem .6rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .js:not(.show-all) .reveal { opacity: 1; translate: none; }
  .js:not(.show-all) .bar { transform: none; }
  .js:not(.show-all) .ln { stroke-dashoffset: 0; }
  .js:not(.show-all) .dot { opacity: 1; }
  .hv-cell::before { opacity: var(--o, .1); }
  .marquee-track { transform: none; }
}
