/* ==========================================================================
   PCE=1  |  AMSR Co., Ltd.  —  Modern Design System 3.0
   Mobile & Tablet Responsive Polish + White & Blue Theme
   ========================================================================== */

:root {
  /* Brand Colors (White - Blue Theme) */
  --blue-500: #00d2ff;
  --blue-600: #0062ff;
  --blue-700: #004bca;
  --blue-800: #003699;
  
  --blue-050: #f0f7ff;
  --blue-100: #dbebff;
  --blue-200: #adcfff;
  --blue-300: #7eb0ff;

  /* Accent (Sky Blue / Cyan) */
  --accent-400: #38b6ff;
  --accent-500: #00c2ff;
  --accent-600: #00a3d7;
  --accent-050: #f0fcff;

  /* Neutrals */
  --ink-950: #050a15;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-050: #f8fafc;
  --white: #ffffff;

  /* Status / Accents */
  --ok: #10b981;
  --ok-bg: #ecfdf5;
  --ok-text: #047857;
  
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  
  --red-600: #ef4444;
  --red-700: #dc2626;
  --red-050: #fef2f2;
  --red-text: #b91c1c;

  /* Fonts */
  --font-display: 'Kanit', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout & Spacing */
  --wrap: 1200px;
  --gap: clamp(1.2rem, 2.5vw, 2.2rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Elevated Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 98, 254, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 30px rgba(0, 98, 254, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 98, 254, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 25px rgba(0, 194, 255, 0.35);

  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 15px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.4vw + 14px, 16.5px);
  line-height: 1.82;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

body.nav-locked {
  overflow: hidden;
  touch-action: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

a:hover {
  color: var(--blue-700);
  text-decoration: none;
}

/* Accessibility Skip Link (Hidden by default, slides down when Tab/Focused) */
.skip {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 10000;
  padding: 0.65rem 1.2rem;
  background: var(--blue-600);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.skip:focus,
.skip:focus-visible {
  top: 1rem;
  outline: 3px solid var(--blue-300);
}

ul, ol {
  padding-left: 1.3em;
}

li {
  margin: 0.45em 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink-900);
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

@supports (text-wrap: balance) {
  h1, h2, h3, h4 {
    text-wrap: balance;
  }
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.24;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.28;
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.32;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
  color: var(--ink-900);
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--blue-100);
  color: var(--blue-800);
}

/* ---------- Responsive Layout Wrap ---------- */
.wrap {
  width: min(100% - 2.2rem, var(--wrap));
  margin-inline: auto;
}

@media (max-width: 540px) {
  .wrap {
    width: min(100% - 1.4rem, var(--wrap));
  }
}

.section {
  padding: clamp(3.5rem, 6.5vw, 6.5rem) 0;
  position: relative;
}

.section--tight {
  padding: clamp(2.4rem, 4.5vw, 4rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--ink-050) 0%, #f1f5fa 100%);
  border-block: 1px solid var(--ink-100);
}

.section--dark {
  background: linear-gradient(165deg, var(--ink-950) 0%, #0c172d 100%);
  color: var(--ink-300);
  position: relative;
  overflow: hidden;
}

.section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--white);
}

.section--dark a {
  color: var(--blue-300);
}

.section--dark a:hover {
  color: var(--blue-200);
}

.section--dark strong, .section--dark b, .section--dark em {
  color: #fff;
}

.hero strong, .hero b, .cta-band strong, .cta-band b {
  color: #fff;
}

.section--dark .card strong, .section--dark .card b,
.section--dark .form strong, .section--dark .form b,
.section--dark table strong, .section--dark table b {
  color: var(--ink-900);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 3.5vw, 3.2rem);
}

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

.section-head p {
  color: var(--ink-500);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.8;
}

.section--dark .section-head p {
  color: var(--ink-400);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  border-radius: 2px;
}

.section--dark .eyebrow {
  color: var(--accent-400);
}

.section--dark .eyebrow::before {
  background: linear-gradient(90deg, var(--accent-400), var(--blue-500));
}

/* ---------- Buttons & Touch Targets ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.8em 1.65em;
  min-height: 44px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  touch-action: manipulation;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 98, 254, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  box-shadow: 0 8px 25px rgba(0, 98, 254, 0.35);
  color: #fff;
}

.btn--ghost {
  border-color: var(--ink-200);
  color: var(--ink-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-050);
}

.section--dark .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section--dark .btn--ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: rgba(0, 194, 255, 0.05);
}

.btn--sm {
  padding: 0.52em 1.15em;
  font-size: 0.86rem;
  min-height: 38px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn {
    width: 100%;
  }
}

/* ---------- Header & Mobile Navigation Drawer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 98, 254, 0.08);
  transition: all 0.25s ease;
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 25px rgba(0, 98, 254, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 98, 254, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand .divider {
  width: 1px;
  height: 22px;
  background: var(--ink-200);
}

.brand .pce-mark {
  height: 26px;
  width: auto;
}

@media (max-width: 480px) {
  .brand img { height: 24px; }
  .brand .pce-mark { height: 22px; }
  .brand .divider { height: 16px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  flex-wrap: nowrap;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-600);
  padding: 0.42em 0.62em;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--blue-600);
  background: var(--blue-050);
  text-decoration: none;
}

.nav a.active {
  color: var(--blue-600);
  background: var(--blue-050);
  font-weight: 600;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.4rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--ink-200);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.lang a {
  padding: 0.32em 0.52em;
  border-radius: 6px;
  color: var(--ink-500);
}

.lang a:hover {
  background: var(--ink-100);
  color: var(--ink-800);
  text-decoration: none;
}

.lang a.on {
  color: var(--white);
  background: var(--blue-600);
}

.nav-cta {
  margin-left: 0.4rem;
  flex-shrink: 0;
}

.burger {
  display: none;
  background: var(--ink-050);
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  width: 44px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
  touch-action: manipulation;
}

.burger:hover {
  border-color: var(--blue-400);
  background: var(--blue-050);
}

.burger span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--blue-600);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--blue-600);
}

/* Tablet & Mobile Nav Drawer (Responsive at <= 1180px) */
@media (max-width: 1180px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--ink-200);
    padding: 1.4rem 1.4rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(0, 20, 50, 0.15);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 0.9em 1em;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--ink-100);
    border-radius: 8px;
  }
  .nav a:active {
    background: var(--blue-050);
  }
  .lang {
    margin: 1.2rem 0 0;
    padding: 0.5rem 0 0;
    border: 0;
    border-top: 1px solid var(--ink-100);
    justify-content: center;
  }
  .lang a {
    font-size: 0.9rem;
    padding: 0.5em 1em;
  }
  .nav-cta {
    margin: 1.2rem 0 0;
  }
  .nav-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1.02rem;
  }
}

/* Backdrop for Mobile Drawer */
.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(5, 10, 21, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100rem 50rem at 80% -20%, rgba(0, 194, 255, 0.22), transparent 60%),
    radial-gradient(70rem 45rem at 10% 110%, rgba(0, 98, 254, 0.15), transparent 60%),
    linear-gradient(168deg, #0b1528 0%, #060b14 100%);
  color: var(--ink-200);
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80rem 40rem at 60% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(80rem 40rem at 60% 40%, #000 20%, transparent 80%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.hero h1 .hl {
  color: var(--accent-400);
  background: transparent;
  padding: 0;
  text-shadow: 0 0 30px rgba(0, 194, 255, 0.25);
}

.hero .lead {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #a5b7d0;
  max-width: 38em;
  margin-bottom: 2rem;
  line-height: 1.82;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: 99px;
  padding: 0.45rem 1rem 0.45rem 0.65rem;
  font-size: clamp(0.74rem, 0.85vw, 0.82rem);
  color: #cbdcf2;
  margin-bottom: 1.4rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.15);
  max-width: 100%;
}

.hero-badge img {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.hero-badge b {
  color: #fff;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 540px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
  .hero-stats .num {
    font-size: 1.35rem !important;
  }
  .hero-stats .lbl {
    font-size: 0.76rem !important;
  }
}

.hero-stats .num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-500);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

.hero-stats .lbl {
  font-size: 0.84rem;
  color: #8fa0b6;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Custom Interactive Simulation Card inside Hero */
.hero-card {
  background: linear-gradient(155deg, rgba(16, 27, 50, 0.85) 0%, rgba(8, 14, 27, 0.98) 100%);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.5vw, 2.2rem);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 30px rgba(0, 98, 254, 0.15);
}

.hero-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.hero-card .sub {
  font-size: 0.8rem;
  color: #798ea9;
  font-family: var(--font-mono);
  margin-bottom: 1.1rem;
}

/* Simulator Canvas Styling */
.sim-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #a5b7d0;
  padding: 0.65rem 0.75rem;
  min-height: 42px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  line-height: 1.25;
  touch-action: manipulation;
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 194, 255, 0.3);
}

.sim-btn.active {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 98, 254, 0.45);
}

.sim-canvas-wrap {
  position: relative;
  width: 100%;
  height: clamp(160px, 32vw, 210px);
  background: #050a12;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 194, 255, 0.15);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.sim-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sim-desc {
  font-size: 0.85rem;
  color: #8fa0b6;
  line-height: 1.6;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--blue-500);
  min-height: 4.8rem;
  display: flex;
  align-items: center;
}

/* ---------- Interactive Cost & Water Savings Calculator ---------- */
.calc-section {
  background: linear-gradient(180deg, #f8faff 0%, #edf4fc 100%);
  border-block: 1px solid var(--ink-200);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
  align-items: stretch;
}

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-card h3 {
  font-size: 1.3rem;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}

.calc-group {
  margin-bottom: 1.4rem;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.6rem;
}

.calc-group label span.val {
  font-family: var(--font-mono);
  color: var(--blue-700);
  background: var(--blue-050);
  padding: 0.22em 0.65em;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: var(--ink-200);
  outline: none;
  transition: background 0.2s;
  touch-action: pan-y;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 98, 254, 0.4);
  border: 2.5px solid #fff;
  transition: transform 0.15s, background 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--blue-500);
}

.calc-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 98, 254, 0.4);
  border: 2.5px solid #fff;
}

.calc-results-card {
  background: linear-gradient(165deg, #0d1a33 0%, #060c18 100%);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 98, 254, 0.2);
}

.calc-results-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.calc-hero-stat {
  background: rgba(0, 98, 254, 0.15);
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  margin: 1.1rem 0;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.calc-hero-stat .label {
  font-size: 0.82rem;
  color: #a5b7d0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.calc-hero-stat .value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-400);
  line-height: 1.2;
  margin: 0.3rem 0;
  white-space: nowrap;
  text-shadow: 0 0 25px rgba(0, 194, 255, 0.4);
}

.calc-hero-stat .note {
  font-size: 0.8rem;
  color: #8fa0b6;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 480px) {
  .calc-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
}

.calc-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-metric-box .m-lbl {
  font-size: 0.78rem;
  color: #8fa0b6;
  line-height: 1.35;
}

.calc-metric-box .m-val {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* ---------- Interactive Mix Data Tabs & Charts (Mobile Touch Friendly) ---------- */
.tab-container {
  margin-top: 2.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.2rem 0.4rem 0.6rem;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  .tab-nav {
    scrollbar-width: none;
  }
}

@media (max-width: 768px) {
  .tab-nav {
    justify-content: flex-start;
  }
}

.tab-btn {
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  padding: 0.7rem 1.3rem;
  min-height: 44px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
}

.tab-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
}

.tab-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 98, 254, 0.3);
}

.tab-pane {
  display: none;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  animation: fadeInTab 0.32s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.chart-bar-group {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.chart-bar-item {
  display: grid;
  grid-template-columns: 155px 1fr 95px;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .chart-bar-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    background: var(--ink-050);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }
  .chart-val-text {
    text-align: left !important;
  }
}

.chart-label {
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.35;
}

.chart-track {
  width: 100%;
  height: 26px;
  background: var(--ink-100);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.chart-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.chart-fill--blue {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
}

.chart-fill--dark {
  background: #334155;
}

.chart-val-text {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-700);
  text-align: right;
  white-space: nowrap;
}

.chart-val-text--muted {
  color: var(--ink-600);
}

.chart-label--blue {
  color: var(--blue-700);
}

/* ---------- Product Filters (Swipeable on Mobile) ---------- */
.prod-filters {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 0.5rem;
}

.prod-filters::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  .prod-filters {
    scrollbar-width: none;
  }
}

@media (max-width: 640px) {
  .prod-filters {
    justify-content: flex-start;
  }
}

.filter-btn {
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: 99px;
  padding: 0.52em 1.25em;
  min-height: 40px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
}

.filter-btn:hover {
  background: var(--blue-050);
  color: var(--blue-700);
}

.filter-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 98, 254, 0.25);
}

/* ---------- Cards & Content Blocks ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card--hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--ink-500);
  font-size: 0.96rem;
  line-height: 1.75;
}

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-050);
  color: var(--blue-600);
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.card--hover:hover .card__icon {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 98, 254, 0.25);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

/* Product Cards */
.prod {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.prod::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
}

.prod--retard::before {
  background: linear-gradient(90deg, var(--blue-600), var(--accent-500));
}

.prod--accel::before {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
}

.prod .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 6px;
  background: var(--ink-100);
  color: var(--ink-600);
  margin-bottom: 0.95rem;
  width: fit-content;
}

.prod .code {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.prod .name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-500);
  margin: 0.2rem 0 0.95rem;
  line-height: 1.4;
}

.prod ul {
  margin: 0 0 1.4rem;
  padding-left: 0;
  list-style: none;
}

.prod ul li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.94rem;
  color: var(--ink-600);
  margin: 0.6rem 0;
  line-height: 1.7;
}

.prod ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-050);
}

.prod .spec {
  margin-top: auto;
  border-top: 1px dashed var(--ink-200);
  padding-top: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.prod .spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.prod .spec .k {
  color: var(--ink-500);
  flex: 1 1 auto;
}

.prod .spec .v {
  font-family: var(--font-mono);
  color: var(--ink-900);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* ---------- Comparison Tables (Mobile Scroll Affordance) ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  position: relative;
}

.table-scroll::after {
  content: "เลื่อนในแนวนอนเพื่อดูข้อมูล ↔";
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-400);
  text-align: center;
  padding: 0.4rem;
  background: var(--ink-050);
  border-top: 1px solid var(--ink-100);
}

@media (max-width: 768px) {
  .table-scroll::after {
    display: block;
  }
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.94rem;
}

table.cmp th, table.cmp td {
  padding: 1.1rem 1.3rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-100);
  line-height: 1.7;
}

@media (max-width: 600px) {
  table.cmp th, table.cmp td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}

table.cmp thead th {
  position: sticky;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 0;
  white-space: nowrap;
  z-index: 2;
}

table.cmp thead th:nth-child(2) { background: #2a3a55; }
table.cmp thead th:nth-child(3) { background: #1c283c; }
table.cmp thead th:nth-child(4) { background: var(--blue-700); }

table.cmp tbody tr:nth-child(even) {
  background: var(--ink-050);
}

table.cmp tbody tr:hover {
  background: var(--blue-050);
}

table.cmp td:first-child {
  font-weight: 600;
  color: var(--ink-900);
  width: 22%;
}

table.cmp td:last-child {
  color: var(--ink-900);
  background: rgba(0, 98, 254, 0.04);
}

table.cmp tbody tr:hover td:last-child {
  background: rgba(0, 98, 254, 0.08);
}

table.cmp .num {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

table.cmp--results thead th:nth-child(3) { background: var(--blue-700); }
table.cmp--results thead th:nth-child(4) { background: var(--ink-900); }
table.cmp--results td:nth-child(3) {
  background: rgba(0, 98, 254, 0.05);
  color: var(--ink-900);
  font-weight: 600;
}
table.cmp--results td:last-child { background: transparent; }
table.cmp--results tbody tr:hover td:nth-child(3) {
  background: rgba(0, 98, 254, 0.1);
}

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  margin-right: 0.35em;
  white-space: nowrap;
}

.chip--good {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.chip--bad {
  background: var(--ink-100);
  color: var(--ink-600);
}

.chip--mid {
  background: var(--blue-050);
  color: var(--blue-700);
}

.table-note {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-top: 1.1rem;
  line-height: 1.7;
}

/* Pros & Cons Lists */
.pc {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid;
}

.pc--old {
  background: var(--ink-050);
  border-color: var(--ink-200);
}

.pc--new {
  background: var(--blue-050);
  border-color: var(--blue-100);
}

.pc h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
}

.pc ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.pc li {
  position: relative;
  padding-left: 1.85rem;
  margin: 0.8rem 0;
  font-size: 0.94rem;
  line-height: 1.75;
}

.pc li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-mono);
  font-weight: 700;
}

.pc--old li::before {
  content: "✕";
  color: var(--ink-500);
}

.pc--new li::before {
  content: "✓";
  color: var(--ok-text);
}

/* ---------- Timeline & Steps (Mobile Friendly Clearance) ---------- */
.steps {
  counter-reset: s;
  display: grid;
  gap: 1.25rem;
}

.step {
  position: relative;
  padding-left: 4.4rem;
  counter-increment: s;
}

@media (max-width: 540px) {
  .step {
    padding-left: 3.5rem;
  }
}

.step::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 98, 254, 0.15);
}

@media (max-width: 540px) {
  .step::before {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 9px;
    font-size: 0.82rem;
  }
}

.step h4 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.94rem;
  color: var(--ink-500);
  line-height: 1.75;
}

.section--dark .step::before {
  background: rgba(0, 194, 255, 0.15);
  border: 1px solid rgba(0, 194, 255, 0.35);
  color: var(--accent-500);
  box-shadow: none;
}

.section--dark .step p {
  color: var(--ink-400);
}

/* ---------- Stats Band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 800px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

.stat-band > div {
  background: var(--white);
  padding: 1.6rem 1.25rem;
  text-align: center;
  transition: background 0.3s;
}

.stat-band > div:hover {
  background: var(--blue-050);
}

.stat-band .num {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1.15;
  white-space: nowrap;
}

.stat-band .lbl {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* ---------- Application Badges ---------- */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .app-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

.app-list div {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-700);
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .app-list div {
    padding: 0.85rem 0.9rem;
    font-size: 0.85rem;
    gap: 0.55rem;
  }
}

.app-list div:hover {
  border-color: var(--blue-400);
  background: var(--blue-050);
  transform: translateY(-2px);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
}

.app-list svg {
  width: 22px;
  height: 22px;
  color: var(--blue-600);
  flex: 0 0 auto;
}

/* ---------- Accordion FAQ ---------- */
.faq {
  border-top: 1px solid var(--ink-200);
}

.faq details {
  border-bottom: 1px solid var(--ink-200);
  transition: background 0.25s;
}

.faq details:hover {
  background: var(--ink-050);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0.6rem 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  touch-action: manipulation;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.45rem;
  color: var(--blue-600);
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details[open] summary {
  color: var(--blue-600);
}

.faq .a {
  padding: 0 2rem 1.5rem 0;
  color: var(--ink-500);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---------- Contact Section & Form (Touch & iOS Zoom Safe) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.8rem, 4vw, 4.5rem);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.2rem 1.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

a.contact-item:hover {
  border-color: var(--blue-400);
  background: rgba(0, 194, 255, 0.08);
  transform: translateY(-2px);
}

.contact-item .ci {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 194, 255, 0.12);
  color: var(--blue-400);
  flex: 0 0 auto;
}

.contact-item .ci svg {
  width: 20px;
  height: 20px;
}

.contact-item .k {
  display: block;
  font-size: 0.76rem;
  color: #8fa0b6;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item .v {
  font-size: 1.08rem;
  color: #fff;
  font-weight: 500;
  font-family: var(--font-display);
  word-break: break-word;
}

.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
}

.form h3 {
  color: var(--ink-900);
  margin-bottom: 0.45rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.45rem;
}

/* Minimum 16px font-size prevents iOS Safari zoom jump */
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink-900);
  padding: 0.8em 1em;
  min-height: 46px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  background: var(--white);
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 98, 254, 0.12);
}

.form .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-400);
  margin-top: 0.95rem;
  text-align: center;
}

/* ---------- CTA Banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 50%, #0056cb 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4.5vw, 3.8rem);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(40rem 20rem at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(40rem 20rem at 50% 0%, #000 30%, transparent 80%);
}

.cta-band > * {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46em;
  margin-inline: auto;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.8;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 1.8rem;
}

.cta-band .btn--primary {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-band .btn--primary:hover {
  background: var(--blue-050);
  color: var(--blue-800);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--ink-400);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.6rem 0;
}

.site-footer a {
  color: var(--ink-400);
  padding: 0.2em 0;
  display: inline-block;
}

.site-footer a:hover {
  color: var(--accent-400);
}

.footer-brand img.amsr {
  height: 44px;
  width: auto;
  margin-bottom: 0.6rem;
}

.footer-brand .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-bottom: 1.35rem;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-500);
  max-width: 32em;
  line-height: 1.75;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ---------- Floating Action Button (FAB) ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fab a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
  touch-action: manipulation;
}

.fab a:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.fab .l { background: #06c755; }
.fab .t { background: var(--blue-600); }

.fab svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 520px) {
  .fab { right: 14px; bottom: 14px; }
  .fab a { width: 46px; height: 46px; }
  .fab svg { width: 20px; height: 20px; }
}

/* ---------- Media Layout Utilities ---------- */
.img-cover {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-cover:hover {
  box-shadow: var(--shadow-md);
}

.img-cover--43 { aspect-ratio: 4/3; }
.img-cover--32 { aspect-ratio: 3/2; }
.img-cover--169 { aspect-ratio: 16/9; }
.img-cover--11 { aspect-ratio: 1/1; }
.img-cover--tall { aspect-ratio: 3/4; }
.img-cover--sm { border-radius: var(--radius-sm); }

/* ---------- Utility Classes ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0 !important; }
.mt1 { margin-top: 1rem !important; }
.mt2 { margin-top: 2rem !important; }
.mt3 { margin-top: 3rem !important; }
.mb0 { margin-bottom: 0 !important; }
.mb1 { margin-bottom: 1rem !important; }
.mb2 { margin-bottom: 2rem !important; }
.mb-sm { margin-bottom: 1.5rem !important; }
.mb-md { margin-bottom: 1.4rem !important; }
.mb-lg { margin-bottom: 1.8rem !important; }
.m0 { margin: 0 !important; }
.muted { color: var(--ink-400); }
.small { font-size: 0.88rem; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.w-full { width: 100% !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.gap-1 { gap: 1rem !important; }
.gap-col-1 { gap: 0 1rem !important; }
.gap-responsive { gap: clamp(2rem, 4.5vw, 4rem) !important; }
.img-radius { border-radius: var(--radius); width: 100%; }
.band-img { width: 100%; height: clamp(220px, 30vw, 400px); object-fit: cover; object-position: center; }
.sub-th { font-weight: 400; opacity: 0.8; }
.card--vision { background: var(--blue-050); border-color: var(--blue-100); }
.card--pce { border-color: var(--blue-100); background: linear-gradient(180deg, var(--blue-050), #fff); }
.card--highlight { background: var(--blue-050); border-color: var(--blue-100); }
.card--series { background: var(--ink-050); }
.card-title--blue { color: var(--blue-700); }
.card-list { margin: 0.5rem 0 0; font-size: 0.92rem; }
.eyebrow-card { color: var(--blue-700); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 0.4rem; }
.section-subhead { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 1.2rem; }
.stat-num { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--blue-700); line-height: 1.1; }
.section--strip { background: var(--ink-050); border-bottom: 1px solid var(--ink-100); }
.color-red { color: var(--red-600); }
.color-gold { color: #b8860b; }
.color-green { color: #0b7a41; }
.color-blue { color: var(--blue-700); }
.color-ink { color: var(--ink-900); }
.v-time { font-size: 0.98rem; }
.faq-wrap { max-width: 52rem; margin-inline: auto; }
.calc-note-text { font-size: 0.92rem; margin-bottom: 0.8rem; }
.muted-label { color: var(--ink-400); }
.btn-row--mt { margin-top: 1.2rem; }
.w-100 { width: 100% !important; }
.w-95 { width: 95% !important; }
.w-92 { width: 92% !important; }
.w-90 { width: 90% !important; }
.w-85 { width: 85% !important; }
.w-84 { width: 84% !important; }
.w-73 { width: 73% !important; }
.w-71 { width: 71% !important; }
.w-62 { width: 62% !important; }
.w-48 { width: 48% !important; }
.w-45 { width: 45% !important; }
.w-30 { width: 30% !important; }

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 404 & Article page utilities */
.hero--404 { min-height: 100dvh; display: grid; place-items: center; text-align: center; }
.logo--404 { height: 44px; width: auto; margin: 0 auto 2rem; }
.mono--404 { color: var(--blue-500); letter-spacing: 0.3em; font-size: 0.85rem; margin-bottom: 0.5rem; }
.title--white { color: #fff; }
.lead--center { margin-inline: auto; }
.btn-row--center { justify-content: center; margin-top: 1.8rem; }
.contact-text--404 { color: #8fa2ba; margin-top: 2.5rem; }
.hero-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.sim-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-400); font-weight: 600; }
.calc-header-row { display: flex; justify-content: space-between; align-items: center; }
.calc-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-400); }
.calc-footnote { border-top: 1px dashed var(--ink-200); padding-top: 1rem; margin-top: 1rem; }
.calc-group--compact { margin-bottom: 0.5rem; }
.h3-clamp-lg { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.h3-clamp-md { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.grid-align-center { align-items: center; }
.grid--service { align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
.grid--about { align-items: center; gap: clamp(2rem, 4.5vw, 4rem); }
.fig-rnd { margin: 1.5rem 0 0; }
.img-rnd { border-radius: var(--radius); width: 100%; }
.img-extrusion { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.color-ok { color: var(--ok); }
.color-white { color: #fff; }
.color-ink-600 { color: var(--ink-600); }
.band-banner-img { width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; object-position: center 50%; }

.link--blue { color: var(--blue-500); }
.article-wrap { max-width: 46rem; margin-inline: auto; }
.article-title { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
.blog-index-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.article-lead { color: var(--ink-500); font-size: 1.08rem; margin-bottom: 0; }
.related-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1.5rem; }

/* Unified Vision & Mission Component */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .vision-mission-grid {
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
  }
}

.card--vision-featured {
  background: linear-gradient(145deg, var(--white), var(--blue-050));
  border: 1.5px solid var(--blue-200);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 98, 254, 0.07);
}

.card--vision-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.vision-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0, 98, 254, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 1.2rem;
}

.vision-title {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-900);
  font-weight: 600;
  margin: 0;
}

.missions-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .missions-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mission-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-300);
  box-shadow: 0 8px 24px rgba(0, 98, 254, 0.08);
}

.mission-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
