/* =========================================================
   Crystal Qualet Co., Ltd. — Corporate Website
   Design system + styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — crystal red + black */
  --brand-50:  #fef2f2;
  --brand-100: #fee2e2;
  --brand-200: #fecaca;
  --brand-300: #fca5a5;
  --brand-400: #f87171;
  --brand-500: #ef4444;
  --brand-600: #dc2626;
  --brand-700: #b91c1c;
  --brand-800: #991b1b;
  --brand-900: #7f1d1d;
  --brand-950: #450a0a;

  --gold-300: #ecd9a6;
  --gold-400: #ddc07a;
  --gold-500: #c8a14e;
  --gold-600: #a9843a;

  --ink:      #111827;
  --ink-soft: #374151;
  --muted:    #6b7280;
  --line:     #eef0f2;
  --line-2:   #e5e7eb;

  --pearl:    #f9fafb;
  --cream:    #ffffff;
  --surface:  #ffffff;

  /* Effects — minimal */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, .06);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, .08);
  --shadow-glow: none;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: "Sora", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Sora", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%);
  z-index: 200; padding: 11px 20px; border-radius: 999px;
  background: var(--brand-700); color: #fff; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-lg); transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: 4px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 128px); position: relative; }
.section--tint { background: var(--pearl); }
.section--ink {
  background: var(--brand-800);
  color: #f0fdfa;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { display: none; }
.section--ink .eyebrow { color: var(--brand-200); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-top: var(--space-3); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; }
.lead { font-size: 1rem; color: var(--muted); margin-top: var(--space-4); line-height: 1.75; max-width: 52ch; }
.section--ink .lead { color: rgba(240, 253, 250, .78); }

.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: background .2s, border-color .2s, color .2s;
  box-shadow: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-700); }
.btn:active { background: var(--brand-800); }
.btn:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.btn .ico { width: 16px; height: 16px; }
.btn:hover .ico { transform: none; }
.btn--gold { --btn-bg: var(--brand-700); --btn-fg: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }
.section--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); background: transparent; }
.section--ink .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.btn--lg { padding: 14px 28px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: var(--space-4);
}
.brand { justify-self: start; }
.nav-links { justify-self: center; }
.nav-actions { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand .mark { width: auto; height: 48px; flex: none; filter: none; border-radius: 0; object-fit: contain; background: transparent; }
.brand .mark--full { aspect-ratio: 1; }
.site-footer .brand .mark { outline: none; }
.brand .brand-name { font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .brand-sub { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 8px 10px; border-radius: 6px; font-size: .86rem; font-weight: 500; color: var(--muted);
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1.5px; border-radius: 1px;
  background: var(--brand-600); transform: scaleX(0); transition: transform .2s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: transparent; }
.nav-links a:focus-visible { color: var(--ink); background: transparent; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.desktop-cta { padding: 10px 18px; font-size: .86rem; }

.lang-toggle {
  display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--pearl);
}
.lang-toggle button {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600;
  color: var(--muted); transition: color .15s, background .15s;
}
.lang-toggle button.active { background: var(--brand-600); color: #fff; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, 0) rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(64px, 8vw, 104px);
  background: var(--surface);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--pearl); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--muted);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: var(--space-5); max-width: 14ch; line-height: 1.12; text-wrap: balance; font-weight: 700; }
.hero h1 .accent { color: var(--brand-600); }
.hero p.lead { max-width: 48ch; margin-top: var(--space-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3);
  margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line);
}
.hero-stat {
  padding: var(--space-3) 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-stat:hover { border-color: transparent; box-shadow: none; transform: none; }
.hero-meta .k { font-family: var(--font-body); font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 700; color: var(--ink); line-height: 1; }
.hero-meta .v { font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  margin: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-caption {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-caption__meta {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.hero-caption__title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.hero-caption__sub { font-size: .82rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--pearl); color: var(--ink-soft); border-block: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.trust-strip .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trust-strip ul { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-end; }
.trust-strip li {
  display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.trust-strip li svg { width: 16px; height: 16px; color: var(--brand-600); flex: none; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: none; transition: border-color .2s;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 132px;
}
.stat-card:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.stat-card .num { font-family: var(--font-body); font-size: clamp(1.85rem, 3vw, 2.4rem); font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card .num small { font-size: 1rem; color: var(--brand-600); }
.stat-card .cap { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: none; border: 1px solid var(--line); aspect-ratio: 4/3.4;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.about-figure__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-figure::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, .55) 100%);
}
.about-figure__content { position: relative; z-index: 2; padding: 28px; }
.about-figure .quote { font-family: var(--font-body); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600; }
.about-figure .by { margin-top: 16px; font-size: .85rem; opacity: .9; letter-spacing: .04em; }
.about-list { display: grid; gap: 18px; margin-top: 28px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .tick { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.about-list .tick svg { width: 16px; height: 16px; }
.about-list .h { font-weight: 600; }
.about-list .d { font-size: .9rem; color: var(--muted); }

/* ---------- Feature cards (services / why) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: none; transition: border-color .2s;
  position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.card::after { display: none; }
.card:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.card .ic {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 14px;
  background: var(--pearl); color: var(--brand-700); border: 1px solid var(--line);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; margin-top: auto; padding-top: var(--space-3); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: none; transition: border-color .2s;
  height: 100%; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.product-card .pic { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--pearl); }
.product-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: none; }
.product-card:hover .pic img { transform: none; }
.product-card .tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.2rem; }
.product-card p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.product-card .feat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product-card .feat span { font-size: .72rem; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--pearl); color: var(--ink-soft); font-weight: 500; border: 1px solid var(--line); }
.product-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: var(--space-4);
  font-size: .88rem; font-weight: 600; color: var(--brand-700);
  transition: gap .25s var(--ease), color .2s;
}
.product-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.product-link:hover { color: var(--brand-800); gap: 8px; }
.product-link:hover svg { transform: none; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 24px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s;
}
.step:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); transform: none; }
@media (min-width: 1025px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 38px; right: -10px; width: 20px; height: 1px;
    background: rgba(255,255,255,.2);
    z-index: 1;
  }
}
.step .n { font-family: var(--font-body); font-size: 1.75rem; font-weight: 700; color: var(--brand-200); line-height: 1; }
.step h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.step p { color: rgba(240, 253, 250, .72); font-size: .88rem; }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: none;
  transition: border-color .2s; text-align: left;
}
.channel:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.channel .meta { flex: 1; min-width: 0; }
.channel .channel-action {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center;
  background: var(--pearl); color: var(--muted); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.channel .channel-action svg { width: 16px; height: 16px; }
.channel:hover .channel-action { background: var(--brand-600); color: #fff; border-color: var(--brand-600); transform: none; }
.channel .logo { width: 48px; height: 48px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.2rem; }
.channel .logo svg { width: 26px; height: 26px; }
.channel .meta .n { font-weight: 600; font-size: 1rem; }
.channel .meta .d { font-size: .84rem; color: var(--muted); }
.ch-shopee .logo { background: #ee4d2d; }
.ch-lazada .logo { background: #0f146d; }
.ch-tiktok .logo { background: #111; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.info-card .ic { width: 40px; height: 40px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center; background: var(--pearl); color: var(--brand-700); border: 1px solid var(--line); }
.info-card .ic svg { width: 20px; height: 20px; }
.info-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info-card .v { font-weight: 500; margin-top: 3px; }
.info-card a.v:hover { color: var(--brand-700); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); box-shadow: none; }
.form-card__head { margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.form-card__head h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.form-card__head p { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field label .req { color: #c0492b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: #9ca3af; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { display: none; color: #c0492b; font-size: .8rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea,
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0492b; background: #fdf3f1; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.product-note { text-align: center; margin-top: 22px; }
.contact-head { margin-bottom: 8px; }
.form-success {
  display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; margin-top: 6px;
  background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800); font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; color: var(--brand-600); }
.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .ico { opacity: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  border-radius: var(--radius-lg); padding: clamp(48px, 6vw, 72px); text-align: center; position: relative;
  background: var(--brand-800);
  color: #f0fdfa; border: 1px solid rgba(255,255,255,.08);
}
.cta-inner::before, .cta-inner::after { display: none; }
.cta-inner h2 { color: #fff; position: relative; }
.cta-inner p { color: rgba(240, 253, 250, .78); max-width: 520px; margin: 14px auto 0; position: relative; }
.cta-inner .hero-cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9ca3af; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand .brand-sub { color: #6b7280; }
.footer-about { margin-top: 16px; font-size: .88rem; max-width: 34ch; line-height: 1.65; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col li { font-size: .88rem; padding-block: 4px; display: block; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--brand-400); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .78rem; color: #6b7280;
}
.footer-bottom .reg { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Reveal animation ---------- */
/* Only hide-before-reveal when JS is active; without JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal--instant,
.js .reveal--instant.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--pearl); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Language visibility ---------- */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-th] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .product-grid, .channels { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 940px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-links, .nav-actions .desktop-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .brand .brand-sub { display: none; }

  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 75;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: grid; gap: 2px; padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease-out), opacity .25s, visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a {
    padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink-soft);
    border-left: 2px solid transparent;
  }
  .mobile-menu a:hover { background: var(--pearl); color: var(--ink); }
  .mobile-menu a.active { background: var(--pearl); color: var(--ink); font-weight: 600; border-left-color: var(--brand-600); }
  .mobile-menu .btn { margin-top: 8px; width: 100%; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: min(420px, 100%); margin-inline: auto; order: -1; }
  .hero h1 { max-width: none; }
  .about-figure { order: -1; }
}
@media (max-width: 560px) {
  .stats-grid, .cards, .product-grid, .channels, .steps, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-strip .container { justify-content: center; text-align: center; }
  .trust-strip ul { justify-content: center; }
  .hero-meta { grid-template-columns: 1fr; gap: 10px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { width: 100%; }
  .cta-inner .hero-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-inner .btn { width: auto; }
}
/* Extra-small phones (≤380px): tighten header + spacing so nothing overflows */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .nav { gap: 10px; }
  .brand { gap: 9px; }
  .brand .mark { height: 40px; }
  .brand .brand-name { font-size: .98rem; }
  .brand .brand-sub { letter-spacing: .18em; font-size: .58rem; }
  .nav-actions { gap: 7px; }
  .lang-toggle button { padding: 6px 9px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
  .hero-meta { gap: 14px 20px; }
  .hero-meta .k { font-size: 1.25rem; }
}
.mobile-menu { display: none; }
@media (max-width: 940px) { .mobile-menu { display: grid; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .to-top, .skip-link, .hero-visual,
  .cta-band, .nav-toggle, .lang-toggle, .form-card { display: none !important; }
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  .section { padding-block: 18px; }
  a { text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .container { max-width: 100%; }
}
