/* ==========================================================================
   SYSTEMS Co., Ltd. — Design System
   บริษัท ซิสเต็ม เอส จำกัด | The Best IT Solution
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Corporate identity — sampled from the official logo artwork (aw final.ai) */
  --brand-navy: #004482;  /* wordmark "SystemS" */
  --brand-sky:  #59a3d5;  /* cloud mark */

  /* Brand */
  --brand-500: #1d63ff;
  --brand-600: #1450e0;
  --brand-700: #1040b4;
  --brand-400: #4d86ff;
  --brand-300: #8db1ff;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Neutrals — light theme */
  --ink-900: #10254c;
  --ink-800: #16305f;
  --ink-700: #1e3d73;

  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-elev: #ffffff;
  --bg-inset: #eef2fb;
  --line: #dfe5f2;
  --line-soft: #eaeff8;
  --text: #0c1730;
  --text-muted: #56617a;
  --text-faint: #8791a8;
  --accent: var(--brand-600);
  --accent-contrast: #ffffff;
  --hero-bg: #10254c;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(6, 12, 28, .06), 0 1px 3px rgba(6, 12, 28, .04);
  --shadow-md: 0 4px 12px rgba(6, 12, 28, .07), 0 12px 28px rgba(6, 12, 28, .06);
  --shadow-lg: 0 12px 32px rgba(6, 12, 28, .10), 0 32px 64px rgba(6, 12, 28, .08);
  --ring: 0 0 0 3px rgba(29, 99, 255, .28);

  /* Geometry */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* Type */
  --font-sans: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans Thai", var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0e2044;
  --bg-soft: #132a55;
  --bg-elev: #163063;
  --bg-inset: #1b3a72;
  --line: #2a4a85;
  --line-soft: #223d70;
  --text: #eef2fb;
  --text-muted: #b3c1dd;
  --text-faint: #8496b8;
  --accent: var(--brand-400);
  --accent-contrast: #0e2044;
  --hero-bg: #0c1c3d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .28);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .4), 0 32px 64px rgba(0, 0, 0, .32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* Thai script needs extra leading for tone marks and vowel signs */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.38; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.4; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.32rem); }

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

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-500); }

img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-500); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stack > * + * { margin-top: 1rem; }

/* Section heading block */
.sec-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--text-muted); font-size: 1.06rem; }
.sec-head h2 { margin-bottom: .5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
}
.sec-head--center .eyebrow::before { display: none; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
    background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 99, 255, .32);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(29, 99, 255, .42); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-inset); }

.btn--light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--sm { padding: .6rem 1.15rem; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .94rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink-900);
  color: #b9c4dc;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #d7dfef; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; opacity: .7; }
.topbar__meta { display: flex; gap: 1.5rem; align-items: center; }
.topbar__tag { color: #7b88a5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
    background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

/* Logo — official cloud mark + "SystemS" wordmark */
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark {
  width: 54px;
  display: grid;
  place-items: center;
  color: var(--brand-sky);
  flex: none;
}
.logo__mark svg { width: 100%; height: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  /* wordmark is set in a grotesque to match the outlined letterforms in the source art */
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -.015em;
  color: var(--brand-navy);
}
.logo__sub {
  font-size: .625rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
/* navy is unreadable on the dark canvas — lift the wordmark, keep the cloud on-brand */
[data-theme="dark"] .logo__name { color: #eef2fb; }
.site-footer .logo__name { color: #fff; }
.site-footer .logo__mark { color: var(--brand-sky); }

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__cta { display: none; } /* shown only in the mobile drawer */
.nav__link {
  position: relative;
  display: block;
  padding: .55rem .95rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-inset); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 18px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
}

.header__actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    margin: 0;
    padding: 5.5rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility .38s;
    z-index: 90;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { padding: .9rem 1rem; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav__link.is-active { background: var(--bg-inset); }
  .nav__link.is-active::after { display: none; }
  .nav__cta { display: block; margin-top: 1rem; }
  .nav-toggle { display: grid; position: relative; z-index: 95; }
  .header__cta-desktop { display: none; }
  .topbar__meta { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: #eef2fb;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(34, 211, 238, .20), transparent 62%),
    radial-gradient(760px 520px at 12% 92%, rgba(29, 99, 255, .30), transparent 60%),
    linear-gradient(180deg, #10254c, #17356e 55%, #10254c);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 62px 62px;
  mask-image: radial-gradient(closest-side at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 55%, transparent 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #b6c3dd;
  max-width: 36rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .95rem .4rem .45rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #cfd9ee;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(8px);
}
.badge-pill b {
  padding: .18rem .6rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand-500), var(--cyan-500));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -.03em;
}
.stat__num .suffix { color: var(--cyan-400); }
.stat__label { font-size: .84rem; color: #93a2c2; margin-top: .35rem; }

/* Hero visual — floating console card */
.hero__visual { position: relative; }
.console {
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(20, 33, 66, .92), rgba(10, 18, 40, .95));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
}
.console__dot { width: 10px; height: 10px; border-radius: 50%; }
.console__title {
  margin-left: .6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: #7d8cae;
  letter-spacing: .04em;
}
.console__body { padding: 1.35rem; display: grid; gap: .85rem; }

.metric-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.metric-row__icon {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(29, 99, 255, .18);
  color: var(--brand-300);
}
.metric-row__icon svg { width: 18px; height: 18px; }
.metric-row__body { flex: 1; min-width: 0; }
.metric-row__name { font-size: .88rem; font-weight: 600; color: #e4eaf7; }
.metric-row__meta { font-size: .74rem; color: #7d8cae; }
.metric-row__val {
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 600;
  color: var(--cyan-400);
}

.bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
  margin-top: .4rem;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
  animation: grow 1.6s var(--ease) both;
}
@keyframes grow { from { width: 0 !important; } }

.float-card {
  position: absolute;
  right: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-card__pulse {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
  flex: none;
}
.float-card__pulse svg { width: 17px; height: 17px; }
.float-card strong { display: block; font-size: .88rem; color: var(--text); }
.float-card span { font-size: .74rem; color: var(--text-muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@media (max-width: 620px) { .float-card { display: none; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero p { color: #b6c3dd; max-width: 42rem; margin-inline: auto; font-size: 1.05rem; }

.crumbs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .84rem;
  color: #7d8cae;
  margin-top: 1.5rem;
}
.crumbs a { color: #b6c3dd; }
.crumbs a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line));
}
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-muted); font-size: .96rem; }

.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--brand-500) 14%, transparent),
    color-mix(in srgb, var(--cyan-500) 14%, transparent));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 20%, transparent);
}
.card__icon svg { width: 25px; height: 25px; }

.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tag {
  font-size: .76rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  color: var(--text-muted);
  border: 1px solid var(--line-soft);
}

/* Numbered card */
.card--num { padding-top: 2.6rem; }
.card__num {
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--line);
  letter-spacing: -.04em;
}

/* Feature list */
.feat-list { display: grid; gap: .7rem; }
.feat-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--text-muted);
}
.feat-list svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: .28rem;
  color: var(--accent);
}
.feat-list b { color: var(--text); font-weight: 600; }

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--rev > *:first-child { order: 2; }
@media (max-width: 760px) { .split--rev > *:first-child { order: 0; } }

/* Module chip grid */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }

/* Panel / mock UI */
.panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.panel__head strong { font-size: .92rem; }
.panel__body { padding: 1.35rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.kpi {
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.kpi__label { font-size: .76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kpi__val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: .2rem;
}
.kpi__delta { font-size: .78rem; font-weight: 600; color: #16a34a; }

/* Queue ticket mock */
.ticket {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--brand-600), var(--brand-700) 60%, var(--ink-800));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.ticket__label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #b9caf5; }
.ticket__code {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  margin: .4rem 0 .3rem;
  letter-spacing: -.03em;
}
.ticket__meta { font-size: .88rem; color: #c9d6f7; }
.ticket__next {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(255, 255, 255, .25);
}
.ticket__next span {
  padding: .3rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .12);
  font-family: var(--font-mono);
  font-size: .82rem;
}

/* --------------------------------------------------------------------------
   8. Stats band / Why-us
   -------------------------------------------------------------------------- */
.band {
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--ink-900), #1b3d80 60%, #12587c);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .6;
}
.band > * { position: relative; }
.band h2 { color: #fff; }
.band p { color: #b6c3dd; }

.why {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.why:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.why__icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-500), var(--cyan-500));
  color: #fff;
}
.why__icon svg { width: 21px; height: 21px; }
.why h3 { font-size: 1.02rem; color: #fff; margin-bottom: .25rem; }
.why p { font-size: .89rem; color: #a8b6d4; margin: 0; }

/* --------------------------------------------------------------------------
   8b. ISO certification badges
   -------------------------------------------------------------------------- */
.iso-seal {
  width: 84px; height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--accent);
}
.iso-seal svg { width: 100%; height: 100%; }
.iso-seal__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.05;
  pointer-events: none;
}
.iso-seal__num b {
  display: block;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
}
.iso-seal__num span {
  display: block;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-top: .1rem;
}

/* Card variant used on About / Home */
.iso-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.iso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line));
}
.iso-card__body { min-width: 0; }
.iso-card h3 { margin-bottom: .2rem; }
.iso-card__std {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .35rem;
}
.iso-card p { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 520px) { .iso-card { flex-direction: column; } }

/* Compact strip — dark band + footer */
.iso-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.iso-chip {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.1rem .6rem .7rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #dbe3f4;
}
.iso-chip svg { width: 30px; height: 30px; flex: none; color: var(--cyan-400); }
.iso-chip b { display: block; font-size: .9rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.iso-chip span { display: block; font-size: .74rem; color: #a8b6d4; }

/* Footer badges */
.footer__iso { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.footer__iso-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  font-size: .78rem;
  font-weight: 600;
  color: #cfd9ee;
  white-space: nowrap;
}
.footer__iso-item svg { width: 20px; height: 20px; color: var(--brand-400); flex: none; }

/* --------------------------------------------------------------------------
   9. Process timeline
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.step__n {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(29, 99, 255, .3);
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   10. CTA
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(34, 211, 238, .22), transparent 65%),
    linear-gradient(135deg, var(--brand-600), var(--ink-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: #c2cee8; max-width: 38rem; margin-inline: auto; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-item:last-child { border-bottom: 0; }
.info-item__icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--bg-inset);
  color: var(--accent);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: .2rem; font-family: var(--font-sans); }
.info-item p, .info-item a { font-size: 1rem; color: var(--text); margin: 0; font-weight: 500; }
.info-item a:hover { color: var(--accent); }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.field label .req { color: #e11d48; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: .9rem; }

.form-status {
  display: none;
  padding: .85rem 1.1rem;
  border-radius: var(--r-md);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.form-status.is-shown { display: block; }
.form-status--ok {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #15803d;
  border: 1px solid color-mix(in srgb, #16a34a 30%, transparent);
}
[data-theme="dark"] .form-status--ok { color: #4ade80; }

.map-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  line-height: 0;
  background: var(--bg-inset);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; }
.faq + .faq { margin-top: .8rem; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-soft); }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform .25s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.35rem; color: var(--text-muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   11b. Legal / policy prose
   -------------------------------------------------------------------------- */
.legal {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: .5rem;
}
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--text);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 2rem;
}
.legal h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}
.legal p { margin-bottom: 1.15rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.15rem;
}
.legal li { margin-bottom: .55rem; }
.legal li::marker { color: var(--accent); }
.legal a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* Callout that identifies whose policy this is */
.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: .94rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: .3rem; color: var(--accent); }
.notice b { color: var(--text); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: #9aa8c6;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .94rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.site-footer .logo__name, .site-footer h3 { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.1rem;
  color: #dbe3f4;
}
.footer__about { max-width: 26rem; margin-top: 1.1rem; color: #8e9cbb; font-size: .92rem; }
.footer__links li + li { margin-top: .6rem; }
.footer__links a { color: #9aa8c6; }
.footer__links a:hover { color: #fff; }

.footer__contact li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .8rem;
  color: #9aa8c6;
}
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .3rem; color: var(--brand-400); }
.footer__contact a { color: #9aa8c6; }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .86rem;
  color: #7b88a5;
}
.footer__bottom a { color: #7b88a5; }
.footer__bottom a:hover { color: #fff; }

/* Back to top */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 80;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   13. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
