/* ==========================================================================
   INPAM TEKNO — landing page
   Plain CSS. Tailwind's browser build only compiles the inline
   <style type="text/tailwindcss"> block, so component classes live here
   as ordinary CSS rather than @apply.
   ========================================================================== */

:root {
  --brand-50:  #ecfdf3;
  --brand-100: #d1fadf;
  --brand-200: #a6f4c5;
  --brand-300: #6ce9a6;
  --brand-400: #32d583;
  --brand-500: #12b76a;
  --brand-600: #039855;
  --brand-700: #027a48;
  --brand-900: #14361a;

  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
}

/* --------------------------------------------------------------- decorative */

.text-gradient {
  background: linear-gradient(100deg, var(--brand-600), var(--brand-400) 55%, var(--brand-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* faint dot grid, fading out toward the edges */
.bg-grid {
  background-image: radial-gradient(circle, rgba(15, 23, 42, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* soft colour blobs behind the hero */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.blob-a {
  top: -6rem; left: -6rem;
  width: 28rem; height: 28rem;
  background: rgba(50, 213, 131, .18);
  animation: drift 18s ease-in-out infinite;
}
.blob-b {
  top: 20%; right: -8rem;
  width: 24rem; height: 24rem;
  background: rgba(3, 152, 85, .12);
  animation: drift 22s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(2rem, 1.5rem) scale(1.08); }
}

.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ------------------------------------------------- hero checkout mockup */

.hero-visual {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 26rem;
}

.node-graph {
  position: absolute;
  inset: -12% -8% auto -8%;
  width: 116%;
  color: var(--brand-400);
  opacity: .35;
  z-index: -1;
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mock-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  box-shadow: 0 40px 80px -32px rgba(15, 23, 42, .35);
}

/* slow diagonal light sweep across the card */
.mock-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 65%  { transform: translateX(-100%); }
  100%     { transform: translateX(100%); }
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 1.5rem;
}
.mock-mark {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border: 3px solid var(--brand-500);
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.mock-secure {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 9999px;
  background: var(--brand-50);
  padding: .25rem .6rem;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--brand-700);
}

.mock-tabs {
  display: flex;
  gap: .5rem;
  padding: 1.25rem 1.5rem 0;
}
.mock-tab {
  flex: 1;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  padding: .5rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate-500);
}
.mock-tab.is-on {
  border-color: transparent;
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(3, 152, 85, .7);
}

.mock-qr {
  height: 6.5rem;
  width: 6.5rem;
  flex-shrink: 0;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  padding: .35rem;
  color: var(--brand-900);
}

.mock-timer {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .625rem;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--brand-700);
}

.mock-banks {
  margin: 1.25rem 1.5rem 0;
  border-top: 1px solid var(--slate-200);
}
.mock-banks li {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--slate-200);
  padding: .75rem 0;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--slate-600);
}
.mock-banks li:last-child { border-bottom: 0; }
.mock-bank-ico {
  display: inline-flex;
  height: 1.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: #f1f5f9;
  font-size: .625rem;
  font-weight: 800;
  color: var(--slate-900);
}
.mock-arrow { margin-left: auto; color: var(--brand-500); font-weight: 700; }

.mock-btn {
  border-radius: 9999px;
  background: var(--brand-600);
  padding: .8125rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(3, 152, 85, .8);
}

/* floating chips over the hero image */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, .9);
  padding: .5rem .9rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate-900);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
/* Chips hang off the card's corners rather than sitting on top of it — any
   inset overlaps the checkout content behind them. */
.chip-tl { top: -1.15rem;    left: -1.25rem;  animation: floaty 7s ease-in-out infinite; }
.chip-br { bottom: -1.15rem; right: -1.25rem; animation: floaty 8s ease-in-out infinite reverse; }
.dot { height: .5rem; width: .5rem; border-radius: 9999px; flex-shrink: 0; }

/* Keep the bleed inside the viewport on small screens. */
@media (max-width: 640px) {
  .chip { font-size: .6875rem; padding: .4rem .75rem; }
  .chip-tl { left: -.25rem; }
  .chip-br { right: -.25rem; }
}

/* particles canvas must never eat clicks */
#particles-js canvas { display: block; }
#particles-js { pointer-events: none; }

/* ------------------------------------------------------------------ navbar */

#navbar.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, .2);
}

.nav-link {
  position: relative;
  display: block;
  border-radius: .5rem;
  padding: .5rem .9rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--brand-700); }
.nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--brand-700); }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.mobile-menu.is-open {
  max-height: 30rem;
  opacity: 1;
  padding-bottom: .75rem;
}
.mobile-link {
  display: block;
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: background-color .2s ease, color .2s ease;
}
.mobile-link:hover,
.mobile-link.is-active { background: var(--brand-50); color: var(--brand-700); }

/* ------------------------------------------------------------------ buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .875rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(3, 152, 85, .5);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(3, 152, 85, .6); }
.btn-ghost {
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-900);
}
.btn-ghost:hover { border-color: var(--brand-300); background: var(--brand-50); transform: translateY(-2px); }

/* --------------------------------------------------------------- typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  height: 1px;
  width: 1.75rem;
  background: var(--brand-400);
}
.eyebrow.justify-center { justify-content: center; }

/* ----------------------------------------------------------------- surfaces */

.card,
.feature {
  border-radius: 1.5rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover,
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .18);
}
.card-title { margin-top: 1.25rem; font-size: 1.0625rem; font-weight: 700; color: var(--slate-900); }
.card-body  { margin-top: .625rem; font-size: .875rem; line-height: 1.7; color: var(--slate-500); }

.icon-box {
  display: inline-flex;
  height: 3rem; width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: .875rem;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.card:hover .icon-box,
.feature:hover .icon-box {
  background: var(--brand-600);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

/* checklist */
.check {
  position: relative;
  padding-left: 1.9rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--slate-600);
}
.check::before {
  content: "";
  position: absolute;
  left: 0; top: .1rem;
  height: 1.25rem; width: 1.25rem;
  border-radius: 9999px;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23039855' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / .75rem no-repeat;
}

/* walletlink modules */
.pill {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: .875rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: .875rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-900);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.pill:hover { transform: translateX(4px); border-color: var(--brand-300); background: var(--brand-50); }
.pill-dot {
  height: .5rem; width: .5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .18);
}

/* Stats. DOM order is <dt> then <dd> to satisfy the HTML spec; column-reverse
   flips them so the number still reads above its label. */
.stat {
  display: flex;
  flex-direction: column-reverse;
  border-radius: 1.25rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
.hero-stat { display: flex; flex-direction: column-reverse; }
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--brand-600); line-height: 1.1; }
.stat-label { margin-top: .375rem; font-size: .75rem; font-weight: 500; color: var(--slate-500); }

/* partners */
.partner-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.partner-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .18);
}
.partner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--slate-200);
  padding: 1.25rem 1.5rem;
}
.partner-img {
  width: 100%;
  padding: 1.5rem;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}
.partner-card:hover .partner-img { filter: grayscale(0); opacity: 1; transform: scale(1.02); }

.badge {
  display: inline-block;
  border-radius: 9999px;
  background: var(--brand-50);
  padding: .3rem .7rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
}

/* offices */
.office {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.office:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .18); }
.office-img {
  height: 9rem;
  width: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.office:hover .office-img { transform: scale(1.05); }

.contact-line {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--slate-600);
  transition: color .2s ease;
}
.contact-line:hover { color: var(--brand-700); }

/* -------------------------------------------------------------------- forms */

.label {
  display: block;
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--slate-900);
}
.input {
  width: 100%;
  border-radius: .875rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: .8125rem 1rem;
  font-size: .9375rem;
  color: var(--slate-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: #94a3b8; }
.input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(18, 183, 106, .14);
}
.input.is-invalid { border-color: #ef4444; }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }

.error {
  margin-top: .375rem;
  font-size: .75rem;
  font-weight: 500;
  color: #dc2626;
  min-height: 1rem;
}

/* ------------------------------------------------------------------- footer */

.foot-link { color: inherit; transition: color .2s ease; }
.foot-link:hover { color: #fff; }

/* PSE registration badge (links to the Komdigi registry) */
.pse-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  padding: .75rem 1rem;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
a.pse-badge:hover {
  border-color: var(--brand-500);
  background: rgba(18, 183, 106, .08);
  transform: translateY(-2px);
}
/* Informational badge (no link target yet) — no hover lift, default cursor. */
.pse-badge-static { cursor: default; }

/* Blank line for a number to be typed in by hand later. */
.pse-fill {
  display: inline-block;
  min-width: 6.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .45);
}
.pse-icon {
  display: inline-flex;
  flex-shrink: 0;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: .625rem;
  background: rgba(18, 183, 106, .15);
  color: var(--brand-400);
}
.pse-title {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
}
.pse-sub {
  display: block;
  margin-top: .1rem;
  font-size: .6875rem;
  line-height: 1.3;
  color: #94a3b8;
}
.pse-out {
  height: .875rem;
  width: .875rem;
  flex-shrink: 0;
  color: #64748b;
  transition: color .25s ease;
}
.pse-badge:hover .pse-out { color: var(--brand-400); }

/* ------------------------------------------------------- focus + reveal + a11y */

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: .5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

#toTop.is-visible { display: flex; }

/* Respect users who ask for less motion: kill every ambient animation and
   make revealed content visible immediately. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .blob, .float-slow, .chip, .node-graph { animation: none; }
  .mock-shine { display: none; }
}
