/* Karotik Studio — 21st.dev inspired redesign
   Tokens adapted from Modern Minimal + lifestyle teal/coral direction */

@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Light.woff") format("woff");
}
@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Regular.woff") format("woff");
}
@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Medium.woff") format("woff");
}
@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Bold.woff") format("woff");
}
@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Bold.woff") format("woff");
}
@font-face {
  font-family: iransans;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/iransans/IRANSansX-Black.woff") format("woff");
}

:root {
  --background: #f3f6f8;
  --foreground: #0b1220;
  --card: #ffffff;
  --card-foreground: #0b1220;
  --primary: #0f766e;
  --primary-foreground: #ffffff;
  --secondary: #e7eef1;
  --secondary-foreground: #334155;
  --muted: #e8eef2;
  --muted-foreground: #5b6b7c;
  --accent: #ea580c;
  --accent-foreground: #ffffff;
  --destructive: #dc2626;
  --border: #d5dee6;
  --ring: #0f766e;
  --glow-teal: rgba(56, 189, 248, 0.45);
  --glow-ember: rgba(167, 139, 250, 0.35);
  --glow-magenta: rgba(244, 114, 182, 0.28);
  --night: #050814;
  --night-2: #0b1024;
  --cosmos: #070b1c;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow-soft: 0 18px 50px rgba(11, 18, 32, 0.1);
  --shadow-lift: 0 28px 70px rgba(15, 118, 110, 0.18);
  --font-sans: iransans, ui-sans-serif, system-ui, sans-serif;
  --container: 1160px;
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.ks-shell {
  position: relative;
  min-height: 100vh;
}

.ks-container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.ks-section {
  padding-block: var(--section-y);
  position: relative;
}

.ks-section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.ks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: max-content;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(124, 92, 255, 0.1);
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: start;
}

.ks-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ks-eyebrow--on-dark {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ks-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.ks-section-head--center {
  align-items: center;
  text-align: center;
}

.ks-section-head--center .ks-eyebrow {
  margin-inline: auto;
}

.ks-section-head--center .ks-lead {
  max-width: 36rem;
}

.ks-section-head__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.ks-section-head--split {
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .ks-section-head--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .ks-section-head__side {
    max-width: 22rem;
    text-align: right;
    flex-shrink: 0;
  }
}

.ks-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--foreground);
}

.ks-title--xl {
  font-size: clamp(1.85rem, 4.5vw, 3.4rem);
}

.ks-title--lg {
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
}

.ks-title--md {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.ks-lead {
  margin: 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  font-weight: 500;
}

.ks-brand-mark {
  background: linear-gradient(120deg, #a78bfa 0%, #38bdf8 55%, #f9a8d4 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ks-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.ks-btn--primary {
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
  color: var(--primary-foreground);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.4);
}

.ks-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(124, 92, 255, 0.48);
}

.ks-btn--accent {
  background: linear-gradient(135deg, #a78bfa, #7c5cff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.4);
}

.ks-btn--accent:hover {
  transform: translateY(-2px);
}

.ks-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.ks-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ks-btn--outline {
  background: #fff;
  border-color: var(--border);
  color: var(--foreground);
}

.ks-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ks-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(8, 6, 24, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(88, 60, 180, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ks-store:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.28);
}

.ks-store img {
  display: block;
}
.ks-store__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.ks-store__wordmark {
  height: 16px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.ks-store__wordmark--bazaar {
  height: 15px;
  width: 72px;
  /* Wordmark is dark; invert for dark store pills */
  filter: brightness(0) invert(1);
}
.ks-store__wordmark--play {
  height: 14px;
  width: 90px;
  filter: brightness(0) invert(1);
}

/* Appear animations (from 21st Hero with Mockup) */
@keyframes ks-appear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ks-appear-zoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ks-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ks-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes ks-marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes ks-border-trail {
  to {
    --angle: 360deg;
  }
}

.ks-appear {
  animation: ks-appear 0.7s ease both;
}

.ks-appear-d1 {
  animation-delay: 0.12s;
}
.ks-appear-d2 {
  animation-delay: 0.24s;
}
.ks-appear-d3 {
  animation-delay: 0.4s;
}
.ks-appear-d4 {
  animation-delay: 0.65s;
}

.ks-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ks-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ks-appear,
  .ks-appear-d1,
  .ks-appear-d2,
  .ks-appear-d3,
  .ks-appear-d4,
  .ks-float-y,
  .ks-marquee-track,
  .ks-pricing-card--featured::before {
    animation: none !important;
  }
  .ks-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== Header ========== */
.ks-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 10050;
  isolation: isolate;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--night) 78%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ks-header--light {
  background: color-mix(in srgb, #fff 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
}

.ks-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  pointer-events: auto;
}

.ks-logo {
  display: block;
  height: 34px;
  width: auto;
}

.ks-logo--mark {
  width: 36px;
  height: 34px;
}

.ks-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ks-nav--mobile {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.ks-nav--mobile.is-open {
  display: flex;
}

.ks-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.ks-header--light .ks-nav-link {
  color: var(--muted-foreground);
}

.ks-nav-link:hover,
.ks-nav-link.is-active {
  color: #fff;
}

.ks-header--light .ks-nav-link:hover,
.ks-header--light .ks-nav-link.is-active {
  color: #6d28d9;
}

.ks-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.ks-header--light .ks-menu-toggle {
  background: var(--muted);
  color: var(--foreground);
}

.ks-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .ks-menu-toggle {
    display: none !important;
  }
  .ks-header__cta {
    display: inline-flex;
  }
  .ks-nav--desktop {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .ks-nav--desktop {
    display: none;
  }
  .ks-menu-toggle {
    display: inline-flex;
  }
}

/* ========== Motion helpers ========== */
.ks-anim {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}
.ks-anim[data-anim="scale"] {
  transform: translateY(40px) scale(0.94);
}
.ks-anim.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.ks-btn--glow {
  background: linear-gradient(120deg, #8b5cf6, #38bdf8 55%, #f472b6);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.45);
  animation: ks-gradient-shift 5s ease infinite;
}
.ks-btn--glow:hover {
  transform: translateY(-2px) scale(1.02);
}
.ks-btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}
.ks-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

@keyframes ks-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes ks-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ks-bar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes ks-shine {
  0% {
    transform: translateX(-120%) rotate(12deg);
  }
  100% {
    transform: translateX(220%) rotate(12deg);
  }
}

/* ========== Hero ========== */
.ks-hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  color: #fff;
  min-height: 100svh;
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 15% 75%, rgba(244, 114, 182, 0.18), transparent 50%),
    linear-gradient(160deg, #04060f 0%, #0b1024 45%, #151033 100%);
  /* Keep perspective off the hero root — it creates a stacking context
     that can sit above the fixed header and steal nav clicks. */
}

.ks-hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  z-index: 0;
}
.ks-hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: ks-float 10s ease-in-out infinite;
}
.ks-hero__aurora--a {
  width: 55vw;
  height: 55vw;
  max-width: 620px;
  max-height: 620px;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%);
}
.ks-hero__aurora--b {
  width: 45vw;
  height: 45vw;
  max-width: 520px;
  max-height: 520px;
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  animation-delay: 1.2s;
}
.ks-hero__aurora--c {
  width: 35vw;
  height: 35vw;
  max-width: 380px;
  max-height: 380px;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 70%);
  animation-delay: 0.6s;
}
.ks-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}
.ks-hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  opacity: 0.5;
}

.ks-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 980px) {
  .ks-hero__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    min-height: calc(100svh - 140px);
  }
}

.ks-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  text-align: right;
}
.ks-hero__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.ks-hero__brand {
  display: inline-block;
  background: linear-gradient(100deg, #c4b5fd, #67e8f9 45%, #f9a8d4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.ks-hero__lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(226, 232, 240, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
  font-weight: 500;
}
.ks-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ks-hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.ks-hero__trust {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.ks-hero__trust p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.5;
}
.ks-hero__trust strong {
  color: #fff;
  font-size: 1.05rem;
}
.ks-hero__avatars {
  display: flex;
}
.ks-hero__avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0b1024;
  margin-inline-start: -10px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}
.ks-hero__avatars span:first-child {
  margin-inline-start: 0;
}
.ks-hero__avatars span:nth-child(2) {
  background: linear-gradient(135deg, #f472b6, #a78bfa);
}
.ks-hero__avatars span:nth-child(3) {
  background: linear-gradient(135deg, #22d3ee, #818cf8);
}
.ks-hero__avatars span:nth-child(4) {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
}

.ks-hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: visible;
  perspective: 1200px;
  /* visual chrome never steals clicks from the phone / header */
  pointer-events: none;
}
.ks-hero__visual .ks-phone {
  pointer-events: auto;
}
.ks-orbit {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}
.ks-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: ks-orbit 28s linear infinite;
}
.ks-orbit__ring--b {
  inset: 12%;
  animation-duration: 40s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.18);
}
.ks-orbit__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 18px #67e8f9;
  top: 8%;
  left: 50%;
  animation: ks-orbit 28s linear infinite;
  transform-origin: 0 210px;
}
.ks-orbit__dot--b {
  background: #f9a8d4;
  box-shadow: 0 0 18px #f9a8d4;
  animation-duration: 40s;
  animation-direction: reverse;
  transform-origin: 0 160px;
}

.ks-float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  pointer-events: none !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s linear;
  will-change: transform;
  max-width: 200px;
}
.ks-float-card strong {
  display: block;
  font-size: 0.88rem;
}
.ks-float-card small {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.75rem;
}
.ks-float-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ks-float-card__icon--mint {
  background: linear-gradient(135deg, #34d399, #22d3ee);
}
.ks-float-card__icon--violet {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.ks-float-card__icon--coral {
  background: linear-gradient(135deg, #fb7185, #f97316);
}
/* Keep float cards clearly outside the phone */
.ks-float-card--a {
  top: 0;
  right: -18%;
  animation: ks-float 6s ease-in-out infinite;
}
.ks-float-card--b {
  top: 68%;
  left: -20%;
  bottom: auto;
  animation: ks-float 7s ease-in-out infinite;
  animation-delay: 0.8s;
}
.ks-float-card--c {
  top: 32%;
  left: -22%;
  right: auto;
  animation: ks-float 8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.ks-hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.55);
  pointer-events: none;
}
.ks-hero__scroll span {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}
.ks-hero__scroll span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  translate: -50% 0;
  animation: ks-float 1.4s ease-in-out infinite;
}

@media (max-width: 979px) {
  .ks-hero__visual {
    order: -1;
    min-height: 460px;
  }
  .ks-hero__title {
    max-width: none;
  }
  /* On smaller screens float cards cover the phone — hide them */
  .ks-float-card {
    display: none;
  }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .ks-hero__visual {
    padding-inline: 1.5rem;
  }
  .ks-float-card--a {
    right: -8%;
    top: -2%;
  }
  .ks-float-card--b {
    left: -10%;
    top: 70%;
  }
  .ks-float-card--c {
    left: -12%;
    top: 36%;
  }
}
@media (min-width: 1200px) {
  .ks-hero__visual {
    padding-inline: 2.5rem;
  }
}

/* ========== Interactive phone (app shell) ========== */
.ks-phone {
  position: relative;
  z-index: 20;
  width: min(100%, 300px);
  user-select: none;
  pointer-events: auto;
  /* keep flat — 3D tilt breaks nested button hit-testing */
  transform: none !important;
}
.ks-phone--hero {
  width: min(78vw, 340px);
}
.ks-phone--cta {
  width: min(72vw, 300px);
}
.ks-phone__glow {
  position: absolute;
  inset: 6% -12%;
  background: radial-gradient(circle, rgba(123, 85, 211, 0.45), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  animation: ks-glow-pulse 4s ease-in-out infinite;
}
.ks-phone__bezel {
  position: relative;
  z-index: 1;
  border-radius: 2.3rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2a2f45, #0b0f1c 40%, #1a1230);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: auto;
}
.ks-phone__notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  translate: -50% 0;
  width: 32%;
  height: 16px;
  border-radius: 999px;
  background: #05070f;
  z-index: 6;
  pointer-events: none;
}
.ks-phone__shell {
  position: relative;
  border-radius: 1.85rem;
  overflow: hidden;
  background: #f3eefc;
  /* taller so logo sits below dynamic island / camera */
  aspect-ratio: 440 / 980;
}
.ks-phone__content {
  position: absolute;
  /* top inset clears black camera bar so Karotik logo is visible */
  inset: 30px 0 68px;
  overflow: hidden;
  z-index: 1;
}
.ks-phone__view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.ks-phone__view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 1;
}
.ks-phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  /* hide baked-in bottom nav of screenshots */
  clip-path: inset(0 0 11% 0);
}
.ks-phone__shot--home {
  /* hide baked-in task list + bottom nav; live WorkItemCards render below */
  clip-path: inset(0 0 38% 0);
}

/* Real app bottom bar (BottomNavBar) */
.ks-appbar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 8;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 0.45rem 0.2rem 0.65rem;
  pointer-events: auto;
}
.ks-appbar__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  min-height: 56px;
}
.ks-appbar__tab {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.15rem 0.05rem 0.1rem;
  font-family: inherit;
  cursor: pointer;
  color: #bdbdbd;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ks-appbar__label {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ks-appbar__tab.is-active {
  color: #5408a5;
}
.ks-appbar__tab.is-active .ks-appbar__label {
  font-weight: 700;
}
.ks-appbar__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.ks-appbar__icon svg {
  width: 28px;
  height: 28px;
  display: none;
}
.ks-appbar__tab .ks-appbar__icon .is-off {
  display: block;
}
.ks-appbar__tab.is-active .ks-appbar__icon .is-off {
  display: none;
}
.ks-appbar__tab.is-active .ks-appbar__icon .is-on {
  display: block;
}
.ks-appbar__fab {
  appearance: none;
  border: 0;
  background: transparent;
  width: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0 0.15rem 0.15rem;
  translate: 0 -10px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ks-appbar__fab svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 14px rgba(84, 8, 165, 0.35));
  transition: transform 0.2s ease;
}
.ks-appbar__fab:active svg {
  transform: scale(0.94);
}

/* Add sheet */
.ks-phone__sheet {
  position: absolute;
  inset-inline: 0.6rem;
  bottom: 4.6rem;
  z-index: 7;
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(84, 8, 165, 0.12);
  box-shadow: 0 16px 40px rgba(40, 20, 80, 0.2);
  backdrop-filter: blur(12px);
}
.ks-phone__sheet[hidden] {
  display: none !important;
}
.ks-phone__sheet-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #5408a5;
  text-align: center;
}
.ks-phone__sheet button {
  appearance: none;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f3eefc;
  color: #3b0764;
  cursor: pointer;
}
.ks-phone__sheet button.is-mute {
  background: transparent;
  color: #9e9e9e;
  font-weight: 600;
}

/* Personal-dev hub screen */
.ks-pdev {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.55rem 0.45rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(124, 92, 255, 0.16), transparent 45%),
    radial-gradient(ellipse at 10% 30%, rgba(56, 189, 248, 0.12), transparent 40%),
    #f5f2fb;
  overflow: hidden;
  color: #212121;
}
.ks-pdev__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.1rem 0.15rem;
}
.ks-pdev__top strong {
  font-size: 0.95rem;
  font-weight: 800;
}
.ks-pdev__top span {
  font-size: 0.62rem;
  color: #7c6a99;
  font-weight: 600;
}
.ks-pdev__hero {
  border-radius: 1rem;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(135deg, #5b21b6, #7c5cff 55%, #38bdf8);
  color: #fff;
  display: grid;
  gap: 0.2rem;
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.28);
}
.ks-pdev__hero small {
  font-size: 0.62rem;
  opacity: 0.85;
  font-weight: 700;
}
.ks-pdev__hero strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}
.ks-pdev__hero p {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  opacity: 0.88;
}
.ks-pdev__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  overflow: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.ks-pdev__grid::-webkit-scrollbar {
  display: none;
}
.ks-pdev__card {
  position: relative;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
  padding: 0.65rem 0.4rem 0.55rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(84, 8, 165, 0.06);
  box-shadow: 0 6px 16px rgba(60, 40, 120, 0.06);
  min-height: 92px;
}
.ks-pdev__card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.ks-pdev__card strong {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
}
.ks-pdev__card small {
  font-size: 0.58rem;
  color: #8b7aa8;
  line-height: 1.3;
}
.ks-pdev__badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}
.ks-pdev__card--planner {
  background: linear-gradient(165deg, #ecfdf5, #fff);
}
.ks-pdev__card--sleep {
  background: linear-gradient(165deg, #eef2ff, #fff);
}
.ks-pdev__card--fitness {
  background: linear-gradient(165deg, #fff7ed, #fff);
}
.ks-phone--cta .ks-pdev {
  gap: 0.4rem;
  padding: 0.55rem 0.45rem 0.35rem;
}
.ks-phone--cta .ks-pdev__hero {
  padding: 0.55rem 0.6rem;
}
.ks-phone--cta .ks-pdev__card:nth-child(n + 5) {
  display: none;
}

/* Accounting screen (content, no onboarding modal) */
.ks-acc {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.55rem 0.4rem;
  background: #f5f2fb;
  overflow: hidden;
  font-size: 0.7rem;
  color: #212121;
}
.ks-acc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.1rem 0.25rem;
}
.ks-acc__heading {
  font-size: 0.92rem;
  font-weight: 800;
}
.ks-acc__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(33, 33, 33, 0.06);
}
.ks-acc__filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}
.ks-acc__filters span {
  display: grid;
  place-items: center;
  padding: 0.4rem 0.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eee;
  font-size: 0.62rem;
  font-weight: 600;
  color: #616161;
}
.ks-acc__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.2rem;
  font-size: 0.62rem;
  color: #757575;
}
.ks-acc__month strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #5408a5;
}
.ks-acc__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.ks-acc__sum {
  border-radius: 14px;
  padding: 0.65rem 0.7rem;
  color: #fff;
  display: grid;
  gap: 0.15rem;
}
.ks-acc__sum small {
  font-size: 0.58rem;
  opacity: 0.85;
}
.ks-acc__sum strong {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ks-acc__sum em {
  font-style: normal;
  font-size: 0.55rem;
  opacity: 0.8;
}
.ks-acc__sum--in {
  background: linear-gradient(145deg, #7b55d3, #5408a5);
}
.ks-acc__sum--out {
  background: #fff;
  color: #5408a5;
  border: 1px solid rgba(84, 8, 165, 0.12);
  box-shadow: 0 6px 16px rgba(84, 8, 165, 0.08);
}
.ks-acc__sum--out small,
.ks-acc__sum--out em {
  color: #9e9e9e;
  opacity: 1;
}
.ks-acc__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem;
  height: 56px;
  padding: 0.45rem 0.55rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.05);
}
.ks-acc__chart span {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 6px 6px 2px 2px;
  background: #e7dffd;
}
.ks-acc__chart span.is-active {
  background: linear-gradient(180deg, #7b55d3, #5408a5);
}
.ks-acc__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.15rem;
}
.ks-acc__list-head strong {
  font-size: 0.75rem;
  font-weight: 800;
}
.ks-acc__list-head span {
  font-size: 0.6rem;
  color: #9e9e9e;
}
.ks-acc__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  overflow: hidden;
}
.ks-acc__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(33, 33, 33, 0.05);
}
.ks-acc__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acc-color, #6155f5);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc-color, #6155f5) 18%, transparent);
}
.ks-acc__body {
  min-width: 0;
}
.ks-acc__body strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-acc__body small {
  font-size: 0.58rem;
  color: #9e9e9e;
}
.ks-acc__amount {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e53935;
  white-space: nowrap;
}
.ks-acc__amount.is-plus {
  color: #0d9e32;
}

.ks-phone--cta .ks-acc {
  gap: 0.35rem;
  padding: 0.55rem 0.45rem 0.3rem;
}
.ks-phone--cta .ks-acc__chart {
  height: 42px;
}
.ks-phone--cta .ks-acc__row:nth-child(n + 4) {
  display: none;
}

/* Task swipe — WorkItemCard parity */
.ks-phone__tasks {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  top: 58%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.55rem 0.45rem;
  background: linear-gradient(180deg, rgba(243, 238, 252, 0) 0%, #f3eefc 12%, #f3eefc 100%);
  pointer-events: auto;
}
.ks-phone__tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.15rem 0.1rem;
}
.ks-phone__tasks-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #212121;
}
.ks-phone__tasks-all {
  font-size: 0.68rem;
  font-weight: 600;
  color: #7b55d3;
}
.ks-task {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  touch-action: none;
  flex-shrink: 0;
}
.ks-task__actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  z-index: 0;
}
.ks-task__action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.ks-task.is-done-bg {
  background: #5bcd85;
}
.ks-task.is-later-bg {
  background: #ff8d28;
}
.ks-task__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 64px;
  padding: 0.7rem 0.65rem 0.7rem 0.55rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.08);
  will-change: transform;
}
.ks-task__accent {
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--task-color, #ff0004);
}
.ks-task__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  padding-inline-start: 0.55rem;
}
.ks-task__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--task-color, #ff0004) 10%, transparent);
  color: var(--task-color, #ff0004);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
}
.ks-task__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--task-color, #ff0004);
  flex-shrink: 0;
}
.ks-task__title {
  display: block;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 800;
  color: #212121;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-task__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
}
.ks-task__time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #9e9e9e;
  white-space: nowrap;
}
.ks-task__amount {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 0.62rem;
  font-weight: 600;
  color: #9e9e9e;
  white-space: nowrap;
}
.ks-task__check {
  appearance: none;
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ks-task__check svg {
  display: none;
  width: 22px;
  height: 22px;
}
.ks-task__check .ks-task__check-off {
  display: block;
}
.ks-task.is-done .ks-task__check .ks-task__check-off {
  display: none;
}
.ks-task.is-done .ks-task__check .ks-task__check-on {
  display: block;
}
.ks-task.is-out {
  pointer-events: none;
}
.ks-task.is-out .ks-task__card {
  opacity: 0;
}

.ks-phone--cta .ks-phone__tasks {
  top: 56%;
  gap: 0.35rem;
  padding: 0.4rem 0.45rem 0.35rem;
}
.ks-phone--cta .ks-task__card {
  min-height: 56px;
  padding: 0.55rem 0.5rem 0.55rem 0.45rem;
  gap: 0.35rem;
}
.ks-phone--cta .ks-task__title {
  font-size: 0.74rem;
}
.ks-phone--cta .ks-task__tag {
  font-size: 0.56rem;
}
.ks-phone--cta .ks-phone__tasks-title {
  font-size: 0.7rem;
}

.ks-phone__coach {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.72);
  pointer-events: none;
}
.ks-phone__coach.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Homepage wash */
.ks-home {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 10% 8%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 35% at 90% 18%, rgba(56, 189, 248, 0.07), transparent 50%),
    var(--background);
}

/* ========== Distinct feature cards ========== */
.ks-features {
  background: transparent;
}
.ks-feat-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 900px) {
  .ks-feat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.ks-feat {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
  padding: 1.35rem 1.35rem 1.2rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1px solid transparent;
  box-shadow: 0 22px 50px rgba(40, 20, 80, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ks-feat:hover {
  transform: translateY(-8px);
}
.ks-feat__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.ks-feat__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ks-feat__icon svg {
  width: 24px;
  height: 24px;
}
.ks-feat__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
}
.ks-feat__head p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.ks-feat__stage {
  margin-top: auto;
}

/* Finance card */
.ks-feat--finance {
  background: linear-gradient(165deg, #f3f0ff 0%, #ffffff 45%, #eef8ff 100%);
  border-color: rgba(99, 102, 241, 0.18);
}
.ks-feat--finance .ks-feat__icon {
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.35);
}
.ks-feat--finance:hover {
  box-shadow: 0 28px 56px rgba(99, 102, 241, 0.18);
}
.ks-feat-wallet {
  border-radius: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.ks-feat-wallet__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.88rem;
}
.ks-feat-wallet__row strong {
  color: #059669;
}
.ks-feat-wallet__row.is-out strong {
  color: #e11d48;
}
.ks-feat-wallet__balance {
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.12), rgba(56, 189, 248, 0.12));
}
.ks-feat-wallet__balance small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-foreground);
}
.ks-feat-wallet__balance em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.05rem;
  color: #312e81;
}
.ks-feat-wallet__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 48px;
  margin-top: 0.85rem;
}
.ks-feat-wallet__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #818cf8, #38bdf8);
  transform-origin: bottom;
  animation: ks-bar 2.4s ease-in-out infinite;
}
.ks-feat-wallet__bars span:nth-child(2) {
  animation-delay: 0.15s;
}
.ks-feat-wallet__bars span:nth-child(3) {
  animation-delay: 0.3s;
}
.ks-feat-wallet__bars span:nth-child(4) {
  animation-delay: 0.45s;
}
.ks-feat-wallet__bars span:nth-child(5) {
  animation-delay: 0.6s;
}
.ks-feat-wallet__bars span:nth-child(6) {
  animation-delay: 0.75s;
}

/* Personal development card (reuses finance theme) */
.ks-feat-dev {
  border-radius: 1.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.ks-feat-dev__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.ks-feat-dev__tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.55rem 0.5rem;
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.06);
  min-height: 64px;
}
.ks-feat-dev__tile strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}
.ks-feat-dev__tile small {
  display: block;
  font-size: 0.66rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}
.ks-feat-dev__tile em {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
}
.ks-feat-dev__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  position: relative;
  flex-shrink: 0;
}
.ks-feat-dev__icon--water {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
.ks-feat-dev__icon--water::after {
  content: "";
  position: absolute;
  inset: 8px 10px 6px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: rgba(255, 255, 255, 0.9);
}
.ks-feat-dev__icon--mood {
  background: linear-gradient(135deg, #f472b6, #fb7185);
}
.ks-feat-dev__icon--mood::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}
.ks-feat-dev__icon--sleep {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
}
.ks-feat-dev__icon--sleep::before,
.ks-feat-dev__icon--sleep::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}
.ks-feat-dev__icon--sleep::before {
  width: 12px;
  height: 12px;
  top: 8px;
  right: 7px;
  box-shadow: -4px 1px 0 0 rgba(129, 140, 248, 0.95);
}
.ks-feat-dev__icon--sleep::after {
  width: 3px;
  height: 3px;
  top: 7px;
  left: 8px;
  box-shadow: 4px 5px 0 rgba(255, 255, 255, 0.7), 7px 2px 0 rgba(255, 255, 255, 0.55);
}
.ks-feat-dev__icon--planner {
  background: linear-gradient(135deg, #34d399, #059669);
}
.ks-feat-dev__icon--planner::after {
  content: "";
  position: absolute;
  inset: 8px 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 5px 0 rgba(5, 150, 105, 0.18),
    inset 0 10px 0 rgba(5, 150, 105, 0.12);
}
.ks-feat-dev__icon--fitness {
  background: linear-gradient(135deg, #fb923c, #f43f5e);
}
.ks-feat-dev__icon--fitness::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 3px;
  margin: -1.5px -7px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  box-shadow: 0 -5px 0 rgba(255, 255, 255, 0.85), 0 5px 0 rgba(255, 255, 255, 0.85);
  transform: rotate(-20deg);
}
.ks-feat-dev__icon--period {
  background: linear-gradient(135deg, #c084fc, #e879f9);
}
.ks-feat-dev__icon--period::after {
  content: "";
  position: absolute;
  inset: 9px 11px 8px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: rgba(255, 255, 255, 0.92);
}
.ks-feat-dev__tile--planner {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(248, 250, 252, 0.95));
}
.ks-feat-dev__tile--sleep {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(248, 250, 252, 0.95));
}
.ks-feat-dev__tile--fitness {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.1), rgba(248, 250, 252, 0.95));
}

/* Notify card */
.ks-feat--notify {
  background: linear-gradient(165deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
  border-color: rgba(244, 114, 182, 0.2);
}
.ks-feat--notify .ks-feat__icon {
  background: linear-gradient(135deg, #f97316, #f472b6);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}
.ks-feat--notify:hover {
  box-shadow: 0 28px 56px rgba(244, 114, 182, 0.18);
}
.ks-feat-bells {
  position: relative;
  display: grid;
  gap: 0.55rem;
}
.ks-feat-bell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.18);
  transform-origin: right center;
}
.ks-feat-bell strong {
  font-size: 0.88rem;
}
.ks-feat-bell small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.ks-feat-bell__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55);
  animation: ks-ping 1.8s ease-out infinite;
}
.ks-feat-bell--a {
  animation: ks-slide-in 0.7s ease both;
}
.ks-feat-bell--b {
  animation: ks-slide-in 0.7s ease both 0.15s;
}
.ks-feat-bell--b .ks-feat-bell__dot {
  background: #f97316;
  animation-delay: 0.4s;
}
.ks-feat-bell--c {
  animation: ks-slide-in 0.7s ease both 0.3s;
}
.ks-feat-bell--c .ks-feat-bell__dot {
  background: #a855f7;
  animation-delay: 0.8s;
}
.ks-feat-bell__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0.35rem 0.5rem;
}
.ks-feat-bell__more small {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c2410c;
}
.ks-feat-bell__stack {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #db2777);
  box-shadow: 0 10px 20px rgba(219, 39, 119, 0.3);
  flex-shrink: 0;
}

@keyframes ks-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(251, 113, 133, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
  }
}
@keyframes ks-slide-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Remind card */
.ks-feat--remind {
  background: linear-gradient(165deg, #ecfdf5 0%, #ffffff 45%, #f5f3ff 100%);
  border-color: rgba(16, 185, 129, 0.2);
}
.ks-feat--remind .ks-feat__icon {
  background: linear-gradient(135deg, #10b981, #8b5cf6);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.3);
}
.ks-feat--remind:hover {
  box-shadow: 0 28px 56px rgba(16, 185, 129, 0.16);
}
.ks-feat-timeline {
  display: grid;
  gap: 0.55rem;
  position: relative;
  padding-inline-start: 0.15rem;
}
.ks-feat-timeline::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  bottom: 1.35rem;
  /* center of the 18px marker (first column / inline-start) */
  inset-inline-start: calc(0.85rem + 8px);
  width: 2px;
  margin-inline-start: -1px;
  background: linear-gradient(180deg, #34d399, rgba(139, 92, 246, 0.35));
  z-index: 0;
  pointer-events: none;
}
.ks-feat-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.14);
  position: relative;
  z-index: 1;
}
.ks-feat-timeline__item strong {
  display: block;
  font-size: 0.88rem;
}
.ks-feat-timeline__item small {
  color: var(--muted-foreground);
  font-size: 0.74rem;
}
.ks-feat-timeline__check,
.ks-feat-timeline__dot,
.ks-feat-timeline__pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.ks-feat-timeline__check {
  background: #10b981;
  box-shadow: inset 0 0 0 2px #fff;
}
.ks-feat-timeline__check::after {
  content: "";
  position: absolute;
  inset: 4px 3px 5px 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.ks-feat-timeline__dot {
  background: #ddd6fe;
  box-shadow: inset 0 0 0 2px #fff;
}
.ks-feat-timeline__pulse {
  background: #8b5cf6;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
  animation: ks-ping 1.6s ease-out infinite;
}
.ks-feat-timeline__item.is-now {
  border-color: rgba(139, 92, 246, 0.28);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.9));
}
.ks-feat-timeline__item.is-done {
  opacity: 0.86;
}

/* ========== Why ========== */
.ks-why {
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 92, 255, 0.12), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.1), transparent 35%),
    linear-gradient(180deg, #f7f4ff 0%, #fff 48%, #f4fbff 100%);
}

.ks-why__grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .ks-why__grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.ks-why__panel {
  border-radius: calc(var(--radius-lg) + 0.15rem);
  padding: clamp(1.6rem, 3.2vw, 2.7rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.4), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.28), transparent 40%),
    linear-gradient(160deg, #070b1c, #1a1240 55%, #24104a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 60px rgba(20, 10, 50, 0.28);
}

.ks-why__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
.ks-why__orb--a {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  animation: ks-float 8s ease-in-out infinite;
}
.ks-why__orb--b {
  width: 140px;
  height: 140px;
  bottom: -30px;
  right: -20px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.3), transparent 70%);
  animation: ks-float 7s ease-in-out infinite reverse;
}

.ks-why__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.35rem 0 0.15rem;
}
.ks-why__stats > div {
  border-radius: 1rem;
  padding: 0.75rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.ks-why__stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ks-why__stats small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.72);
}

.ks-why__list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .ks-why__list {
    grid-template-columns: 1fr 1fr;
    align-content: stretch;
  }
}

.ks-why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  border-radius: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.88);
  padding: 1.2rem 1.2rem 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(40, 20, 80, 0.05);
}

.ks-why-item.is-active,
.ks-why-item:hover {
  border-color: rgba(84, 8, 165, 0.28);
  box-shadow: 0 18px 40px rgba(84, 8, 165, 0.12);
  transform: translateY(-2px);
}

.ks-why-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5408a5, #7b55d3);
  box-shadow: 0 10px 22px rgba(84, 8, 165, 0.28);
  flex-shrink: 0;
}
.ks-why-item__icon svg {
  width: 22px;
  height: 22px;
}
.ks-why-item:nth-child(2) .ks-why-item__icon {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.ks-why-item:nth-child(3) .ks-why-item__icon {
  background: linear-gradient(135deg, #f97316, #db2777);
}
.ks-why-item:nth-child(4) .ks-why-item__icon {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.ks-why-item__body {
  min-width: 0;
}
.ks-why-item__index {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7b55d3;
}

.ks-why-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.ks-why-item p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 0.9rem;
}

/* ========== Pricing (21st Pricing pattern) ========== */
.ks-pricing__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ks-pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.ks-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ks-pricing-card--featured {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7c5cff, #38bdf8, #f9a8d4) border-box;
  border: 2px solid transparent;
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(124, 92, 255, 0.2);
}

.ks-pricing-card--featured::before {
  content: none;
}

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

.ks-pricing-card__top {
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 55%, white);
}

.ks-pricing-card--featured .ks-pricing-card__top {
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.ks-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ks-pricing-card__duration {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.ks-plans__note {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7b55d3;
}
.ks-pricing-card__note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.ks-pricing-card:not(.ks-pricing-card--featured) .ks-pricing-card__note {
  color: var(--muted-foreground);
}
.ks-pricing-card__same {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7b55d3;
  text-align: center;
}
.ks-pricing-card__price {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--foreground);
}

.ks-pricing-card__body {
  padding: 1.25rem 1.35rem;
  flex: 1;
}

.ks-plan-badge {
  width: 92px;
  height: 92px;
  margin: 0.25rem auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  box-shadow: 0 14px 28px rgba(88, 60, 180, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.55);
}
.ks-plan-badge strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}
.ks-plan-badge span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
}
.ks-plan-badge--sky {
  background: linear-gradient(145deg, #38bdf8, #6366f1);
}
.ks-plan-badge--violet {
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.35);
  transform: scale(1.06);
}
.ks-plan-badge--rose {
  background: linear-gradient(145deg, #f472b6, #a855f7);
}
.ks-pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.ks-pricing-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}
.ks-pricing-list svg {
  color: #8b5cf6;
  flex-shrink: 0;
}

.ks-pricing-card__foot {
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--border);
}

.ks-pricing-card__foot .ks-btn {
  width: 100%;
}

/* ========== Articles ========== */
.ks-articles__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ks-articles__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .ks-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ks-articles__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ks-article {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.ks-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.ks-article__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.ks-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ks-article:hover .ks-article__media img {
  transform: scale(1.05);
}

.ks-article__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.ks-article__date {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.ks-article__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}

.ks-article__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========== About preview ========== */
.ks-about {
  overflow: hidden;
}

.ks-about__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .ks-about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ks-about__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.ks-stack-card {
  position: absolute;
  width: min(78%, 320px);
  padding: 1.25rem 1.35rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px rgba(40, 20, 80, 0.12);
  transition: transform 0.35s ease;
}
.ks-stack-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.ks-stack-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}
.ks-stack-card--1 {
  transform: translate(-18%, -28%) rotate(-8deg);
  z-index: 1;
}
.ks-stack-card--2 {
  transform: translate(10%, -4%) rotate(3deg);
  z-index: 2;
}
.ks-stack-card--3 {
  transform: translate(-4%, 34%) rotate(-2deg);
  z-index: 3;
}
.ks-about__visual:hover .ks-stack-card--1 {
  transform: translate(-24%, -34%) rotate(-12deg);
}
.ks-about__visual:hover .ks-stack-card--2 {
  transform: translate(16%, -8%) rotate(6deg);
}
.ks-about__visual:hover .ks-stack-card--3 {
  transform: translate(-2%, 40%) rotate(0deg);
}
.ks-stack-bars,
.ks-stack-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 42px;
  margin-top: 0.9rem;
}
.ks-stack-bars span,
.ks-stack-chart span {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(180deg, #8b5cf6, #38bdf8);
  animation: ks-bar 2s ease-in-out infinite;
}
.ks-stack-bars span:nth-child(1) {
  height: 45%;
}
.ks-stack-bars span:nth-child(2) {
  height: 75%;
  animation-delay: 0.2s;
}
.ks-stack-bars span:nth-child(3) {
  height: 55%;
  animation-delay: 0.4s;
}
.ks-stack-chart span:nth-child(1) {
  height: 35%;
}
.ks-stack-chart span:nth-child(2) {
  height: 60%;
  animation-delay: 0.1s;
}
.ks-stack-chart span:nth-child(3) {
  height: 90%;
  animation-delay: 0.2s;
}
.ks-stack-chart span:nth-child(4) {
  height: 50%;
  animation-delay: 0.3s;
}
.ks-stack-chart span:nth-child(5) {
  height: 70%;
  animation-delay: 0.4s;
}
.ks-stack-pulse {
  margin-top: 0.9rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  overflow: hidden;
  position: relative;
}
.ks-stack-pulse::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
  animation: ks-shine 2.4s ease-in-out infinite;
}

.ks-about__chips {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.ks-chip,
.ks-chip--glass {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.ks-chip__badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}

.ks-chip h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.ks-chip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========== Testimonials ========== */
.ks-reviews {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
}

.ks-reviews__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background:
    radial-gradient(circle at 0% 100%, rgba(138, 119, 221, 0.22), transparent 42%),
    linear-gradient(135deg, #ebe6ff 0%, #f4f1ff 45%, #e8eefc 100%);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.ks-reviews__head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  justify-items: end;
  text-align: right;
}
.ks-reviews__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
}
.ks-reviews__nav {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.ks-reviews__btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(84, 8, 165, 0.18);
  background: #fff;
  color: #5408a5;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ks-reviews__btn:hover {
  background: #f3eefc;
  transform: translateY(-1px);
}

.ks-reviews__scroller {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.ks-reviews__scroller.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.ks-reviews__scroller::-webkit-scrollbar {
  display: none;
}

.ks-quote {
  width: min(78vw, 300px);
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(84, 8, 165, 0.08);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: none;
  min-height: 180px;
}

.ks-quote__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ks-quote__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  box-shadow: 0 0 0 3px rgba(123, 85, 211, 0.12);
}
.ks-quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.35);
}
.ks-quote__person strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.ks-quote__stars {
  display: block;
  width: 100px;
  height: auto;
}

.ks-quote__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #4b5563;
  font-weight: 500;
}

@media (min-width: 900px) {
  .ks-reviews__panel {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  }
  .ks-reviews__head {
    margin-bottom: 0;
    align-content: start;
  }
  .ks-quote {
    width: 280px;
  }
}

/* ========== Download CTA ========== */
.ks-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(124, 92, 255, 0.4), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(56, 189, 248, 0.28), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 114, 182, 0.2), transparent 45%),
    linear-gradient(145deg, #050814, #1a1240);
  color: #fff;
}

.ks-cta__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ks-cta__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ks-cta__copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.ks-cta__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ks-cta__note {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.85;
  white-space: pre-line;
}

.ks-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ks-cta__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.ks-cta__aurora {
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: ks-glow-pulse 5s ease-in-out infinite;
}

/* ========== Inner hero ========== */
.ks-inner-hero {
  position: relative;
  padding: calc(72px + clamp(2.5rem, 6vw, 4rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(20, 184, 166, 0.2), transparent 45%),
    linear-gradient(180deg, #0a1620 0%, #102433 100%);
  color: #fff;
  overflow: hidden;
}

.ks-inner-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

/* ========== Contact form ========== */
.ks-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.ks-field {
  display: grid;
  gap: 0.4rem;
}

.ks-field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.ks-field input,
.ks-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fbfcfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-field input:focus,
.ks-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ks-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== Footer ========== */
.ks-footer {
  padding: 1.75rem 0 1.35rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.ks-footer__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.ks-footer__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ks-footer__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (min-width: 900px) {
  .ks-footer__logo {
    height: 48px;
    max-width: 180px;
  }
}

.ks-footer-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ks-footer-nav::-webkit-scrollbar {
  display: none;
}

.ks-footer-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.ks-footer-link:hover,
.ks-footer-link.is-active {
  color: var(--primary);
}

.ks-footer__aside {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex-shrink: 0;
}

.ks-terms--inline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.ks-terms--inline:hover {
  color: var(--primary);
}

.ks-enamad--sm,
.ks-enamad--sm img {
  width: 44px;
  height: 44px;
  display: block;
}

.ks-social {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.ks-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
}

.ks-social img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.ks-footer__meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ks-footer__copy {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-enamad {
  width: 90px;
  height: 90px;
}

@media (max-width: 899px) {
  .ks-footer__row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ks-footer-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
  }
  .ks-footer__aside {
    margin-inline-start: auto;
  }
  .ks-terms--inline {
    display: none;
  }
  .ks-footer__copy {
    white-space: normal;
  }
}

/* ========== 404 / misc ========== */
.ks-empty {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.ks-empty__code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  background: linear-gradient(120deg, #14b8a6, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 0;
}

.ks-page-content {
  padding: var(--section-y) 0;
}

.ks-prose {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
}

.ks-prose h1,
.ks-prose h2,
.ks-prose h3 {
  line-height: 1.35;
}

.ks-story-block,
.ks-vision-block,
.ks-goals-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ks-story-block,
  .ks-vision-block,
  .ks-goals-block {
    grid-template-columns: 1fr 1fr;
  }
}

.ks-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.ks-media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.ks-mini-cards {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .ks-mini-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ks-mini-card {
  border-radius: 1.1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.ks-mini-card img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.ks-mini-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.ks-mini-cards--rich {
  margin-top: 1.5rem;
}
.ks-mini-card--rich {
  text-align: right;
  display: grid;
  gap: 0.45rem;
  position: relative;
  padding-top: 1.4rem;
}
.ks-mini-card--rich img {
  margin: 0 0 0.35rem auto;
}
.ks-mini-card__index {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7b55d3;
  opacity: 0.7;
}
.ks-mini-card--rich p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.ks-page-why__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 92, 255, 0.45), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(56, 189, 248, 0.28), transparent 40%),
    linear-gradient(145deg, #12082a, #2a1760);
  color: #fff;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .ks-page-why__panel {
    padding: 2.25rem 2rem;
  }
}

.ks-module-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .ks-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ks-module-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.ks-module-card {
  border-radius: 1.25rem;
  padding: 1.15rem 1.1rem;
  background: linear-gradient(165deg, #f6f2ff, #fff 55%);
  border: 1px solid rgba(123, 85, 211, 0.12);
  display: grid;
  gap: 0.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ks-module-card--light {
  background: #fff;
}
.ks-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(84, 8, 165, 0.1);
}
.ks-module-card__num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7b55d3;
}
.ks-module-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.ks-module-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.ks-modules-band {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(123, 85, 211, 0.08), transparent 55%),
    #faf8ff;
}

/* ========== Services overview phone slider ========== */
.ks-overview {
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(123, 85, 211, 0.1), transparent 60%),
    #faf8ff;
  overflow: hidden;
}
.ks-overview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.ks-overview__titles {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  text-align: right;
}
.ks-overview__nav {
  position: relative;
  width: 81px;
  height: 40px;
  flex-shrink: 0;
}
.ks-overview__nav-art {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ks-overview__btn {
  position: absolute;
  inset-block: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.ks-overview__btn--prev {
  inset-inline-start: 0;
  width: 32px;
}
.ks-overview__btn--next {
  inset-inline-end: 0;
  width: 40px;
}

.ks-overview__carousel {
  position: relative;
  width: 100%;
  user-select: none;
}
.ks-overview__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.ks-overview__side {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #5408a5;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(84, 8, 165, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.ks-overview__side:hover {
  background: #f3eefc;
  transform: scale(1.05);
}

.ks-overview__viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  padding: 1.25rem 0 0.5rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ks-overview__carousel.is-dragging .ks-overview__viewport {
  cursor: grabbing;
}

.ks-overview__track {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ks-overview__slide {
  flex: 0 0 auto;
  width: 150px;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  opacity: 0.45;
  transform: scale(0.88);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ks-overview__slide.is-near {
  opacity: 0.72;
  transform: scale(0.94);
}
.ks-overview__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.ks-overview__phone {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 18px 40px rgba(60, 40, 120, 0.18);
  overflow: hidden;
}
.ks-overview__slide.is-active .ks-overview__phone {
  height: 380px;
  box-shadow: 0 28px 56px rgba(84, 8, 165, 0.28);
}
.ks-overview__frame {
  display: none;
}
.ks-overview__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}
.ks-overview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.ks-overview__caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin: 0;
}
.ks-overview__slide.is-active .ks-overview__caption {
  color: #5408a5;
}

.ks-overview__active-label {
  text-align: center;
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #312e81;
}

.ks-overview__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  min-height: 10px;
}
.ks-overview__dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1c4e9;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.ks-overview__dot.is-active {
  width: 50px;
  background: linear-gradient(to left, #5408a5 0%, #7b55d3 75%);
}

@media (min-width: 768px) {
  .ks-overview__slide {
    width: 180px;
  }
  .ks-overview__phone {
    height: 360px;
  }
  .ks-overview__slide.is-active .ks-overview__phone {
    height: 460px;
  }
}

@media (min-width: 1024px) {
  .ks-overview__slide {
    width: 210px;
  }
  .ks-overview__phone {
    height: 420px;
    border-radius: 34px;
  }
  .ks-overview__slide.is-active .ks-overview__phone {
    height: 520px;
  }
  .ks-overview__track {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .ks-overview__nav {
    display: none;
  }
  .ks-overview__side {
    width: 36px;
    height: 36px;
  }
  .ks-overview__slide {
    width: 132px;
  }
  .ks-overview__phone {
    height: 260px;
  }
  .ks-overview__slide.is-active .ks-overview__phone {
    height: 320px;
  }
}

/* ========== Custom rocket cursor ========== */
body.ks-has-cursor,
body.ks-has-cursor * {
  cursor: none !important;
}
body.ks-has-cursor input,
body.ks-has-cursor textarea,
body.ks-has-cursor select,
body.ks-has-cursor [contenteditable="true"] {
  cursor: text !important;
}

.ks-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 100000;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.22s ease;
  will-change: transform;
}
.ks-cursor,
.ks-cursor * {
  pointer-events: none !important;
}
.ks-cursor.is-on {
  opacity: 1;
}

.ks-cursor__rocket {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) rotate(-20deg);
  filter: drop-shadow(0 8px 18px rgba(84, 8, 165, 0.42));
  will-change: transform;
}
.ks-cursor__rocket svg {
  display: block;
  overflow: visible;
}

.ks-cursor__flame {
  position: absolute;
  left: 50%;
  top: 86%;
  width: 12px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 20%, #fff7ed 0%, transparent 45%),
    linear-gradient(180deg, #fde68a 0%, #fb923c 42%, #ef4444 78%, transparent 100%);
  transform-origin: 50% 0%;
  transform: scale(var(--flame-scale, 0.7));
  opacity: 0.28;
  filter: blur(0.2px);
  animation: ks-cursor-flame 0.28s ease-in-out infinite alternate;
  pointer-events: none;
}
.ks-cursor.is-thrusting .ks-cursor__flame {
  animation-duration: 0.14s;
  filter: blur(0.4px) drop-shadow(0 0 8px rgba(251, 146, 60, 0.75));
}
.ks-cursor__flame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 6px;
  height: 12px;
  margin-left: -3px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #fde68a 60%, transparent 100%);
  opacity: 0.85;
}

.ks-cursor__smoke {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
}
.ks-cursor__puff {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 10px);
  height: var(--size, 10px);
  margin: calc(var(--size, 10px) / -2) 0 0 calc(var(--size, 10px) / -2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), rgba(167, 139, 250, 0.22) 42%, rgba(56, 189, 248, 0.08) 68%, transparent 72%);
  filter: blur(1.2px);
  opacity: 0;
  animation: ks-cursor-puff var(--dur, 560ms) ease-out forwards;
  --sx: 0px;
  --sy: 0px;
  --ex: 0px;
  --ey: 0px;
  pointer-events: none;
}

.ks-cursor__orbit-lag {
  position: absolute;
  left: 0;
  top: 0;
  /* Wider orbit — planet stays farther from the rocket */
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  animation: ks-cursor-orbit-drift 7s ease-in-out infinite;
}

.ks-cursor__orbit-spin {
  width: 100%;
  height: 100%;
  animation: ks-cursor-spin 5.4s linear infinite;
}

.ks-cursor__ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.28);
  box-shadow: inset 0 0 18px rgba(124, 92, 255, 0.08);
  opacity: 0.7;
}

.ks-cursor__planet {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fef3c7 0%, #fbbf24 38%, #d97706 72%, #78350f 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 18px rgba(251, 191, 36, 0.45),
    inset -4px -3px 8px rgba(120, 53, 15, 0.35);
  animation: ks-cursor-planet-spin 3.2s linear infinite;
}
.ks-cursor__planet::before {
  content: "";
  position: absolute;
  inset: 18% 22% auto auto;
  width: 28%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.ks-cursor__planet::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  top: 42%;
  height: 5px;
  border: 1.5px solid rgba(255, 248, 220, 0.75);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
}

@keyframes ks-cursor-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ks-cursor-orbit-drift {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes ks-cursor-planet-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ks-cursor-flame {
  from {
    transform: scaleX(0.88) scaleY(var(--flame-scale, 0.7));
  }
  to {
    transform: scaleX(1.08) scaleY(calc(var(--flame-scale, 0.7) * 1.18));
  }
}
@keyframes ks-cursor-puff {
  0% {
    opacity: 0.55;
    transform: translate3d(var(--sx), var(--sy), 0) scale(0.45);
  }
  35% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--ex), var(--ey), 0) scale(1.55);
  }
}

@media (pointer: coarse) {
  body.ks-has-cursor,
  body.ks-has-cursor * {
    cursor: auto !important;
  }
  .ks-cursor {
    display: none !important;
  }
}
