/**
 * Kimss marketing v2 — HUD command-center polish.
 * Layers on kimss-site.css + landing-walkthrough.css without replacing them.
 * Tokens live in kimss-site.css only (violet primary + hero-blue accent).
 */

/* Emil: press feedback on marketing buttons */
.au-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}

/* HUD bracket utility */
.au-hud-panel {
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.07), transparent 48%),
    rgba(17, 26, 46, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.au-hud-panel::before,
.au-hud-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(129, 140, 248, 0.55);
  border-style: solid;
  pointer-events: none;
}
.au-hud-panel::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}
.au-hud-panel::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

/* ── Product showcase (real UI frame) ─────────────────────── */
.wt-product {
  border-top: none;
  border-bottom: none;
  background:
    linear-gradient(180deg, var(--au-bg) 0%, transparent 20%),
    linear-gradient(0deg, var(--au-bg) 0%, transparent 18%),
    radial-gradient(90% 70% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 58%),
    var(--au-bg-2);
}

.wt-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .wt-product-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.wt-product-copy .wt-section-lede {
  margin-bottom: 1.25rem;
}

.wt-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  list-style: none;
  padding: 0;
}

.wt-product-stats li {
  font-family: var(--au-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.06);
}

.wt-product-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transform: none;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.28),
    0 24px 64px rgba(11, 18, 32, 0.55),
    0 0 64px rgba(91, 140, 255, 0.06);
  transition: transform 0.45s var(--au-ease), box-shadow 0.45s var(--au-ease);
}

.wt-product-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.4),
    0 28px 68px rgba(11, 18, 32, 0.62),
    0 0 80px rgba(91, 140, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .wt-product-frame,
  .wt-product-frame:hover {
    transform: none;
  }
}

.wt-ui {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 340px;
  background: #0b1220;
  font-size: 12px;
}

.wt-ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 18, 32, 0.94);
  font-family: var(--au-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #93a4bf;
  grid-column: 1 / -1;
}

.wt-ui-bar span {
  color: var(--au-hero-blue);
}

.wt-ui-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
  animation: wt-pulse 2.2s ease-in-out infinite;
}

@keyframes wt-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.wt-ui-side {
  padding: 14px 10px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 12, 22, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wt-ui-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #93a4bf;
  font-weight: 600;
  border: 1px solid transparent;
}

.wt-ui-nav.is-active {
  color: #bfdbfe;
  background: rgba(91, 140, 255, 0.14);
  border-color: rgba(91, 140, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.12);
}

.wt-ui-nav .ti {
  font-size: 14px;
  opacity: 0.85;
}

.wt-ui-main {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    #0b1220;
}

.wt-ui-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wt-ui-head h3 {
  margin: 0;
  font-family: var(--au-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eef8;
}

.wt-ui-head p {
  margin: 4px 0 0;
  color: #8a9bb8;
  font-size: 0.78rem;
}

.wt-ui-pill {
  font-family: var(--au-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  white-space: nowrap;
}

.wt-ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wt-ui-metric {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 26, 46, 0.65);
}

.wt-ui-metric label {
  display: block;
  font-family: var(--au-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7182a0;
  margin-bottom: 6px;
}

.wt-ui-metric strong {
  font-family: var(--au-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--au-hero-blue);
}

.wt-ui-table {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.wt-ui-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.72rem;
}

.wt-ui-row:last-child {
  border-bottom: none;
}

.wt-ui-row--head {
  background: rgba(99, 102, 241, 0.08);
  color: #93a4bf;
  font-family: var(--au-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wt-ui-row span:first-child {
  color: #e8eef8;
  font-weight: 600;
}

.wt-ui-row .ok {
  color: #86efac;
}
.wt-ui-row .warn {
  color: #fde68a;
}

.wt-ui-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 140, 255, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Hero canvas fades into the next section — no hard color shelf. */
.wt-walk::after {
  display: none;
}

#pillars.wt-section {
  border-top: none;
  background: var(--au-bg);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}

.wt-price,
.wt-final,
#compliance.wt-section {
  border-top: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(17, 26, 46, 0.35) 40%, transparent 100%),
    var(--au-bg);
}

.wt-final {
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(180deg, var(--au-bg) 0%, #0a1020 100%);
}

/* Homepage footer: fade in instead of a hard rule */
.wt-page + .kimss-footer,
.wt-page ~ .kimss-footer,
body:has(.wt-page) .kimss-footer {
  border-top: none;
  margin-top: 0;
  background: linear-gradient(180deg, var(--au-bg) 0%, rgba(8, 10, 22, 0.96) 28%, #060818 100%);
}

@media (prefers-reduced-motion: reduce) {
  .wt-ui-bar i {
    animation: none;
  }
}

/* Enhanced pillar cards */
.wt-pillars article {
  position: relative;
  transition:
    transform 0.35s var(--au-ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.wt-pillars article:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .wt-pillars article:hover {
    transform: none;
  }
}

/* Scroll reveal hook — GSAP adds .is-in; CSS is fallback only */
.wt-reveal {
  opacity: 1;
  transform: none;
}
html.js .wt-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}
html.js .wt-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--au-ease), transform 0.55s var(--au-ease);
}

/* Login polish — align auth geo to brand blue accent */
.kh-auth-brand-dot {
  background: var(--au-hero-blue, #5b8cff);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.55);
}

@media (max-width: 720px) {
  .wt-ui {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .wt-ui-side {
    display: none;
  }
  .wt-ui-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .wt-ui-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .wt-ui-row span:nth-child(3),
  .wt-ui-row span:nth-child(4),
  .wt-ui-row--head span:nth-child(3),
  .wt-ui-row--head span:nth-child(4) {
    display: none;
  }
}
