/* ===================================================
   Technology Growth Studio  —  css/main.css  v3.0
   White-dominant • Animated • Bilingual-ready
   =================================================== */

/* ── Variables ─────────────────────────────────── */
:root {
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --navy:      #0f172a;
  --blue:      #2563eb;
  --blue-600:  #1d4ed8;
  --blue-400:  #60a5fa;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;

  --sh-xs: 0 1px 2px rgba(0,0,0,.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --sh-md: 0 8px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --sh-lg: 0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
  --sh-xl: 0 32px 72px rgba(0,0,0,.16), 0 16px 32px rgba(0,0,0,.08);

  --r-sm: 8px;  --r: 12px;  --r-lg: 18px;  --r-xl: 24px;  --r-2xl: 32px;
}

/* ── Reset / Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ──────────────────────────────────── */
.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 88px;
  gap: 22px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; transition: transform .24s ease; }
.brand:hover { transform: translateY(-1px); }
.brand-logo { height: 56px; width: auto; flex-shrink: 0; object-fit: contain; }
.brand-words-nav-logo { height: 36px; width: auto; flex-shrink: 0; object-fit: contain; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,.9);
  box-shadow: var(--sh-xs);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--navy);
  transition: transform .24s ease, opacity .24s ease;
}

/* Right group */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 10px;
  transition: color .24s ease, background .24s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s ease;
}

.site-nav a:hover {
  color: var(--navy);
  background: rgba(248,250,252,.95);
}

.site-nav a:hover::after { transform: scaleX(1); }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: .78rem; font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .04em;
  transition: background .24s ease, border-color .24s ease;
  white-space: nowrap;
  user-select: none;
}
.lang-toggle:hover { background: var(--gray-200); }
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 5px;
  border-radius: 5px;
  transition: color .18s, background .18s;
}
.lang-opt[aria-current="page"] { pointer-events: none; }
[data-lang="zh"] .lang-opt[data-l="zh"],
[data-lang="en"] .lang-opt[data-l="en"] {
  color: var(--blue); background: var(--blue-50);
}
.lang-divider { opacity: .35; }

/* CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0ea5e9 100%);
  color: white;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
  white-space: nowrap;
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.1);
  box-shadow: 0 14px 30px rgba(37,99,235,.33);
}

.anchor-offset {
  scroll-margin-top: 110px;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: .94rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue); color: white;
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 12px 32px rgba(37,99,235,.38); }

.btn-outline {
  background: white; color: var(--navy);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--sh-sm);
}
.btn-outline:hover { border-color: var(--gray-300); box-shadow: var(--sh); }

.btn-wa {
  background: #25d366; color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #20ba58; }

/* ── Eyebrow ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  padding: 88px 0 104px;
  background:
    radial-gradient(ellipse 55% 50% at 92% 8%,  rgba(219,234,254,.75) 0%, transparent 55%),
    radial-gradient(ellipse 40% 55% at 5%  92%,  rgba(239,246,255,.55) 0%, transparent 50%),
    var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--navy);
  margin-bottom: 20px;
}
.lead {
  font-size: 1rem; line-height: 1.88;
  color: var(--gray-500);
  max-width: 52ch;
  margin-bottom: 28px;
}
.action-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}

/* Quick points */
.quick-points {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px;
  border-radius: var(--r-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.quick-points li {
  display: flex; align-items: flex-start; gap: 12px;
}
.qp-icon { color: var(--blue); font-size: .88rem; flex-shrink: 0; margin-top: 2px; }
.quick-points strong {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--navy); margin-bottom: 2px;
}
.quick-points span:not(.qp-icon) {
  font-size: .83rem; color: var(--gray-500); line-height: 1.5;
}

/* ── Floating Image Stack ───────────────────────── */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.img-stack {
  position: relative;
  width: 440px; height: 520px;
  flex-shrink: 0;
}
.img-frame {
  position: absolute; overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Frame 1 — large, left, tilted left */
.frame-1 {
  width: 300px; height: 400px;
  top: 0; left: 0; z-index: 2;
  transform: rotate(-3deg);
  animation: float-a 7s cubic-bezier(.45,.05,.55,.95) infinite;
}
.frame-1 img {
  animation: kenburns-a 14s ease-in-out infinite alternate;
}

/* Frame 2 — small, right-bottom, tilted right */
.frame-2 {
  width: 220px; height: 280px;
  bottom: 0; right: 0; z-index: 3;
  transform: rotate(2.5deg);
  animation: float-b 9s cubic-bezier(.45,.05,.55,.95) infinite;
}
.frame-2 img {
  animation: kenburns-b 12s ease-in-out infinite alternate;
}

/* Stat badges */
.stat-badge {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: white;
  border: 1px solid var(--gray-100);
  box-shadow: var(--sh-lg);
}
.badge-1 { top: 64px; right: -24px; animation: badge-float 6s ease-in-out infinite; }
.badge-2 { bottom: 88px; left: -24px; animation: badge-float 8s ease-in-out infinite; animation-delay: -3s; }
.badge-num {
  font-size: 1.6rem; font-weight: 800;
  color: var(--navy); line-height: 1;
}
.badge-label { font-size: .72rem; color: var(--gray-400); white-space: nowrap; }

/* ── @keyframes ─────────────────────────────────── */
@keyframes float-a {
  0%, 100% { transform: rotate(-3deg) translateY(0);    }
  50%       { transform: rotate(-3deg) translateY(-18px); }
}
@keyframes float-b {
  0%, 100% { transform: rotate(2.5deg) translateY(-10px); }
  50%       { transform: rotate(2.5deg) translateY(8px);  }
}
@keyframes kenburns-a {
  from { transform: scale(1)    translate(0,   0); }
  to   { transform: scale(1.10) translate(-3%, -2%); }
}
@keyframes kenburns-b {
  from { transform: scale(1.05) translate(2%, 0); }
  to   { transform: scale(1.12) translate(-2%, -3%); }
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════ */
.marquee-strip {
  position: relative;
  overflow: hidden;
  padding: 28px 0 12px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.marquee-showcase {
  padding: 22px 0 8px;
  background: var(--gray-50);
}

.marquee-head {
  margin-bottom: 18px;
}

.marquee-head h2 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}

.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50), rgba(248,250,252,0));
}

.marquee-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50), rgba(248,250,252,0));
}

.marquee-inner {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 58s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

.marquee-card {
  width: 372px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,23,42,.07);
  flex-shrink: 0;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.marquee-card:hover {
  transform: translateY(-4px);
  border-color: #bfd1f2;
  box-shadow: 0 14px 34px rgba(37,99,235,.16);
}

.marquee-card img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  display: block;
  background: #f8fafc;
}

.marquee-card-body {
  padding: 14px 16px 16px;
  border-top: 1px solid #e8edf6;
}

.marquee-card-body h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .005em;
  color: #0f172a;
}

.marquee-card-body p {
  margin: 7px 0 0;
  font-size: .76rem;
  font-weight: 500;
  color: #5b6b84;
}

/* Detailed case portfolio */
.case-portfolio {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%);
  padding-top: 86px;
  padding-bottom: 86px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  background: #ffffff;
  border: 1px solid #dbe4f1;
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 8px 26px rgba(15,23,42,.06);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  transition-delay: var(--delay, 0s);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: #bfd1f2;
  box-shadow: 0 16px 34px rgba(37,99,235,.14);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.case-client {
  font-size: .7rem;
  color: #64748b;
  font-weight: 600;
}

.case-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.34;
}

.case-summary {
  margin: 11px 0 14px;
  color: #475569;
  font-size: .88rem;
  line-height: 1.68;
}

.case-points {
  display: grid;
  gap: 9px;
}

.case-points li {
  color: #334155;
  font-size: .84rem;
  line-height: 1.62;
}

.case-points strong {
  color: #0f172a;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════════════ */
.section { padding: 100px 0; }
.section-gray { background: var(--gray-50); }

.section-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 48px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--navy); max-width: 20ch; margin: 0;
}
.section-lead {
  font-size: .96rem; line-height: 1.9;
  color: var(--gray-500);
  max-width: 44ch; flex-shrink: 0; padding-top: 4px;
}

/* ══════════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .32s cubic-bezier(.25,.46,.45,.94),
              box-shadow .32s cubic-bezier(.25,.46,.45,.94);
  transition-delay: var(--delay, 0s);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
}

.service-card-img { overflow: hidden; height: 210px; }
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.service-card:hover .service-card-img img {
  transform: scale(1.09) translate(-1%, -1%);
}

.service-card-body { padding: 24px 26px 30px; }
.service-num {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--blue); background: var(--blue-50);
  border-radius: 6px; padding: 4px 10px;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.service-card-body > p {
  font-size: .88rem; color: var(--gray-500);
  line-height: 1.82; margin-bottom: 18px;
}
.service-card ul { display: grid; gap: 9px; }
.service-card li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .85rem; color: var(--gray-700); line-height: 1.55;
}
.service-card li::before {
  content: ''; display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: .58em;
}

/* ══════════════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════════════ */
.stats-section {
  background: var(--navy); padding: 88px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition-delay: var(--delay, 0s);
}
.stat-item:last-child { border-right: none; }

.stat-row {
  display: flex; align-items: baseline; gap: 3px;
  margin-bottom: 10px;
}
.stat-num {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800; color: white; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: 1.4rem; font-weight: 700;
  color: var(--blue-400);
}
.stat-label {
  font-size: .83rem; font-weight: 500;
  color: rgba(255,255,255,.42);
}

/* ══════════════════════════════════════════════════
   PROCESS / STEPS
══════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-sm);
  transition: box-shadow .26s, transform .26s;
  transition-delay: var(--delay, 0s);
}
.step-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.step-num {
  display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  color: var(--blue); background: var(--blue-50);
  border-radius: 6px; padding: 5px 12px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p  { font-size: .86rem; color: var(--gray-500); line-height: 1.8; }

/* ══════════════════════════════════════════════════
   CONTACT (dark)
══════════════════════════════════════════════════ */
.contact-section {
  background: var(--navy);
  color: white;
}
.contact-section .eyebrow         { color: var(--blue-400); }
.contact-section .section-head h2 { color: white; }
.contact-section .section-lead    { color: rgba(255,255,255,.46); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px; align-items: start;
}
.contact-panel {
  padding: 34px;
  border-radius: var(--r-2xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.contact-panel h3 {
  font-size: 1.45rem; font-weight: 700;
  color: white; margin-bottom: 10px;
}
.contact-panel > p {
  font-size: .9rem; color: rgba(255,255,255,.48);
  line-height: 1.8; margin-bottom: 24px;
}

/* Channels */
.contact-channels { display: grid; gap: 14px; margin-bottom: 24px; }
.contact-item {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.ch-label {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 6px;
}
.ch-link {
  display: block;
  font-size: 1.06rem; font-weight: 700;
  color: white; margin-bottom: 5px;
  transition: color .18s;
}
.ch-link:hover { color: var(--blue-400); }
.contact-item p { font-size: .83rem; color: rgba(255,255,255,.4); line-height: 1.7; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Info panel */
.info-panel h3 { font-size: 1.2rem; }
.info-list { display: grid; gap: 10px; margin-bottom: 20px; }
.info-list li {
  padding: 13px 15px;
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.info-list strong { display: block; font-size: .88rem; color: white; margin-bottom: 3px; }
.info-list span   { font-size: .82rem; color: rgba(255,255,255,.42); line-height: 1.65; }

.sample-msg {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(37,99,235,.32);
}
.sample-label {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 8px;
}
.sample-msg p { font-size: .86rem; color: rgba(255,255,255,.6); line-height: 1.75; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   RICH FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  background: #0b101e;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.brand-col {
  padding-right: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 24px;
}

.footer-logo img {
  width: auto;
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col .footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--blue-400);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}

.fb-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.fb-right p {
  margin: 0;
  color: rgba(255,255,255,0.4);
}

.back-to-top {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.back-to-top:hover {
  color: #fff;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .brand-col {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .fb-right {
    flex-direction: column;
    gap: 12px;
  }
}


/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame-1, .frame-2, .stat-badge,
  .frame-1 img, .frame-2 img,
  .marquee-inner { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* <= 1140px */
@media (max-width: 1140px) {
  .hero-grid  { gap: 48px; }
  .img-stack  { width: 380px; height: 460px; }
  .frame-1    { width: 270px; height: 360px; }
  .frame-2    { width: 200px; height: 255px; }
}

/* <= 960px */
@media (max-width: 960px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual      { justify-content: flex-start; }
  .img-stack        { width: 100%; max-width: 440px; height: 400px; }
  .case-grid        { grid-template-columns: 1fr; }
  .service-grid     { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .steps-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 16px; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .contact-grid     { grid-template-columns: 1fr; }
  .section-head     { flex-direction: column; gap: 16px; }
  .section-lead     { max-width: none; }
  .footer-inner     { flex-direction: column; align-items: flex-start; }
}

/* <= 768px */
@media (max-width: 768px) {
  .header-inner {
    min-height: 78px;
    padding: 10px 0;
    position: relative;
  }
  .brand-logo { height: 40px; width: auto; flex-shrink: 0; object-fit: contain; }
  .brand-words-nav-logo { height: 24px; width: auto; flex-shrink: 0; object-fit: contain; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .header-right {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--sh-md);
  }
  .site-header.nav-open .header-right { display: flex; }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    display: block;
    padding: 11px 12px;
  }
  .lang-toggle {
    width: fit-content;
  }
  .header-cta {
    width: 100%;
    padding: 12px 16px;
  }
  .hero         { padding: 60px 0 76px; }
  .section      { padding: 72px 0; }
  .stats-section { padding: 64px 0; }
  .steps-grid   { grid-template-columns: 1fr; }
}

/* <= 480px */
@media (max-width: 480px) {
  .container   { width: calc(100% - 32px); }
  .marquee-card { width: 300px; }
  .marquee-card img { height: 182px; }
  .marquee-head h2 { font-size: 1.25rem; }
  .case-card { padding: 18px 16px 20px; }
  .case-meta { flex-direction: column; align-items: flex-start; }
  .img-stack   { height: 310px; max-width: 340px; }
  .frame-1     { width: 210px; height: 280px; }
  .frame-2     { width: 160px; height: 200px; }
  .badge-1     { right: -12px; top: 44px; padding: 10px 14px; }
  .badge-2     { left: -12px;  bottom: 60px; padding: 10px 14px; }
  .badge-num   { font-size: 1.3rem; }
  .action-row .btn { flex: 1; justify-content: center; }
  .contact-panel   { padding: 22px 18px; }
}
.case-img {
  width: calc(100% + 44px);
  margin: -22px -22px 20px;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: block;
}
@media (max-width: 480px) {
  .case-img {
    width: calc(100% + 32px);
    margin: -18px -16px 16px;
    height: 180px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
}

/* ══════════════════════════════════════════════════
   CONTACT (LIGHT OVERRIDES)
══════════════════════════════════════════════════ */
.contact-section {
  background: var(--gray-50);
  color: var(--navy);
}
.contact-section .eyebrow {
  color: var(--blue-600) !important;
}
.contact-section .section-head h2 {
  color: var(--navy) !important;
}
.contact-section .section-lead {
  color: var(--gray-500) !important;
}
.contact-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.03) !important;
}
.contact-panel h3 {
  color: var(--navy) !important;
}
.contact-panel p {
  color: var(--gray-600) !important;
}
.contact-section .ch-label {
  color: var(--gray-500) !important;
}
.contact-section .ch-link {
  color: var(--blue-600) !important;
}
.contact-section .ch-link:hover {
  color: var(--blue-800) !important;
}
.contact-section .info-list li span {
  color: var(--gray-500) !important;
}

/* Form Styles appended */
.form-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--navy);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
}
.submit-btn,
.subscribe-btn {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 16px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.submit-btn {
  background: var(--blue-600);
  color: white;
}
.submit-btn:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   TIMELINE (WORKFLOW) OVERRIDES
══════════════════════════════════════════════════ */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-200) 0%, var(--blue-400) 50%, var(--blue-200) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 30px 50px;
  box-sizing: border-width;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item:hover {
  transform: translateY(-8px);
}

.timeline-dot {
  position: absolute;
  top: 36px;
  width: 44px;
  height: 44px;
  background: white;
  border: 3px solid var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blue-600);
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.timeline-item.left .timeline-dot {
  right: -22px;
}
.timeline-item.right .timeline-dot {
  left: -22px;
}

.timeline-item:hover .timeline-dot {
  background: var(--blue-600);
  color: white;
  transform: scale(1.1);
}

.timeline-content {
  background: white;
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.04);
  border: 1px solid #eef2f6;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 16px 40px rgba(37,99,235,0.08);
  border-color: #dbeafe;
}

.timeline-item.left .timeline-content::after {
  content: '';
  position: absolute;
  top: 42px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid #eef2f6;
  border-right: 1px solid #eef2f6;
}
.timeline-item.right .timeline-content::after {
  content: '';
  position: absolute;
  top: 42px;
  left: -10px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  border-bottom: 1px solid #eef2f6;
  border-left: 1px solid #eef2f6;
}

.timeline-item:hover .timeline-content::after {
  border-color: #dbeafe;
}

.timeline-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.timeline-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline-line {
    left: 22px;
    transform: none;
  }
  .timeline-item {
    width: 100%;
    padding: 20px 0 20px 60px;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0;
    right: auto;
  }
  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::after {
    left: -10px;
    right: auto;
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #eef2f6;
    border-left: 1px solid #eef2f6;
  }
}

/* ══════════════════════════════════════════════════
   SERVICES FLOW (ALTERNATING ZIG-ZAG DESIGN)
══════════════════════════════════════════════════ */
.service-flows {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-top: 60px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.sr-content {
  flex: 1;
}

.sr-num {
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.sr-media {
  flex: 1;
  position: relative;
}

.sr-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15,23,42,0.1);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.sr-img-wrapper:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 40px 60px rgba(37,99,235,0.15);
}

.sr-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.sr-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.sr-content p {
  color: var(--gray-600);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.sr-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sr-content ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 500;
  font-size: 1.05rem;
}

.sr-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 5l-9 9-4-4" stroke="%232563eb" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* Animations */
.fade-scale {
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInScale 0.8s forwards ease-out;
  animation-delay: 0.1s;
}

.float-in {
  transform: translateY(30px);
  opacity: 0;
  animation: floatUp 0.8s forwards ease-out;
  animation-delay: 0.3s;
}

@keyframes fadeInScale {
  to { transform: scale(1); opacity: 1; }
}

@keyframes floatUp {
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .service-row, .service-row.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .sr-img-wrapper img {
    height: 380px;
  }
  .sr-content ul li::before {
    left: 50%;
    transform: translateX(-16px);
    margin-left: -120px; /* offset to left align bullet text depending on text length */
    opacity: 0.3; /* generic fallback for centered ul */
    display: none;
  }
  .sr-content ul li {
    padding-left: 0;
  }
}
@media (max-width: 480px) {
  .service-flows { gap: 60px; }
  .sr-img-wrapper img { height: 260px; }
  .sr-content h3 { font-size: 1.75rem; }
  .sr-num { margin-bottom: 16px; }
}


/* ══════════════════════════════════════════════════
   ABOUT US SECTION (Company Profile)
══════════════════════════════════════════════════ */
.about-section {
  background-color: var(--white);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.about-header {
  flex: 1;
  position: sticky;
  top: 100px; /* makes it nicely scroll dynamically along with the right list */
}

.about-header h2 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.about-capabilities {
  flex: 1;
}

.cap-title {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cap-list li {
  position: relative;
  overflow: hidden;
  padding: 24px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.4s ease;
}

.cap-text {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.4s ease;
}

.cap-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-600);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.cap-list li:hover {
  border-color: var(--blue-600);
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
  transform: translateX(10px);
}

.cap-list li:hover .cap-bg {
  transform: translateY(0);
}

.cap-list li:hover .cap-text {
  color: var(--white);
}

@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    gap: 50px;
  }
  .about-header {
    position: relative;
    top: 0;
  }
}
@media (max-width: 480px) {
  .about-header h2 { font-size: 2rem; }
  .cap-list li { padding: 18px 20px; }
  .cap-text { font-size: 1.1rem; }
}


/* ══════════════════════════════════════════════════
   ABOUT US SECTION (Company Profile)
══════════════════════════════════════════════════ */
.about-section {
  background-color: var(--white);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.about-header {
  flex: 1;
  position: sticky;
  top: 100px; /* makes it nicely scroll dynamically along with the right list */
}

.about-header h2 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.about-capabilities {
  flex: 1;
}

.cap-title {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cap-list li {
  position: relative;
  overflow: hidden;
  padding: 24px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.4s ease;
}

.cap-text {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.4s ease;
}

.cap-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-600);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.cap-list li:hover {
  border-color: var(--blue-600);
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
  transform: translateX(10px);
}

.cap-list li:hover .cap-bg {
  transform: translateY(0);
}

.cap-list li:hover .cap-text {
  color: var(--white);
}

@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    gap: 50px;
  }
  .about-header {
    position: relative;
    top: 0;
  }
}
@media (max-width: 480px) {
  .about-header h2 { font-size: 2rem; }
  .cap-list li { padding: 18px 20px; }
  .cap-text { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════
   CLEAN CASE PORTFOLIO (REFACTORED)
══════════════════════════════════════════════════ */
.clean-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.clean-case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: var(--delay, 0s);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.clean-case-card:hover {
  box-shadow: 0 20px 40px rgba(37,99,235,0.1);
  transform: translateY(-8px);
  border-color: var(--blue-200);
}

.cc-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.cc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clean-case-card:hover .cc-img-wrap img {
  transform: scale(1.05);
}

.cc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  color: var(--blue-600);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cc-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-content h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cc-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.cc-content p strong {
  color: var(--blue-600);
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .clean-case-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .clean-case-grid { grid-template-columns: 1fr; }
  .cc-img-wrap { height: 210px; }
}

/* ══════════════════════════════════════════════════
   CLEAN CASE PORTFOLIO (REFACTORED)
══════════════════════════════════════════════════ */
.clean-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.clean-case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: var(--delay, 0s);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.clean-case-card:hover {
  box-shadow: 0 20px 40px rgba(37,99,235,0.1);
  transform: translateY(-8px);
  border-color: var(--blue-200);
}

.cc-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.cc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clean-case-card:hover .cc-img-wrap img {
  transform: scale(1.05);
}

.cc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  color: var(--blue-600);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cc-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-content h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cc-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.cc-content p strong {
  color: var(--blue-600);
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .clean-case-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .clean-case-grid { grid-template-columns: 1fr; }
  .cc-img-wrap { height: 210px; }
}

/* ══════════════════════════════════════════════════
   EXPERTISE MODAL
══════════════════════════════════════════════════ */
.cap-icon {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--blue-400);
  transition: color 0.4s ease, transform 0.4s ease;
}

.cap-list li:hover .cap-icon {
  color: var(--white);
  transform: translate(4px, -50%);
}

.expertise-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.expertise-modal.active {
  pointer-events: auto;
  opacity: 1;
}

.em-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.em-content {
  position: relative;
  background: var(--white);
  width: 90%;
  max-width: 580px;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.expertise-modal.active .em-content {
  transform: translateY(0) scale(1);
}

.em-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--blue-50);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--blue-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.em-close:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: rotate(90deg);
}

.em-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.em-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.em-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 32px;
}

.em-stat-box {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.em-stat-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.em-stat-label {
  font-size: 0.95rem;
  color: var(--blue-200);
  font-weight: 500;
}

@media (max-width: 640px) {
  .em-content { padding: 32px 24px; }
  .em-title { font-size: 1.5rem; }
  .em-stat-val { font-size: 2.4rem; }
}

/* ══════════════════════════════════════════════════
   RICH FORM GROUPS (TITLE, PARAGRAPH, INPUT)
══════════════════════════════════════════════════ */
.form-rich-group {
  margin-bottom: 30px;
  text-align: left;
}

.frg-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.frg-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.form-rich-group input,
.form-rich-group select,
.form-rich-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--navy);
  transition: all 0.3s ease;
}

.form-rich-group input:focus,
.form-rich-group select:focus,
.form-rich-group textarea:focus {
  border-color: var(--blue-400);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.frg-split {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .frg-split { flex-direction: column; }
}

/* =========================================================================
   Unified Subscription Block (Replaces Contact/Newsletter)
   ========================================================================= */

.unified-subscription {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgwLCAwLCAwLCAwLjAzKSIvPjwvc3ZnPg==');
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  color: #1a202c;
  box-shadow: 0 20px 40px rgba(0, 83, 204, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(0, 83, 204, 0.1);
  position: relative;
  overflow: hidden;
}

.unified-subscription::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(0, 83, 204, 0.05), transparent 50%),
              radial-gradient(circle at bottom left, rgba(0, 198, 255, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.subs-content {
  position: relative;
  z-index: 1;
}

.subs-eyebrow {
  display: inline-block;
  background: rgba(0, 83, 204, 0.1);
  color: #0053cc;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.unified-subscription h2 {
  font-size: 2.2rem;
  color: #0b101e;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subs-lead {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.unified-subs-form {
  max-width: 640px;
  margin: 0 auto;
}

.subs-input-group {
  display: flex;
  background: #fff;
  border-radius: 60px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.subs-input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(0, 83, 204, 0.15);
  border-color: rgba(0, 83, 204, 0.3);
  transform: translateY(-2px);
}

.subs-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.subs-input-wrapper svg {
  color: #8c98a4;
  margin-right: 12px;
  flex-shrink: 0;
}

.subs-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1.05rem;
  color: #1a1a1a;
  outline: none;
}

.subs-input-wrapper input::placeholder {
  color: #a0aec0;
}

.subs-btn {
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 83, 204, 0.3);
}

.subs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 83, 204, 0.4);
}

.subs-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(11, 16, 30, 0.5);
}

.subs-footer-text svg {
  color: #0053cc;
}

@media (max-width: 768px) {
  .unified-subscription {
    padding: 40px 20px;
  }
  
  .unified-subscription h2 {
    font-size: 1.8rem;
  }
  
  .subs-input-group {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  
  .subs-input-group:focus-within {
    box-shadow: none;
    transform: none;
  }
  
  .subs-input-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  .subs-btn {
    width: 100%;
    border-radius: 12px;
    padding: 16px;
  }
}

.expertise-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.expertise-item:hover {
  transform: translateX(8px);
}

.expertise-item:hover .cap-bg {
  background: var(--blue-600);
}

.expertise-item:hover .cap-text {
  color: var(--white);
}

.em-header {
  margin-bottom: 24px;
}

.em-title {
  font-size: 1.8rem;
  color: var(--gray-900);
  margin-top: 8px;
  line-height: 1.3;
}

.em-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 32px;
}

.em-stats-highlight {
  display: flex;
  align-items: center;
  background: var(--blue-50);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--blue-100);
}

.stat-icon {
  color: var(--blue-600);
  margin-right: 20px;
}

.em-stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.em-stat-label {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .em-content {
    padding: 32px 24px;
  }
  .em-title {
    font-size: 1.5rem;
  }
}

.expertise-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px !important;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 20px rgba(0, 83, 204, 0.1);
  border-color: rgba(0, 83, 204, 0.2);
}

.cap-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
}

.cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 83, 204, 0.08);
  color: #0053cc;
  transition: all 0.3s ease;
}

.expertise-item:hover .cap-icon {
  background: #0053cc;
  color: #fff;
  transform: rotate(-45deg);
}


.cap-list li {
  position: relative;
  overflow: hidden;
  padding: 24px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.cap-text {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.4s ease;
}

.cap-icon {
  position: relative;
  z-index: 2;
  color: var(--blue-600);
  background: rgba(255,255,255,0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cap-list li:hover .cap-icon {
  background: var(--white);
  color: var(--blue-600);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cap-list li:hover {
  border-color: var(--blue-600);
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
  transform: translateX(10px);
}

.cap-list li:hover .cap-bg {
  transform: translateY(0);
}

.cap-list li:hover .cap-text {
  color: var(--white);
}

@media (max-width: 992px) {
  .clean-case-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .clean-case-grid {
    grid-template-columns: 1fr !important;
  }
}
