/*
 * KYPS glass kit — the shared look of every KYPS App landing page (kypsapp.in and the product
 * subdomains). Ported from the home site (home/src): liquid-glass cards, drifting aurora, repeating
 * scroll reveals and spring motion.
 *
 * Source of truth: shared/kyps-kit. Run `node shared/sync-kit.mjs` to copy it into each backend;
 * do not edit the copies in each backend's public/kyps-kit folder.
 *
 * Each product sets its own theme by overriding --brand, --brand-2, --brand-3 and --brand-ink
 * (see views/head.blade.php). Everything else derives from those.
 */

:root {
  --brand: #6366f1;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --brand-ink: #4338ca;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --brand-line: color-mix(in srgb, var(--brand) 26%, transparent);
  --ink: #0b1020;
  --ink-soft: #4b5563;
  --muted: #94a3b8;
  --line: #e5e7f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --dark: #070a16;
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(30, 27, 75, 0.25);
  --gradient: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --gutter: clamp(16px, 4vw, 72px);
  --nav-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Damped springs sampled into linear(): gentle (~3% overshoot) and bouncy (~16%). */
  --spring: linear(0, 0.024, 0.084, 0.168, 0.264, 0.365, 0.465, 0.56, 0.647, 0.724, 0.791, 0.848, 0.895, 0.933, 0.962, 0.985, 1.002, 1.014, 1.022, 1.026, 1.028, 1.028, 1.027, 1.025, 1.023, 1.02, 1.017, 1.014, 1.011, 1.009, 1.007, 1.005, 1.004, 1.003, 1.002, 1.001, 1);
  --spring-bounce: linear(0, 0.049, 0.174, 0.34, 0.521, 0.696, 0.849, 0.974, 1.065, 1.124, 1.155, 1.163, 1.153, 1.132, 1.104, 1.075, 1.046, 1.022, 1.002, 0.988, 0.979, 0.974, 0.973, 0.975, 0.979, 0.984, 0.988, 0.993, 0.997, 1, 1.002, 1.004, 1.004, 1.004, 1.004, 1.003, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: var(--ease);
    --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: var(--gutter);
}

.k-narrow {
  max-width: 1240px;
  margin-inline: auto;
}

/* ---------- Sections ---------- */
.k-section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  overflow: hidden;
}

.k-section--alt {
  background: var(--bg-alt);
}

.k-section--dark {
  background: var(--dark);
  color: #fff;
}

.k-section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.k-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.k-head--left {
  margin-inline: 0;
  text-align: left;
}

.k-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.k-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: k-pulse 2s infinite;
}

.k-section--dark .k-eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: color-mix(in srgb, var(--brand) 45%, white);
}

.k-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.k-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
}

.k-section--dark .k-sub {
  color: #94a3b8;
}

.k-gradient-text {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: k-shine 6s linear infinite;
}

/* ---------- Buttons ---------- */
.k-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--spring-bounce), box-shadow 0.4s var(--ease), color 0.2s, border-color 0.2s, background-color 0.2s;
}

.k-btn i {
  transition: transform 0.6s var(--spring-bounce);
}

.k-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.k-btn:hover .fa-arrow-right {
  transform: translateX(4px);
}

.k-btn:active {
  transform: scale(0.97);
  transition-duration: 0.15s;
}

.k-btn--primary {
  background: var(--gradient);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent);
  animation: k-shine 6s linear infinite;
}

.k-btn--primary:hover {
  box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--brand-2) 75%, transparent);
}

.k-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.k-btn--primary:hover::after {
  transform: translateX(120%);
}

.k-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px -16px rgba(30, 27, 75, 0.35);
  color: var(--ink);
}

.k-btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}

.k-btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

.k-btn--light i {
  color: var(--brand);
}

.k-btn--glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.k-btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.k-btn--lg {
  padding: 16px 30px;
  font-size: 16px;
}

.k-btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.k-btn--block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.k-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding 0.4s var(--ease);
  animation: k-drop 0.8s var(--ease) both;
}

.k-nav.is-scrolled {
  padding: 10px 0;
}

.k-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 10px 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.k-nav.is-scrolled .k-nav__inner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, 0.95),
    0 12px 40px -18px rgba(30, 27, 75, 0.35);
}

.k-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.k-brand img,
.k-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: contain;
}

.k-brand__mark {
  display: grid;
  place-items: center;
  background: var(--gradient);
  background-size: 200% auto;
  color: #fff;
  font-size: 17px;
  animation: k-shine 6s linear infinite;
  transition: transform 0.7s var(--spring-bounce);
}

.k-brand:hover .k-brand__mark {
  transform: rotate(-12deg) scale(1.08);
}

.k-brand b {
  color: var(--brand);
  font-weight: inherit;
}

.k-brand small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.k-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.k-nav__link {
  position: relative;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.k-nav__link:hover,
.k-nav__link.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.k-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.k-nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s;
}

.k-nav.is-scrolled .k-nav__progress {
  opacity: 1;
}

/* "Products" family switcher */
.k-family-menu {
  position: relative;
}

.k-family-menu__btn i {
  margin-left: 4px;
  font-size: 11px;
  transition: transform 0.5s var(--spring-bounce);
}

.k-family-menu.is-open .k-family-menu__btn i {
  transform: rotate(180deg);
}

.k-family-menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(560px, 92vw);
  padding: 10px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  translate: -50% -10px;
  scale: 0.97;
  transform-origin: top center;
  transition: opacity 0.3s var(--ease), translate 0.6s var(--spring), scale 0.6s var(--spring), visibility 0.3s;
}

.k-family-menu.is-open .k-family-menu__panel {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  scale: 1;
}

.k-family-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.25s;
}

.k-family-link:hover {
  background: rgba(255, 255, 255, 0.7);
}

.k-family-link.is-current {
  background: color-mix(in srgb, var(--c) 10%, transparent);
}

.k-family-link__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
  font-size: 16px;
  transition: transform 0.6s var(--spring-bounce);
}

.k-family-link:hover .k-family-link__icon {
  transform: rotate(-8deg) scale(1.08);
}

.k-family-link strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.k-family-link small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
}

.k-family-menu__all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.k-family-menu__all:hover {
  color: var(--brand-ink);
}

.k-nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.k-nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.5s var(--spring-bounce), opacity 0.2s;
}

.k-nav__toggle span:nth-child(1) { top: 15px; }
.k-nav__toggle span:nth-child(2) { top: 21px; }
.k-nav__toggle span:nth-child(3) { top: 27px; }
.k-nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.k-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.k-nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .k-nav__inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.7);
  }

  .k-nav__toggle {
    display: block;
  }

  .k-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: inset 1.5px 1.5px 0 -0.5px #fff, var(--shadow);
    opacity: 0;
    visibility: hidden;
    translate: 0 -12px;
    scale: 0.98;
    transition: opacity 0.3s var(--ease), translate 0.6s var(--spring), scale 0.6s var(--spring), visibility 0.3s;
  }

  .k-nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    translate: none;
    scale: none;
  }

  .k-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .k-nav__link {
    padding: 12px 16px;
    text-align: left;
  }

  .k-family-menu__panel {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    display: none;
    padding: 4px 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    translate: none;
    scale: none;
  }

  .k-family-menu.is-open .k-family-menu__panel {
    display: grid;
  }

  .k-nav__actions {
    flex-direction: column;
    align-items: stretch;
    margin: 10px 0 0;
  }
}

@media (min-width: 1081px) {
  .k-nav__menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
  }

  .k-nav__links {
    margin-inline: auto;
  }
}

/* ---------- Hero ---------- */
.k-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 100px;
  overflow: hidden;
}

.k-hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.k-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.k-hero__copy > * {
  animation: k-hero-in 1s var(--ease) both;
}

.k-hero__copy > :nth-child(2) { animation-delay: 0.1s; }
.k-hero__copy > :nth-child(3) { animation-delay: 0.2s; }
.k-hero__copy > :nth-child(4) { animation-delay: 0.3s; }
.k-hero__copy > :nth-child(5) { animation-delay: 0.4s; }

.k-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--ink-soft);
}

.k-hero__badge-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k-hero__title {
  margin-top: 24px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.k-hero__sub {
  margin-top: 24px;
  max-width: 580px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
}

.k-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.k-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.k-hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.k-hero__checks i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 10px;
}

.k-hero__visual {
  position: relative;
  animation: k-hero-visual 1.2s var(--ease) 0.3s both;
}

.k-hero__ring {
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--brand) 35%, transparent), transparent 30%, color-mix(in srgb, var(--brand-3) 30%, transparent), transparent 60%);
  filter: blur(40px);
  animation: k-spin 14s linear infinite;
}

/* App-window mock used in heroes */
.k-window.glass {
  --glass-shadow: 0 40px 80px -30px rgba(30, 27, 75, 0.45);
}

.k-window {
  border-radius: 24px;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.9s var(--spring);
}

.k-hero__visual:hover .k-window {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.k-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.35);
}

.k-window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.k-window__bar i:nth-child(1) { background: #ff5f57; }
.k-window__bar i:nth-child(2) { background: #febc2e; }
.k-window__bar i:nth-child(3) { background: #28c840; }

.k-window__bar span {
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.k-window__body {
  padding: 22px;
}

.k-float.glass {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
}

.k-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  animation: k-float 5s ease-in-out infinite;
}

.k-float small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.k-float strong {
  display: block;
  font-size: 14px;
}

.k-float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
}

.k-float__icon--green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.k-float--tl { top: -26px; left: -32px; }
.k-float--br { bottom: -28px; right: -22px; animation-delay: -2.5s; }

.k-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 999px;
  translate: -50% 0;
}

.k-scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--brand);
  animation: k-scroll-cue 2s var(--ease) infinite;
}

/* ---------- Liquid glass (macOS Tahoe style) ---------- */
.glass {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-inset:
    inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, 0.95),
    inset -1px -1px 0 -0.5px rgba(255, 255, 255, 0.5),
    inset 0 0 24px rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 24px 60px -28px rgba(30, 27, 75, 0.35);
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-inset), var(--glass-shadow);
}

.glass.glass--strong {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
}

.glass--dark {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-inset:
    inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, 0.35),
    inset -1px -1px 0 -0.5px rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
  --glass-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.glass-sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.glass-sheen::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: k-sheen 8s var(--ease) infinite;
  animation-delay: var(--sheen-delay, 0s);
}

.glass--dark .glass-sheen::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.glass-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: var(--lift, 0);
}

.glass--dark .glass-sheen::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 60%);
}

/* Spring-driven hover tilt (kyps-kit.js writes --rx, --ry, --lift, --mx, --my). */
.fluid {
  transform:
    perspective(1100px)
    translateY(calc(var(--lift, 0) * -8px))
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    scale(calc(1 + var(--lift, 0) * 0.015));
}

.fluid.is-tilting {
  will-change: transform;
}

/* ---------- Aurora ---------- */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  width: clamp(320px, 40vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 65%);
  opacity: 0.5;
  animation: k-aurora 24s ease-in-out infinite;
  animation-delay: calc(var(--i) * -6s);
  animation-play-state: paused;
}

.aurora.is-playing span {
  animation-play-state: running;
}

.aurora span:nth-child(1) { top: -18%; left: -10%; }
.aurora span:nth-child(2) { top: 25%; right: -12%; }
.aurora span:nth-child(3) { bottom: -25%; left: 30%; }
.aurora span:nth-child(4) { top: 5%; left: 45%; width: clamp(200px, 22vw, 420px); }

.aurora--dark span {
  opacity: 0.4;
}

/* ---------- Reveal (repeats each time an element re-enters the viewport) ---------- */
.js .reveal {
  opacity: 0;
  transition:
    opacity 0.8s var(--ease) var(--delay, 0ms),
    translate 1.1s var(--spring) var(--delay, 0ms),
    scale 1.1s var(--spring) var(--delay, 0ms),
    filter 0.8s var(--ease) var(--delay, 0ms),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.js .reveal--up { translate: 0 48px; }
.js .reveal--left { translate: -56px 0; }
.js .reveal--right { translate: 56px 0; }
.js .reveal--zoom { scale: 0.9; filter: blur(6px); }
.js .glass.reveal--zoom { filter: none; }

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
  scale: none;
  filter: none;
}

.js .k-head.reveal {
  opacity: 1;
  translate: none;
}

.js .k-head.reveal > * {
  opacity: 0;
  translate: 0 32px;
  filter: blur(8px);
  transition: opacity 0.8s var(--ease), translate 1.1s var(--spring), filter 0.8s var(--ease);
}

.js .k-head.reveal > :nth-child(2) { transition-delay: 0.12s; }
.js .k-head.reveal > :nth-child(3) { transition-delay: 0.24s; }

.js .k-head.reveal.is-visible > * {
  opacity: 1;
  translate: none;
  filter: none;
}

/* ---------- Cards ---------- */
.k-grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

.k-grid--2 { grid-template-columns: repeat(2, 1fr); }
.k-grid--3 { grid-template-columns: repeat(3, 1fr); }
.k-grid--4 { grid-template-columns: repeat(4, 1fr); }

.k-card {
  --c: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.4vw, 34px);
  border-radius: var(--radius);
  isolation: isolate;
}

.k-card:hover {
  box-shadow: var(--glass-inset), 0 30px 60px -30px color-mix(in srgb, var(--c) 80%, transparent);
}

.k-card--wide {
  grid-column: span 2;
}

.k-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 13%, white);
  color: var(--c);
  font-size: 22px;
  transition: transform 0.8s var(--spring-bounce), background 0.4s, color 0.4s;
}

.k-card:hover .k-card__icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--c);
  color: #fff;
}

.k-card--solid-icon .k-card__icon,
.k-section--dark .k-card__icon {
  background: var(--gradient);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand-2) 70%, transparent);
  animation: k-shine 6s linear infinite;
}

.k-card h3 {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.k-card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.k-section--dark .k-card p {
  color: #94a3b8;
}

.k-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c);
}

.k-card__foot i {
  transition: transform 0.6s var(--spring-bounce);
}

.k-card:hover .k-card__foot .fa-arrow-right {
  transform: translateX(4px);
}

.k-card__num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 30%, white);
  transition: transform 0.8s var(--spring-bounce);
}

.k-card:hover .k-card__num {
  transform: scale(1.15) rotate(-6deg);
}

.k-check-list {
  display: grid;
  gap: 4px;
  margin: 20px 0 6px;
  padding-top: 18px;
  border-top: 1px dashed color-mix(in srgb, var(--c) 25%, var(--line));
  font-size: 14px;
}

.k-check-list li {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.k-check-list i {
  margin-top: 4px;
  font-size: 12px;
  color: var(--c);
}

/* ---------- Stats bar ---------- */
.k-stats-wrap {
  position: relative;
  padding: clamp(56px, 7vw, 90px) 0 clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.k-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 28px;
  isolation: isolate;
}

.k-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(26px, 3.6vw, 44px) 18px;
  text-align: center;
}

.k-stat + .k-stat {
  border-left: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
}

.k-stat__value {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  animation: k-shine 6s linear infinite;
}

.k-stat__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Marquee ---------- */
.k-marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 0;
  overflow: hidden;
  background: var(--ink);
  transform: skewY(-1.5deg);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.k-marquee__row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: k-marquee 40s linear infinite;
}

.k-marquee__row--reverse {
  animation-direction: reverse;
  animation-duration: 46s;
}

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

.k-marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}

.k-marquee__item i {
  color: color-mix(in srgb, var(--brand) 55%, white);
}

.k-marquee__item:hover {
  background: color-mix(in srgb, var(--brand) 25%, transparent);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
}

/* ---------- Steps ---------- */
.k-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: clamp(20px, 3vw, 40px);
  isolation: isolate;
}

.k-steps::before,
.k-steps::after {
  content: '';
  position: absolute;
  top: 63px;
  left: calc(50% / var(--cols, 4));
  right: calc(50% / var(--cols, 4));
  z-index: 0;
  height: 2px;
  border-radius: 2px;
}

.k-steps::before {
  background: var(--line);
}

.k-steps::after {
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--spring) 0.3s;
}

.k-steps.is-visible::after {
  transform: scaleX(1);
}

.k-step {
  position: relative;
  z-index: 1;
  padding: 28px 22px 32px;
  border-radius: 26px;
  text-align: center;
  isolation: isolate;
}

.k-step:hover {
  box-shadow: var(--glass-inset), 0 30px 60px -28px color-mix(in srgb, var(--brand) 55%, transparent);
}

.k-step__num {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -18px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: transform 0.8s var(--spring-bounce), background 0.4s, color 0.4s;
}

.k-step:hover .k-step__num {
  transform: translateY(-6px) rotate(-6deg);
  background: var(--gradient);
  color: #fff;
}

.k-step h3 {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 700;
}

.k-step p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.k-step small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
}

/* ---------- Split (copy + visual) ---------- */
.k-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.k-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.k-point {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  isolation: isolate;
}

.k-point__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, white);
  color: var(--c, var(--brand));
  font-size: 17px;
  transition: transform 0.7s var(--spring-bounce);
}

.k-point:hover .k-point__icon {
  transform: rotate(-8deg) scale(1.08);
}

.k-point h4 {
  font-size: 16px;
  font-weight: 700;
}

.k-point p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Pricing ---------- */
.k-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  max-width: 1240px;
  margin: 0 auto;
}

.k-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 30px;
  border-radius: 26px;
  isolation: isolate;
}

.k-plan:hover {
  box-shadow: var(--glass-inset), var(--shadow);
}

.k-plan.k-plan--popular {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  --glass-shadow: 0 30px 70px -30px color-mix(in srgb, var(--brand) 60%, transparent);
  padding-block: 48px;
  border-color: transparent;
}

.k-plan--popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--brand), var(--brand-2), var(--brand-3), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: k-rotate-border 4s linear infinite;
  pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.k-plan__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  translate: -50% 0;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand-2) 80%, transparent);
}

.k-plan__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
}

.k-plan__desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.k-plan__price {
  margin-top: 14px;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.k-plan__price span {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.k-plan__note {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

.k-plan__limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.k-plan__limits div {
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.k-plan__limits b {
  display: block;
  font-size: 17px;
}

.k-plan__limits small {
  font-size: 11.5px;
  color: var(--muted);
}

.k-plan__features {
  flex: 1;
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.k-plan__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.k-plan__features i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
}

/* ---------- FAQ ---------- */
.k-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.k-faq__head {
  position: sticky;
  top: 120px;
}

.k-faq__head .k-sub a {
  font-weight: 700;
  color: var(--brand-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.k-faq__head .k-sub a:hover {
  background-size: 100% 2px;
}

.k-faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.k-faq__item {
  position: relative;
  border-radius: 20px;
  isolation: isolate;
}

.k-faq__item.is-open {
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  border-color: var(--brand-line);
  box-shadow: var(--glass-inset), 0 20px 40px -24px color-mix(in srgb, var(--brand) 50%, transparent);
}

.k-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.k-faq__toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: transform 0.7s var(--spring-bounce), background 0.3s, color 0.3s;
}

.k-faq__item.is-open .k-faq__toggle {
  transform: rotate(135deg);
  background: var(--gradient);
  color: #fff;
}

.k-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--spring);
}

.k-faq__a > div {
  overflow: hidden;
  padding: 0 24px;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease), padding 0.7s var(--spring);
}

.k-faq__item.is-open .k-faq__a {
  grid-template-rows: 1fr;
}

.k-faq__item.is-open .k-faq__a > div {
  padding-bottom: 22px;
  opacity: 1;
}

/* ---------- CTA band ---------- */
.k-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(40px, 5vw, 68px) clamp(28px, 5vw, 64px);
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: k-grad-shift 10s ease infinite;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--brand) 60%, transparent);
}

.k-cta::before,
.k-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.k-cta::before {
  width: 420px;
  height: 420px;
  right: -110px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 65%);
  animation: k-float 9s ease-in-out infinite;
}

.k-cta::after {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  animation: k-float 11s ease-in-out -4s infinite;
}

.k-cta h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.k-cta p {
  margin-top: 10px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.k-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Family cross-links ---------- */
.k-family {
  display: grid;
  grid-template-columns: repeat(var(--count, 3), 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.k-family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  isolation: isolate;
}

.k-family-card::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--c), transparent 45%, transparent 60%, var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.k-family-card:hover::after {
  opacity: 1;
}

.k-family-card:hover {
  box-shadow: var(--glass-inset), 0 30px 60px -30px var(--c);
}

.k-family-card .k-card__icon {
  background: color-mix(in srgb, var(--c) 13%, white);
  color: var(--c);
  box-shadow: none;
  animation: none;
}

.k-family-card:hover .k-card__icon {
  background: var(--c);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}

.k-family-card h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.k-family-card p {
  flex: 1;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.k-family-card__domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 16px;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, white);
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  transition: background 0.3s, color 0.3s;
}

.k-family-card:hover .k-family-card__domain {
  background: var(--c);
  color: #fff;
}

.k-family-card__domain i {
  transition: transform 0.6s var(--spring-bounce);
}

.k-family-card:hover .k-family-card__domain i {
  transform: translate(3px, -3px);
}

/* ---------- Footer ---------- */
.k-footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 28px;
  background: #04060d;
  color: #94a3b8;
  font-size: 15px;
  overflow: hidden;
}

.k-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 70%, transparent), color-mix(in srgb, var(--brand-3) 60%, transparent), transparent);
}

.k-footer .k-brand {
  color: #fff;
}

.k-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(var(--cols, 3), 1fr);
  gap: 40px;
}

.k-footer__about {
  margin-top: 16px;
  max-width: 340px;
}

.k-footer h4 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.k-footer li {
  padding: 5px 0;
}

.k-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, translate 0.5s var(--spring-bounce);
}

.k-footer li a:hover {
  color: #fff;
  translate: 4px 0;
}

.k-footer li a .k-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.k-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.k-footer__bottom a:hover {
  color: #fff;
}

/* ---------- Home-site parity: rotator, product cards, bento, contact ---------- */

html.has-lenis {
  scroll-behavior: auto;
}

/* Rotating hero word (home: Hero.jsx RotatingWord). Words are stacked; only the active one shows. */
.k-rotator {
  position: relative;
  display: inline-grid;
  height: 1.12em;
  overflow: hidden;
  vertical-align: bottom;
}

.k-rotator__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  translate: 0 100%;
  transition: translate 0.9s var(--spring), opacity 0.7s var(--ease);
  animation: k-shine 6s linear infinite;
}

.k-rotator__word.is-active {
  opacity: 1;
  translate: 0 0;
}

.k-rotator__word.is-leaving {
  translate: 0 -100%;
}

/* Product-style cards: cursor spotlight + animated gradient border (home: Products.css). */
.k-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
  opacity: var(--lift, 0);
  pointer-events: none;
}

.k-card::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--c), transparent 45%, transparent 60%, var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.k-card:hover::after {
  opacity: 1;
}

.k-card--product {
  padding: 34px 28px 30px;
}

.k-card--product .k-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.k-card--product h3 {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.k-card--product .k-check-list {
  flex: 1;
}

.k-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, white);
  font-size: 14px;
  font-weight: 700;
  color: var(--c);
  transition: background 0.3s, color 0.3s;
}

.k-card__link i {
  transition: transform 0.6s var(--spring-bounce);
}

.k-card__link:hover {
  background: var(--c);
  color: #fff;
}

.k-card__link:hover i {
  transform: translateX(4px);
}

/* Dark bento features (home: Features.css). Wide tiles are marked with .k-card--wide. */
.k-section--dark::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 70vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%);
  filter: blur(60px);
  translate: -50% 0;
  pointer-events: none;
}

.k-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.k-section--dark .k-card {
  --c: color-mix(in srgb, var(--brand) 55%, white);
}

.k-section--dark .k-card h3 {
  color: #fff;
}

.k-section--dark .k-card p {
  max-width: 520px;
}

/* Dark contact section with the glass demo form (home: Contact.css). */
.k-contact-wrap {
  background: var(--dark);
  color: #fff;
}

.k-contact-wrap .k-sub {
  color: #cbd5e1;
}

.k-contact-wrap .k-eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: color-mix(in srgb, var(--brand) 45%, white);
}

.k-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.k-contact__info {
  margin-top: 36px;
}

.k-contact__info li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 600;
}

.k-contact__info li > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: color-mix(in srgb, var(--brand) 45%, white);
  transition: transform 0.7s var(--spring-bounce), background 0.3s;
}

.k-contact__info li:hover > span {
  transform: rotate(-10deg) scale(1.08);
  background: color-mix(in srgb, var(--brand) 30%, transparent);
}

.k-contact__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.k-contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  isolation: isolate;
}

.k-contact__form h3 {
  font-size: 22px;
  font-weight: 800;
}

.k-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.k-field {
  position: relative;
  display: block;
}

.k-field input {
  width: 100%;
  padding: 24px 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 15px;
  color: #fff;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.k-field span {
  position: absolute;
  top: 17px;
  left: 17px;
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
  transform-origin: left;
  transition: transform 0.5s var(--spring), color 0.3s;
}

.k-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 60%, white);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
}

.k-field input:focus + span,
.k-field input:not(:placeholder-shown) + span {
  transform: translateY(-10px) scale(0.78);
  color: color-mix(in srgb, var(--brand) 45%, white);
}

.k-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.k-chips legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

.k-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.k-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.6s var(--spring-bounce);
}

.k-chip span:hover {
  transform: translateY(-2px);
  border-color: var(--c);
}

.k-chip input:checked + span {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--c);
}

.k-chip input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, white);
  outline-offset: 2px;
}

.k-contact__form .k-btn {
  margin-top: 6px;
  padding: 16px;
  font-size: 16px;
}

/* Footer extras (home: Footer.jsx) */
.k-footer__cta {
  margin-top: 24px;
}

.k-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.k-footer__top i {
  transition: transform 0.6s var(--spring-bounce);
}

.k-footer__top:hover {
  color: #fff;
}

.k-footer__top:hover i {
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .k-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .k-contact {
    grid-template-columns: 1fr;
  }

  .k-contact__copy {
    text-align: center;
  }

  .k-contact__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 28px;
  }

  .k-contact__extra {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .k-bento {
    grid-template-columns: 1fr;
  }

  .k-contact__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Misc ---------- */
.k-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.k-pill--live {
  background: #dcfce7;
  color: #15803d;
  animation: k-live 2.2s ease-in-out infinite;
}

.k-muted {
  color: var(--ink-soft);
}

.k-center {
  text-align: center;
}

.k-mt {
  margin-top: clamp(32px, 4vw, 48px);
}

.k-sticky-cta {
  display: none;
}

/* ---------- Keyframes ---------- */
@keyframes k-shine {
  to { background-position: 200% center; }
}

@keyframes k-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes k-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes k-spin {
  to { transform: rotate(360deg); }
}

@keyframes k-drop {
  from { opacity: 0; transform: translateY(-30px); }
}

@keyframes k-hero-in {
  from { opacity: 0; translate: 0 30px; filter: blur(8px); }
}

@keyframes k-hero-visual {
  from { opacity: 0; translate: 0 40px; scale: 0.94; }
}

@keyframes k-sheen {
  0% { transform: translateX(-160%) skewX(-20deg); }
  35%, 100% { transform: translateX(340%) skewX(-20deg); }
}

@keyframes k-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(8vw, 5vw) scale(1.15); }
  50% { transform: translate(-3vw, 9vw) scale(0.9); }
  75% { transform: translate(-7vw, -3vw) scale(1.08); }
}

@keyframes k-marquee {
  to { transform: translateX(-50%); }
}

@keyframes k-rotate-border {
  to { --angle: 360deg; }
}

@keyframes k-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes k-scroll-cue {
  0% { opacity: 0; translate: -50% 0; }
  30% { opacity: 1; }
  100% { opacity: 0; translate: -50% 14px; }
}

@keyframes k-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .k-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .k-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .k-family { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .k-hero {
    min-height: auto;
    padding-top: 130px;
  }

  .k-hero__inner,
  .k-split,
  .k-faq {
    grid-template-columns: 1fr;
  }

  .k-hero__copy {
    text-align: center;
  }

  .k-hero__sub {
    margin-inline: auto;
  }

  .k-hero__actions,
  .k-hero__checks {
    justify-content: center;
  }

  .k-hero__visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .k-float,
  .k-scroll-cue {
    display: none;
  }

  .k-faq__head {
    position: static;
    text-align: center;
  }

  .k-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .k-steps::before,
  .k-steps::after {
    display: none;
  }

  .k-cta {
    flex-direction: column;
    text-align: center;
  }

  .k-cta p {
    margin-inline: auto;
  }

  .k-cta__actions {
    justify-content: center;
  }

  .k-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .k-footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .k-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-stat:nth-of-type(3) {
    border-left: 0;
  }

  .k-stat:nth-of-type(n + 3) {
    border-top: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
  }

  .k-sticky-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    translate: 0 150%;
    transition: translate 0.7s var(--spring);
  }

  .k-sticky-cta.is-shown {
    translate: none;
  }

  .k-sticky-cta .k-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .k-grid--2,
  .k-grid--3,
  .k-grid--4,
  .k-family,
  .k-steps {
    grid-template-columns: 1fr;
  }

  .k-card--wide {
    grid-column: auto;
  }

  .k-hero__actions .k-btn {
    width: 100%;
  }

  .k-footer__grid {
    grid-template-columns: 1fr;
  }

  .k-brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .k-head.reveal > * {
    opacity: 1;
    translate: none;
    scale: none;
    filter: none;
  }

  .glass-sheen {
    display: none;
  }
}

/* ---------- Live demo (views/demo.blade.php) ---------- */
.k-demo__points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.k-demo__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.k-demo__points span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 13%, white);
  color: var(--brand);
}

.k-demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.k-demo__fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.k-demo__card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  isolation: isolate;
}

.k-demo__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c, var(--brand));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.k-demo__where {
  color: var(--ink-soft);
}

.k-demo__login {
  display: grid;
  gap: 10px;
  margin: 0;
}

.k-demo__login div {
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--c, var(--brand)) 45%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.k-demo__login dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.k-demo__login dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 0;
}

.k-demo__login code {
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
}

.k-demo__login button {
  flex-shrink: 0;
  padding: 5px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.k-demo__login button:hover {
  border-color: var(--c, var(--brand));
  color: var(--c, var(--brand));
}

.k-demo__note,
.k-demo__reset {
  font-size: 13px;
  color: var(--ink-soft);
}

.k-demo__reset i {
  margin-right: 4px;
}
