/* ==========================================================================
   Xinkehui — Wafer Cassette & Carrier Solutions
   Design system: 8px grid, layered shadows, soft gradients, responsive
   ========================================================================== */

:root {
  /* Brand — derived from si-wafer.com */
  --brand: #0489bd;
  --brand-600: #067aa8;
  --brand-700: #005ab0;
  --brand-900: #062a44;
  --brand-ink: #0a2540;
  --accent: #f98903;
  --accent-soft: #fff4e6;

  /* Neutrals */
  --ink: #0e2233;
  --ink-2: #334a5e;
  --ink-3: #5b7083;
  --line: #e2e9f0;
  --line-2: #eef3f8;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-mist: #eef5fa;

  /* Status */
  --ok: #12a06a;
  --wa: #25d366;

  /* Radii + shadows (layered) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(10, 37, 64, .05), 0 2px 8px rgba(10, 37, 64, .04);
  --shadow-2: 0 1px 2px rgba(10, 37, 64, .04), 0 10px 24px -8px rgba(10, 37, 64, .14);
  --shadow-3: 0 2px 4px rgba(10, 37, 64, .05), 0 24px 48px -16px rgba(10, 37, 64, .22);
  --shadow-brand: 0 10px 28px -10px rgba(4, 137, 189, .55);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 8.5vw, 124px);
  --nav-h: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: rgba(4, 137, 189, .18); }

:focus-visible {
  outline: 3px solid rgba(4, 137, 189, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--mist {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(4, 137, 189, .09), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(0, 90, 176, .07), transparent 60%),
    var(--bg);
}
.section--tight { padding-block: clamp(48px, 5.5vw, 76px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: clamp(1rem, 1.25vw, 1.09rem); color: var(--ink-3); margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: rgba(4, 137, 189, .09);
  border: 1px solid rgba(4, 137, 189, .16);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.eyebrow--light { color: #cdeeff; background: rgba(120, 210, 245, .12); border-color: rgba(120, 210, 245, .26); }
.eyebrow--light::before { background: #6fd3f5; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .96rem; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  box-shadow: var(--shadow-brand);
  cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(4, 137, 189, .6); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none; background: #fff;
}
.btn--ghost:hover { --btn-fg: var(--brand-700); border-color: rgba(4, 137, 189, .45); box-shadow: var(--shadow-2); color: var(--brand-700); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-900); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.btn--light:hover { color: var(--brand-900); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #06301a; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .7); }
.btn--wa:hover { color: #06301a; }
.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: .95rem;
  color: var(--brand-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 66px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(10, 37, 64, .4);
}
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, #10a5d8, #005ab0);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(4, 137, 189, .65);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.14rem; font-weight: 800; letter-spacing: .01em; color: var(--ink);
  transition: color .3s;
}
.brand__tag { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-top: 4px; }
.site-header:not(.is-scrolled) .brand__name { color: #fff; }
.site-header:not(.is-scrolled) .brand__tag { color: rgba(255, 255, 255, .68); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 9px 13px; border-radius: 9px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--brand-700); background: rgba(4, 137, 189, .07); }
.site-header:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, .86); }
.site-header:not(.is-scrolled) .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; color: var(--ink-2);
}
.header-phone svg { width: 16px; height: 16px; color: var(--brand); }
.site-header:not(.is-scrolled) .header-phone { color: rgba(255, 255, 255, .82); }
.site-header:not(.is-scrolled) .header-phone svg { color: #7fd8f5; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer; padding: 0; place-items: center;
}
.is-scrolled .nav-toggle { background: #fff; border-color: var(--line); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative;
  transition: background .2s;
}
.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: inherit; border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding-top: calc(var(--nav-h) + clamp(56px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(52, 190, 224, .34), transparent 62%),
    radial-gradient(900px 560px at 8% 92%, rgba(0, 90, 176, .5), transparent 60%),
    linear-gradient(160deg, #041a2b 0%, #062a44 42%, #07405f 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  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: 72px 72px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(80, 200, 235, .3), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #7fe0ff 0%, #34b8e0 55%, #9be8c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: rgba(233, 244, 252, .82); max-width: 54ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero__meta li { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: rgba(220, 238, 250, .78); margin: 0; }
.hero__meta svg { width: 15px; height: 15px; color: #6fd3f5; flex: none; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 8px rgba(255, 255, 255, .035);
  background: #062a44;
}
.hero__frame img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 22, 36, .5));
}
.hero-card {
  position: absolute; left: -22px; bottom: -22px; z-index: 2;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-3);
  display: flex; gap: 16px; align-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-card__num { font-size: 1.7rem; font-weight: 800; color: var(--brand-700); line-height: 1; letter-spacing: -.03em; }
.hero-card__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 650; margin-top: 4px; }
.hero-card__div { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 30px; padding-block: 22px;
}
.trust__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.trust__items { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.trust__items li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; color: var(--ink-2); margin: 0; }
.trust__items svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: rgba(4, 137, 189, .3); }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(4, 137, 189, .12), rgba(0, 90, 176, .08));
  border: 1px solid rgba(4, 137, 189, .16);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; color: var(--brand-700); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .95rem; }

/* Feature list */
.tick-list { list-style: none; padding: 0; margin: 0 0 1.1em; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .95rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(4, 137, 189, .12);
  border: 1px solid rgba(4, 137, 189, .22);
}
.tick-list li::after {
  content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 3px;
  border-left: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700);
  transform: rotate(-45deg);
}
.tick-list--light li { color: rgba(226, 240, 250, .85); }
.tick-list--light li::before { background: rgba(111, 211, 245, .16); border-color: rgba(111, 211, 245, .3); }
.tick-list--light li::after { border-color: #7fe0ff; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
.about-body p { font-size: 1rem; }
.about-body .lead { margin-bottom: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat {
  background: linear-gradient(180deg, #fff, #f7fbfe);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 16px 14px;
}
.stat__num { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 800; color: var(--brand-700); letter-spacing: -.03em; line-height: 1; }
.stat__num span { font-size: .58em; color: var(--brand); }
.stat__label { font-size: .78rem; color: var(--ink-3); margin-top: 7px; line-height: 1.35; }

/* Credential cards */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cred {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 17px; box-shadow: var(--shadow-1);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.cred:hover { border-color: rgba(4, 137, 189, .34); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.cred__ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: #b96a00; border: 1px solid #ffe3c2;
}
.cred__ico svg { width: 20px; height: 20px; }
.cred__t { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cred__d { font-size: .77rem; color: var(--ink-3); line-height: 1.45; margin-top: 3px; }

/* Facility tiles */
.facility { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facility__item {
  position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 168px;
  padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, #0a3a58, #062a44 55%, #0b4a6d);
  border: 1px solid rgba(255, 255, 255, .08);
  isolation: isolate;
}
.facility__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(rgba(111, 211, 245, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 245, .16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 75%);
}
.facility__item::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(52, 190, 224, .35), transparent 65%);
}
.facility__item:nth-child(2) { background: linear-gradient(150deg, #083f5e, #05283f 60%, #0a3d5b); }
.facility__item:nth-child(3) { background: linear-gradient(150deg, #0a3f54, #062a3f 55%, #0c4a5f); }
.facility__item:nth-child(4) { background: linear-gradient(150deg, #123a5c, #072a45 55%, #0d4a70); }
.facility__k { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.facility__v { font-size: .8rem; color: rgba(214, 236, 248, .76); margin-top: 4px; }
.facility__badge {
  position: absolute; top: 14px; left: 16px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #9fe4fa; border: 1px solid rgba(159, 228, 250, .32); border-radius: 999px; padding: 3px 9px;
}

/* ---------- Product cards ---------- */
.product-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: rgba(4, 137, 189, .32); }
.product-card__media { position: relative; background: #eaf4fa; overflow: hidden; aspect-ratio: 16 / 11; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, .94); color: var(--brand-700);
  font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-1);
}
.product-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.16rem; margin-bottom: .35em; }
.product-card__body p { font-size: .92rem; color: var(--ink-3); margin-bottom: 16px; }
.product-card__specs {
  list-style: none; padding: 14px 0 0; margin: auto 0 18px; border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
}
.product-card__specs li { font-size: .8rem; color: var(--ink-3); margin: 0; }
.product-card__specs b { display: block; color: var(--ink); font-size: .88rem; font-weight: 650; }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(4, 137, 189, .3); }
.app__ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--bg-mist); color: var(--brand-700); }
.app__ico svg { width: 21px; height: 21px; }
.app h4 { font-size: .98rem; margin: 0 0 3px; }
.app p { font-size: .84rem; color: var(--ink-3); margin: 0; line-height: 1.55; }

/* ---------- Cases ---------- */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.case__body { padding: clamp(24px, 3vw, 38px); }
.case__kicker { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.case h3 { margin: 8px 0 10px; }
.case p { font-size: .94rem; }
.case__metrics { display: flex; gap: 26px; margin-top: 18px; }
.case__metrics b { display: block; font-size: 1.35rem; color: var(--brand-700); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.case__metrics span { font-size: .76rem; color: var(--ink-3); }

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-1);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.spec caption {
  text-align: left; padding: 18px 22px 0; font-weight: 700; color: var(--ink); font-size: 1rem;
}
table.spec th, table.spec td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.spec thead th {
  background: linear-gradient(180deg, #f8fbfd, #f1f7fb);
  color: var(--ink); font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: #fafcfe; }
table.spec td:first-child { color: var(--ink-3); width: 34%; font-weight: 550; }
table.spec td:not(:first-child) { color: var(--ink); font-weight: 550; }
table.spec .accent { color: var(--brand-700); font-weight: 700; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-3); cursor: pointer;
  transition: all .2s var(--ease);
}
.tab:hover { border-color: rgba(4, 137, 189, .4); color: var(--brand-700); }
.tab[aria-selected="true"] {
  background: var(--brand-700); border-color: var(--brand-700); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 90, 176, .7);
}
.tab-panel[hidden] { display: none; }
.tab-note { font-size: .82rem; color: var(--ink-3); margin-top: 14px; }

/* Comparison table */
.compare th, .compare td { font-size: .88rem; }
.compare td.yes { color: var(--ok); font-weight: 700; }
.compare td.no { color: #a3b2bf; }
.compare .hl { background: rgba(4, 137, 189, .055); }

/* ---------- Numbered process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 20px 22px; box-shadow: var(--shadow-1);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--brand);
  margin-bottom: 12px;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--ink-3); margin: 0; }
.step::after {
  content: ""; position: absolute; top: 30px; right: -10px; width: 18px; height: 18px;
  border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg);
}
.step:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: rgba(4, 137, 189, .34); box-shadow: var(--shadow-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 650; color: var(--ink); font-size: .97rem; line-height: 1.5;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 52px 20px 22px; font-size: .92rem; color: var(--ink-3); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Service ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
  position: relative; padding: 24px 22px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.svc__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(18, 160, 106, .1); border: 1px solid rgba(18, 160, 106, .2); color: var(--ok); margin-bottom: 14px; }
.svc__ico svg { width: 22px; height: 22px; }
.svc h4 { font-size: .98rem; margin-bottom: 5px; }
.svc p { font-size: .85rem; color: var(--ink-3); margin: 0; }

/* Visitor / testimonial band */
.visit-band {
  margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; position: relative;
  padding: clamp(26px, 3.4vw, 40px); color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(52, 190, 224, .35), transparent 65%),
    linear-gradient(135deg, #062a44, #073a56 60%, #0a4a68);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: center;
}
.visit-band h3 { color: #fff; margin-bottom: 8px; }
.visit-band p { color: rgba(220, 238, 250, .8); font-size: .94rem; margin-bottom: 0; }
.visit-band__stats { display: flex; gap: 28px; justify-content: flex-end; }
.visit-band__stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: #7fe0ff; }
.visit-band__stats span { font-size: .76rem; color: rgba(220, 238, 250, .7); }

/* ---------- Related ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related__item {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.related__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(4, 137, 189, .3); }
.related__item img { width: 84px; height: 66px; object-fit: cover; border-radius: 9px; flex: none; background: var(--bg-mist); }
.related__item h4 { font-size: .92rem; margin: 0 0 3px; }
.related__item p { font-size: .79rem; color: var(--ink-3); margin: 0; line-height: 1.45; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(32px, 4.6vw, 58px); color: #fff;
  background:
    radial-gradient(700px 340px at 88% 10%, rgba(52, 190, 224, .4), transparent 62%),
    linear-gradient(135deg, #052033, #073a56 55%, #0a4a68);
  box-shadow: 0 40px 80px -40px rgba(6, 42, 68, .7);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(220, 238, 250, .82); margin-bottom: 0; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(26px, 3.4vw, 48px); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-2); }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.contact-list__ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(4, 137, 189, .09); border: 1px solid rgba(4, 137, 189, .16); color: var(--brand-700); }
.contact-list__ico svg { width: 19px; height: 19px; }
.contact-list__t { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 2px; }
.contact-list__v { font-size: .96rem; color: var(--ink); font-weight: 600; line-height: 1.5; }
.contact-list__v a { color: var(--ink); }
.contact-list__v a:hover { color: var(--brand); }
.contact-list__sub { font-size: .8rem; color: var(--ink-3); font-weight: 400; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #d6453d; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .93rem; color: var(--ink);
  background: #fbfdff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aabb9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(4, 137, 189, .13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d6453d; background: #fff8f7; }
.form-note { font-size: .78rem; color: var(--ink-3); margin-top: 12px; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .88rem; }
.form-status.is-ok { display: block; background: #eafaf2; border: 1px solid #bfe9d5; color: #0b6b47; }
.form-status.is-err { display: block; background: #fff1f0; border: 1px solid #f6cfcb; color: #9f2f28; }

/* ---------- Footer ---------- */
.site-footer { background: #041a2b; color: rgba(214, 232, 245, .72); padding-top: clamp(48px, 6vw, 76px); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; font-weight: 750; }
.site-footer a { color: rgba(214, 232, 245, .72); transition: color .2s; }
.site-footer a:hover { color: #7fe0ff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(214, 232, 245, .6); }
.footer-about { margin: 16px 0 18px; font-size: .87rem; line-height: 1.65; max-width: 34ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
  font-size: .7rem; font-weight: 650; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(214, 232, 245, .75);
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links li { margin: 0; }
.footer-links a { font-size: .87rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; font-size: .87rem; margin: 0; line-height: 1.5; }
.footer-contact svg { width: 16px; height: 16px; flex: none; color: #6fd3f5; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between; font-size: .8rem;
  color: rgba(214, 232, 245, .55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 0; cursor: pointer; color: #fff; position: relative;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: linear-gradient(145deg, #35e07d, #1eb257); box-shadow: 0 12px 26px -8px rgba(30, 178, 87, .7); }
.fab--top {
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); width: 44px; height: 44px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
}
.fab--top svg { width: 20px; height: 20px; }
.fab--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }

/* ---------- Responsive ---------- */
/* Header: the phone number needs extra room, so it only appears once the
   header can be wider than the 1200px page container. */
@media (max-width: 1400px) {
  .header-phone { display: none; }
}
@media (min-width: 1401px) {
  .site-header .container { max-width: 1320px; }
}
@media (max-width: 1200px) {
  .brand__tag { display: none; }
}

@media (max-width: 1080px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 9px 10px; font-size: .88rem; }
  .header-phone { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 640px; }
  .hero-card { left: auto; right: 16px; bottom: -18px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .visit-band { grid-template-columns: 1fr; }
  .visit-band__stats { justify-content: flex-start; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: grid; margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; margin: 0;
    background: #fff; padding: calc(var(--nav-h) + 12px) 20px 24px;
    box-shadow: 0 24px 48px -24px rgba(10, 37, 64, .5);
    transform: translateY(-110%); transition: transform .35s var(--ease);
    border-bottom: 1px solid var(--line); max-height: 100vh; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  /* keep the brand and the close button legible while the panel is open */
  .site-header.is-nav-open {
    background: #fff; border-bottom-color: var(--line);
    box-shadow: 0 8px 30px -18px rgba(10, 37, 64, .4);
  }
  .site-header.is-nav-open .brand__name { color: var(--ink); }
  .site-header.is-nav-open .brand__tag { color: var(--ink-3); }
  .site-header.is-nav-open .nav-toggle { background: #fff; border-color: var(--line); }
  .site-header.is-nav-open .nav-toggle span { background: var(--ink); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link, .site-header:not(.is-scrolled) .nav__link {
    color: var(--ink); padding: 13px 12px; font-size: 1rem;
    border-radius: 10px; border-bottom: 1px solid var(--line);
  }
  .nav__list > li:last-child .nav__link { border-bottom: 0; }
  .nav__link:hover { background: var(--bg-soft); }
  .nav .btn { margin-top: 12px; width: 100%; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  /* brand and the menu button must sit above the open white panel */
  .site-header .brand, .site-header .header-cta { position: relative; z-index: 2; }
  .nav__cta { display: flex !important; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case img { min-height: 200px; max-height: 260px; }
  .related { grid-template-columns: 1fr; }
  .product-card__media { aspect-ratio: 16 / 10; }
}

@media (min-width: 1081px) { .nav__cta { display: none !important; } }

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --nav-h: 68px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { font-size: .58rem; }
  .grid-2, .grid-3, .grid-4, .cred-grid, .facility, .app-grid, .svc-grid, .steps, .form-row, .stat-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 12px 10px; }
  .stat__num { font-size: 1.25rem; }
  .stat__label { font-size: .68rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero-card { left: 12px; right: 12px; bottom: -16px; padding: 12px 16px; gap: 12px; }
  .hero-card__num { font-size: 1.35rem; }
  .hero__meta { gap: 8px 16px; }
  .visit-band__stats { gap: 20px; flex-wrap: wrap; }
  .case__metrics { gap: 18px; }
  .faq__item summary { padding: 15px 46px 15px 17px; font-size: .93rem; }
  .faq__a { padding: 0 46px 17px 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .float-actions { right: 14px; bottom: 14px; }
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 24px; height: 24px; }
  .section-head { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .float-actions, .nav, .hero__visual { display: none !important; }
  .section { padding-block: 24px; }
  body { font-size: 11pt; }
}
