/* ============================================================
   Hex Supplies Limited — Company Website
   Palette: deep navy + white, accent blue matched to logo
   ============================================================ */

:root {
  --navy-950: #051427;
  --navy-900: #081f3c;
  --navy-800: #0b2c52;
  --navy-700: #103c6b;
  --blue-600: #0f62ab;
  --blue-500: #1379d1;
  --blue-400: #3d9be9;
  --blue-100: #e6f1fb;
  --blue-50:  #f3f8fd;
  --ink:     #16263b;
  --ink-2:   #46586e;
  --ink-3:   #6b7c92;
  --line:    #e2e9f1;
  --white:   #ffffff;
  --tint:    #f5f8fc;
  --wa:      #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 31, 60, .06);
  --shadow:    0 14px 38px rgba(8, 31, 60, .10);
  --shadow-lg: 0 26px 70px rgba(8, 31, 60, .16);
  --header-h: 128px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang HK", "PingFang TC", "Microsoft JhengHei",
               "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 121, 209, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(19,121,209,.42); }

.btn-ghost {
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  margin-top: 22px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { transform: translateY(-2px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(8, 31, 60, .07);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 112px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--navy-800); background: var(--blue-50); }
.nav-link.active { color: var(--blue-600); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue-500);
}
.nav-cta { margin-left: 8px; }

.lang-switch {
  margin-left: 10px;
  width: 44px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy-800);
  background: #fff;
  transition: border-color .2s, background .2s, color .2s;
}
.lang-switch:hover { border-color: var(--blue-500); color: var(--blue-600); }
.lang-switch-mobile { display: none; }

.header-actions { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy-800);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Pages / routing ---------------- */
.page { display: none; padding-top: var(--header-h); animation: fadeUp .45s var(--ease); }
.page.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 58%, var(--blue-600) 130%);
  color: #fff;
  padding: 96px 0 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-1 { width: 480px; height: 480px; background: rgba(19,121,209,.55); top: -180px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: rgba(61,155,233,.30); bottom: -190px; left: -100px; }
.grid-overlay {
  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: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; max-width: 860px; }
.hero-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #cfe4f8;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(231, 240, 250, .86);
  max-width: 680px;
  margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy-800); }

.hero-stats {
  margin-top: 70px;
  display: inline-flex;
  align-items: center;
  gap: 38px;
  padding: 22px 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(6px);
}
.stat strong { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.stat span { font-size: 13.5px; color: rgba(231,240,250,.75); }
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,.18); }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section-white { background: #fff; }
.section-tint  { background: var(--tint); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--blue-400); }
.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc { color: var(--ink-3); font-size: 16px; }

/* ---------------- Page heroes (inner pages) ---------------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-700));
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::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: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.page-hero p:not(.section-eyebrow) { color: rgba(231,240,250,.82); font-size: 17px; max-width: 620px; margin: 0 auto; }
.page-hero .section-eyebrow { margin-bottom: 14px; }

/* ---------------- Core service cards (home) ---------------- */
.core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.core-card {
  position: relative;
  padding: 40px 36px 36px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.core-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.core-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #c7dcf1; }
.core-card:hover::after { transform: scaleX(1); }
.core-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(19,121,209,.28);
}
.core-icon svg { width: 30px; height: 30px; }
.core-card h3 { font-size: 23px; color: var(--navy-900); margin-bottom: 12px; font-weight: 700; }
.core-card > p { color: var(--ink-2); margin-bottom: 20px; }
.core-points { display: grid; gap: 10px; margin-bottom: 26px; }
.core-points li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; font-size: 15px;
}
.core-points svg { width: 18px; height: 18px; color: var(--blue-500); flex-shrink: 0; }
.core-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-600); font-weight: 600; font-size: 15px;
}
.core-link svg { width: 16px; height: 16px; transition: transform .2s; }
.core-card:hover .core-link svg { transform: translateX(4px); }

/* ---------------- Why strip (home) ---------------- */
.why-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-item { text-align: center; padding: 12px 8px; }
.why-item .w-icon {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.why-item .w-icon svg { width: 26px; height: 26px; }
.why-item h4 { font-size: 16px; color: var(--navy-900); margin-bottom: 5px; }
.why-item p { font-size: 13.5px; color: var(--ink-3); }

/* ---------------- Services page ---------------- */
.service-block { margin-bottom: 72px; }
.service-block:last-child { margin-bottom: 0; }
.service-block-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}
.service-icon {
  flex-shrink: 0;
  width: 66px; height: 66px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
}
.service-icon svg { width: 32px; height: 32px; }
.icon-dev { background: linear-gradient(135deg, var(--navy-700), var(--blue-600)); box-shadow: 0 12px 26px rgba(16,60,107,.3); }
.icon-mkt { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); box-shadow: 0 12px 26px rgba(19,121,209,.3); }
.service-block-head h2 { font-size: 27px; color: var(--navy-900); margin-bottom: 6px; }
.service-block-head p { color: var(--ink-2); max-width: 680px; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7dcf1; }
.svc-card .svc-num {
  font-size: 13px; font-weight: 700; color: var(--blue-500);
  letter-spacing: 1.5px; margin-bottom: 12px;
}
.svc-card h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 10px; }
.svc-card > p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; }
.svc-card ul { display: grid; gap: 8px; }
.svc-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink);
}
.svc-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: 28px; color: var(--navy-900); margin-bottom: 18px; }
.about-text > p { color: var(--ink-2); margin-bottom: 16px; }
.about-mission {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.about-mission li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
}
.about-mission strong { color: var(--navy-800); white-space: nowrap; }
.about-mission span { color: var(--ink-2); font-size: 14.5px; }

.about-visual { position: relative; display: grid; gap: 18px; }
.visual-card {
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px;
}
.visual-card-2 { transform: translateX(34px); background: linear-gradient(150deg, var(--blue-600), var(--blue-400)); }
.visual-card-3 { transform: translateX(-10px); }
.visual-num { font-size: 34px; font-weight: 800; }
.visual-label { font-size: 15px; color: rgba(255,255,255,.88); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .f-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
  margin-bottom: 16px;
}
.feature-card .f-icon svg { width: 25px; height: 25px; }
.feature-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-3); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-card {
  display: flex; gap: 18px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.why-card:hover { border-color: #c7dcf1; box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card .check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid; place-items: center;
}
.why-card .check svg { width: 16px; height: 16px; }
.why-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 6px; }
.why-card p { font-size: 14.5px; color: var(--ink-2); }

/* ---------------- Cases ---------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-50);
}
.case-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.case-card:hover .case-img-wrap img { transform: scale(1.06); }
.case-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(8,31,60,.82);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.case-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 8px; }
.case-body > p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; flex: 1; }
.case-metric {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700;
  color: var(--blue-600);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.case-metric svg { width: 15px; height: 15px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.case-tags span {
  font-size: 12px;
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid #d5e6f7;
  padding: 3px 11px;
  border-radius: 999px;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19,121,209,.12);
}
.form-group.invalid input,
.form-group.invalid textarea { border-color: #e05b5b; background: #fffafa; }
.contact-form .btn { margin-top: 6px; }
.form-success {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #ecf9f0;
  color: #1d7a41;
  font-size: 14px;
  font-weight: 600;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-info {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(61,155,233,.22); filter: blur(60px);
  top: -110px; right: -90px;
}
.contact-info h2 { font-size: 22px; margin-bottom: 24px; position: relative; }
.contact-list { display: grid; gap: 22px; position: relative; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  color: var(--blue-400);
}
.ci-icon.ci-wa { color: #5ce08b; }
.ci-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 14px; color: rgba(231,240,250,.7); margin-bottom: 2px; font-weight: 500; }
.contact-list span, .contact-list a { font-size: 15px; color: #fff; }
.contact-list a:hover { color: var(--blue-400); text-decoration: underline; }
.contact-info .btn-whatsapp { position: relative; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
}
.cta-inner h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 6px; }
.cta-inner p { color: rgba(231,240,250,.85); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(231,240,250,.72);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  /* transparent logo knocked out to white for the dark footer */
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(231,240,250,.5);
  flex-wrap: wrap;
}

/* ---------------- User chip (logged in) ---------------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.user-chip-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 6px;
  transition: background .2s;
}
.user-chip-main:hover { background: var(--blue-50); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: #fff;
  font-size: 14px; font-weight: 700;
}
.user-name {
  font-size: 14px; font-weight: 600; color: var(--navy-800);
  max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-logout {
  display: grid; place-items: center;
  width: 36px; align-self: stretch;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  transition: color .2s, background .2s;
}
.user-logout svg { width: 17px; height: 17px; }
.user-logout:hover { color: #d33; background: #fdf2f2; }

/* ---------------- Login modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 20, 39, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn .2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 38px 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .28s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: background .2s, color .2s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--blue-50); color: var(--navy-800); }
.modal-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  box-shadow: 0 12px 26px rgba(16,60,107,.28);
}
.modal-icon svg { width: 27px; height: 27px; }
.modal h2 { text-align: center; font-size: 23px; color: var(--navy-900); margin-bottom: 6px; }
.modal-sub { text-align: center; font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.modal .form-group { margin-bottom: 16px; }
.modal .btn { margin-top: 8px; }
.login-error {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  color: #c63838;
  background: #fdeeee;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin: 4px 0 6px;
}
.login-error svg { width: 17px; height: 17px; flex-shrink: 0; }
.modal.shake { animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ---------------- Admin / member page ---------------- */
.admin-narrow { max-width: 620px; }
.admin-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 44px 40px 38px;
}
.admin-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  box-shadow: 0 14px 30px rgba(16,60,107,.28);
}
.admin-card-icon svg { width: 34px; height: 34px; }
.admin-card h2 { font-size: 26px; color: var(--navy-900); margin-bottom: 8px; }
.admin-hello { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }
.admin-hello strong { color: var(--blue-600); }
.admin-meta {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
.admin-meta > div {
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.admin-meta dt {
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.admin-meta dd { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.admin-status { display: flex; align-items: center; gap: 7px; }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 4px rgba(47,191,113,.15);
}

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root { --header-h: 96px; }
  .brand-logo { height: 80px; }
  .core-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual {
    grid-template-columns: repeat(3, 1fr);
    max-width: 640px;
  }
  .visual-card, .visual-card-2, .visual-card-3 { transform: none; flex-direction: column; text-align: center; gap: 4px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .why-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { max-width: none; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 760px) {
  :root { --header-h: 84px; }

  .brand-logo { height: 62px; }

  .header-actions { display: flex; }
  .lang-switch-mobile { display: inline-grid; place-items: center; margin-left: 0; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 13px 14px; font-size: 16px; border-radius: 10px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--blue-50); }
  .main-nav .lang-switch { display: none; }
  .nav-cta { margin: 10px 0 0; }

  .hero { padding: 64px 0 76px; }
  .hero-stats {
    gap: 20px;
    padding: 18px 24px;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat { flex: 1; min-width: 80px; }
  .stat-divider { display: none; }

  .section { padding: 60px 0; }
  .page-hero { padding: 56px 0 52px; }

  .core-grid, .service-cards, .cases-grid, .why-grid, .feature-grid, .why-strip {
    grid-template-columns: 1fr;
  }
  .about-visual { grid-template-columns: 1fr; }
  .service-block-head { flex-direction: column; text-align: center; }
  .service-block-head p { margin-inline: auto; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .contact-info { padding: 30px 24px; }

  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* auth */
  .user-chip { margin: 12px 0 0; align-self: stretch; }
  .user-chip-main { flex: 1; justify-content: center; padding: 8px; }
  .modal { padding: 32px 24px 26px; }
  .admin-card { padding: 34px 22px 30px; }
  .admin-meta { grid-template-columns: 1fr; }
}

/* ============ CMS: clickable case cards + article modal ============ */
.case-link { cursor: pointer; }
.case-link:focus-visible { outline: 3px solid rgba(var(--blue-500-rgb, 37, 99, 235), .35); outline-offset: 3px; }
.article-modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 0;
  text-align: left;
}
.article-modal .modal-close { background: rgba(255,255,255,.9); box-shadow: var(--shadow); z-index: 2; }
.article-head { position: relative; }
.article-cover { width: 100%; height: 300px; object-fit: cover; display: block; border-radius: 20px 20px 0 0; }
.article-head .case-cat {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,.94);
}
.article-head h2 {
  text-align: left;
  font-size: 24px;
  margin: 22px 32px 8px;
}
.article-metric {
  display: flex; align-items: center; gap: 8px;
  margin: 0 32px;
  font-weight: 600; color: var(--blue-700, #1d4ed8);
  font-size: 14px;
}
.article-metric svg { width: 18px; height: 18px; flex: none; }
.article-body { padding: 16px 32px 8px; color: var(--ink-2, #334155); font-size: 15.5px; line-height: 1.9; }
.article-body p { margin: 0 0 14px; }
.article-tags { padding: 8px 32px 32px; margin-bottom: 0; }
@media (max-width: 640px) {
  .article-cover { height: 210px; }
  .article-head h2 { margin-left: 22px; margin-right: 22px; font-size: 20px; }
  .article-metric { margin: 0 22px; }
  .article-body { padding-left: 22px; padding-right: 22px; }
  .article-tags { padding-left: 22px; padding-right: 22px; padding-bottom: 24px; }
}
