/* ID Bazaar — site styles */
:root {
  --blue: #1d2ba3;
  --blue-dark: #121a6b;
  --blue-ink: #0b1040;
  --orange: #f39a1f;
  --orange-dark: #d9800a;
  --ink: #161a2e;
  --muted: #5b6178;
  --line: #e4e7f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 64, .06), 0 8px 24px rgba(16, 24, 64, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 64, .18);
  --max: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--blue-ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--blue-ink); box-shadow: 0 6px 18px rgba(243, 154, 31, .35); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; translate: -110% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
}
.btn-primary:hover::after { translate: 110% 0; transition: translate .7s ease; }
.btn-primary:hover { background: var(--orange-dark); color: var(--blue-ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb957; color: #fff; }

/* Top bar + header */
.topbar { background: var(--blue-ink); color: #c9cdf0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span + span { margin-left: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(16,24,64,.06); }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--blue)); transform-origin: left; transform: scaleX(var(--p, 0));
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .97rem; padding: 8px 14px; border-radius: 999px; }
.nav-links a:not(.btn):hover { background: var(--bg-soft); color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); background: #eceffd; }
.nav-links .btn { margin-left: 8px; padding: .65em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue-ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(16,24,64,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 14px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(243,154,31,.18), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(29,43,163,.10), transparent 60%),
    var(--bg-soft);
  padding: 80px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: #e7eafc; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 .accent { color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--orange); opacity: .55; z-index: -1; border-radius: 4px;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: #16a34a; flex: none; }

/* Hero card stack: ID cards hanging from lanyards (pure CSS) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' fill='none' stroke-width='1.2'%3E%3Cpath stroke='rgba(29,43,163,.09)' d='M0 60C50 20 100 20 150 60S250 100 300 60S400 20 450 60S550 100 600 60'/%3E%3Cpath stroke='rgba(243,154,31,.14)' d='M0 60C50 100 100 100 150 60S250 20 300 60S400 100 450 60S550 20 600 60'/%3E%3Cpath stroke='rgba(29,43,163,.06)' d='M0 30C75 0 75 0 150 30S225 60 300 30S375 0 450 30S525 60 600 30M0 90C75 120 75 120 150 90S225 60 300 90S375 120 450 90S525 60 600 90'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  animation: guilloche 60s linear infinite;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes guilloche { to { background-position: 600px 0; } }

.card-stack { position: relative; height: 420px; }
.hang {
  --strap: 300px; --base: 0deg; --t: 0s;
  position: absolute; width: 270px; perspective: 1100px;
  transform-origin: 50% calc(var(--strap) * -1);
  rotate: var(--base);
  animation: drop 1.1s cubic-bezier(.3,1.35,.5,1) var(--t) both, swing 5s ease-in-out calc(var(--t) + 1.1s) infinite alternate;
}
/* Lanyard strap + metal clip */
.hang::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% - 6px); width: 22px; height: var(--strap); translate: -50% 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px calc(100% - 2px), rgba(255,255,255,.35) calc(100% - 2px)),
    var(--strap-c, var(--blue));
  -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent);
  mask-image: linear-gradient(0deg, #000 55%, transparent);
}
.hang::after {
  content: ""; position: absolute; left: 50%; top: -14px; width: 30px; height: 26px; translate: -50% 0; z-index: 2;
  border-radius: 6px 6px 4px 4px; background: linear-gradient(180deg, #e9ebf2, #a9afc2); box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.hang.c1 { --base: -5deg; --t: .1s; --strap-c: var(--orange); left: 6%; top: 40px; animation-duration: 1.1s, 5.6s; }
.hang.c2 { --base: 4deg; --t: .4s; right: 4%; top: 0; z-index: 2; }
@keyframes drop { from { translate: 0 -130%; } }
@keyframes swing { from { rotate: calc(var(--base) - 2.5deg); } to { rotate: calc(var(--base) + 2.5deg); } }

.id-card {
  position: relative; width: 100%; aspect-ratio: 54 / 86; cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.id-card.flipped { --flip: 180deg; }
.face {
  position: absolute; inset: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* Holographic sheen */
.face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 45%, rgba(160,190,255,.35) 50%, rgba(255,205,140,.3) 55%, transparent 65%);
  background-size: 300% 100%; background-position: 120% 0;
  animation: holo 7s ease-in-out calc(var(--t) + 2.4s) infinite;
}
@keyframes holo { 0%, 55% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.back { transform: rotateY(180deg); }

.id-card .band { width: 100%; height: 34%; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); position: relative; flex: none; }
.id-card .band::after { content: ""; position: absolute; inset: auto -20% -40% 30%; height: 80%; border-radius: 50%; border: 10px solid var(--orange); opacity: .9; }
.id-card .slot { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 54px; height: 9px; border-radius: 9px; background: rgba(255,255,255,.85); z-index: 1; }
.id-card .back .slot { background: #e4e7f0; }
.id-card .photo {
  width: 92px; height: 92px; border-radius: 50%; margin-top: -48px; z-index: 1; flex: none;
  border: 5px solid #fff; background: linear-gradient(160deg, #dfe4fb, #b9c2f2);
  display: grid; place-items: center; color: var(--blue);
}
.id-card .photo svg { width: 52px; height: 52px; }
.id-card .name { margin-top: 14px; font-weight: 800; color: var(--blue-ink); font-size: 1.05rem; }
.id-card .role { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.id-card .lines { width: 72%; margin-top: 18px; display: grid; gap: 8px; }
.id-card .lines i { display: block; height: 8px; border-radius: 6px; background: #eceef5; transform-origin: left; }
.id-card .lines i:nth-child(2) { width: 80%; }
.id-card .lines i:nth-child(3) { width: 60%; }
.id-card .barcode { margin-top: auto; margin-bottom: 18px; width: 70%; height: 30px; flex: none;
  background: repeating-linear-gradient(90deg, var(--blue-ink) 0 2px, transparent 2px 4px, var(--blue-ink) 4px 5px, transparent 5px 8px); opacity: .8; }
.c1 .band { background: linear-gradient(135deg, #f39a1f, #e0730b); }
.c1 .band::after { border-color: var(--blue); }

/* "Printing" the card face after it drops in */
.front .band { transform-origin: top; animation: print-band .5s ease-out calc(var(--t) + .5s) both; }
.front .photo { animation: pop .45s cubic-bezier(.3,1.6,.5,1) calc(var(--t) + .85s) both; }
.front .name { animation: rise .4s ease-out calc(var(--t) + 1.05s) both; }
.front .role { animation: rise .4s ease-out calc(var(--t) + 1.15s) both; }
.front .lines i { animation: grow .4s ease-out calc(var(--t) + 1.25s) both; }
.front .lines i:nth-child(2) { animation-delay: calc(var(--t) + 1.33s); }
.front .lines i:nth-child(3) { animation-delay: calc(var(--t) + 1.41s); }
.front .barcode { animation: wipe .6s ease-out calc(var(--t) + 1.5s) both; }
@keyframes print-band { from { scale: 1 0; } }
@keyframes pop { from { scale: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }
@keyframes grow { from { scale: 0 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }

/* Card back: magnetic stripe, signature panel, QR / chip */
.back .stripe { width: 100%; height: 42px; margin-top: 36px; background: linear-gradient(180deg, #23283f, #0e1226); flex: none; }
.back .sig {
  width: 78%; margin-top: 16px; height: 30px; border-radius: 4px; padding: 0 6px; display: flex; align-items: flex-end; flex: none;
  background: repeating-linear-gradient(-45deg, #f3f4f8 0 6px, #e8eaf2 6px 12px);
  font-size: .58rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.back .qr { width: 92px; height: 92px; margin-top: 18px; flex: none; }
.back .chip {
  width: 50px; height: 40px; margin-top: 20px; border-radius: 8px; flex: none;
  background:
    linear-gradient(90deg, transparent 32%, rgba(120,80,10,.35) 32% 34%, transparent 34% 66%, rgba(120,80,10,.35) 66% 68%, transparent 68%),
    linear-gradient(180deg, transparent 48%, rgba(120,80,10,.35) 48% 52%, transparent 52%),
    linear-gradient(135deg, #f7dc96, #c9973a);
}
.back .return { margin: auto 18px 18px; font-size: .7rem; line-height: 1.45; text-align: center; color: var(--muted); font-weight: 600; }

.chip-tag {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--blue-ink);
  animation: pop .5s cubic-bezier(.3,1.6,.5,1) 1.9s both, bob 4s ease-in-out 2.4s infinite alternate;
}
.chip-tag.t2 { animation-delay: 2.1s, 3.4s; }
@keyframes bob { to { translate: 0 -8px; } }
.chip-tag small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.chip-tag .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff4e3; color: var(--orange-dark); }
.chip-tag .ic svg { width: 20px; height: 20px; }
/* RFID waves pulse outward */
.chip-tag.t1 .ic path { animation: wave 1.8s ease-in-out infinite; }
.chip-tag.t1 .ic path:nth-child(2) { animation-delay: .2s; }
.chip-tag.t1 .ic path:nth-child(3) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { opacity: .2; } 35% { opacity: 1; } }
.chip-tag.t1 { left: 0; bottom: 34px; }
.chip-tag.t2 { right: 0; bottom: 90px; }
.chip-tag.t2 .ic { background: #e7eafc; color: var(--blue); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-stack { height: 470px; max-width: 460px; width: 100%; margin: 40px auto 0; }
  .hang { --strap: 70px; }
}
@media (max-width: 480px) {
  .hang { width: 210px; }
  .card-stack { height: 390px; }
  .chip-tag.t2 { bottom: 40px; }
  .chip-tag.t1 { bottom: 0; }
  .back .stripe { margin-top: 30px; height: 34px; }
  .back .qr { width: 70px; height: 70px; }
}

/* Stats strip */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat { padding: 26px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.left { margin-left: 0; text-align: left; }
@media (max-width: 640px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Product cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.grid-3 > article.card { position: relative; overflow: hidden; }
.grid-3 > article.card::before {
  content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 46px; height: 7px; border-radius: 7px;
  background: var(--bg-soft); box-shadow: inset 0 1px 2px rgba(16,24,64,.18);
}
.grid-3 > article.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; translate: -110% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(243,154,31,.10) 42%, rgba(255,255,255,.8) 50%, rgba(120,150,255,.12) 58%, transparent 70%);
}
.grid-3 > article.card:hover::after { translate: 110% 0; transition: translate .9s ease; }
.grid-3 > article.card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #e7eafc; color: var(--blue); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.icon.orange { background: #fff1dc; color: var(--orange-dark); }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--blue); background: #eef0fd; padding: 3px 10px; border-radius: 999px; margin-top: 14px; }

/* Use chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange), #ffc46b); z-index: -1;
}
.split-media { isolation: isolate; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--blue); background: #e7eafc; border-radius: 50%; padding: 4px; margin-top: 1px; }
.checklist strong { display: block; color: var(--blue-ink); }
.checklist span { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .split-media::before { inset: 16px -10px -10px 16px; }
}

/* Industries */
.industry { text-align: center; padding: 26px 16px; }
.industry .icon { margin: 0 auto 12px; }
.industry h3 { font-size: 1rem; margin: 0; }
.industry .icon { position: relative; overflow: hidden; }
.industry .icon::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 2px; border-radius: 2px; opacity: 0;
  background: var(--orange); box-shadow: 0 0 8px 2px rgba(243,154,31,.6);
}
.industry:hover .icon::after { opacity: 1; animation: scan 1.1s ease-in-out infinite; }
@keyframes scan { 50% { top: calc(100% - 6px); } }

/* Clients marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: scroll 60s linear infinite; padding: 8px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee + .marquee { margin-top: 20px; }
.logo-tile {
  width: 170px; height: 150px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: grid; grid-template: 100% / 100%; place-items: center; padding: 14px;
}
.logo-tile { transition: transform .2s ease, box-shadow .2s ease; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-tile img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.logo-tile--wide { width: 260px; }
.logo-tile--dark { background: var(--blue-ink); border-color: var(--blue-ink); }
.logo-tile--text { text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--blue-dark); }
.logo-tile--text small { display: block; margin-top: 4px; font-weight: 500; font-size: .8rem; color: var(--muted); }
@keyframes scroll { to { transform: translateX(calc(-50% - 10px)); } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 28px; font-size: 2.4rem; font-weight: 800; color: var(--orange); opacity: .9; line-height: 1;
}
.step.card { padding-top: 76px; }
.step.card::before { top: 26px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 60%, #3442c4 100%);
  color: #fff; border-radius: 24px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid var(--orange); opacity: .25; }
.cta-band::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  translate: -100% 0; animation: sweep 6s ease-in-out 1s infinite;
}
@keyframes sweep { 0% { translate: -100% 0; } 35%, 100% { translate: 260% 0; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d6dafa; margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; } }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--blue-ink) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 48px solid var(--orange); opacity: .22; }
.page-hero::before {
  content: ""; position: absolute; right: 14%; top: 50%; width: 140px; aspect-ratio: 54 / 86; margin-top: -110px;
  border: 2px solid rgba(255,255,255,.2); border-radius: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.16) 0 22px, transparent 23px), linear-gradient(180deg, rgba(255,255,255,.10) 0 32%, transparent 32%);
  rotate: 12deg; animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { to { translate: 0 -14px; rotate: 6deg; } }
@media (max-width: 760px) { .page-hero::before { display: none; } }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d6dafa; font-size: 1.12rem; max-width: 640px; margin: 0; }
.crumbs { font-size: .88rem; color: #aab2ef; margin-bottom: 14px; }
.crumbs a { color: #fff; }

/* Prose */
.prose p { color: #3a3f55; }
.prose h2 { margin-top: 0; }
.lead-lg { font-size: 1.2rem; color: var(--ink) !important; font-weight: 500; }

/* Service detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/3; display: grid; place-items: center; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media .icon { width: 84px; height: 84px; border-radius: 22px; margin: 0; }
.service-media .icon svg { width: 42px; height: 42px; }
.service h2 { font-size: 1.6rem; }
.service p { color: #3a3f55; }
.service ul { padding-left: 1.2em; color: #3a3f55; columns: 2; column-gap: 32px; margin: 0; }
.service ul li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 20px; } .service ul { columns: 1; } }

.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius-sm);
  background: #fff7ea; border: 1px solid #fde1b5; color: #6b4a12; font-size: .97rem;
}
.note svg { width: 22px; height: 22px; flex: none; color: var(--orange-dark); margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-list .icon { margin: 0; flex: none; width: 46px; height: 46px; }
.contact-list strong { display: block; color: var(--blue-ink); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.6rem; }
.form > p { color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink); width: 100%; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field input:user-invalid { border-color: #dc2626; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* Footer */
.site-footer { background: var(--blue-ink); color: #b9bfe6; padding: 72px 0 0; margin-top: 96px; font-size: .95rem; }
.site-footer.flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9bfe6; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--orange); color: var(--blue-ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.card.reveal:not(.in) { transform: translateY(32px) rotate(-2.5deg) scale(.96); }
.reveal.in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .hang { rotate: var(--base); }
}

@media (max-width: 620px) {
  .stat { padding: 20px 12px; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .82rem; }
  .grid-4:has(.industry) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .industry { padding: 20px 10px; }
}
