
:root {
  --bg: #0c0a13;
  --panel: #161221;
  --panel2: #1d172b;
  --line: rgba(178, 160, 225, 0.14);
  --tx: #f3f0fa;
  --tx2: #988fb0;
  --acc: #8b5cf6;
  --acc-tx: #ffffff;
  --acc-soft: rgba(139, 92, 246, 0.14);
  --acc2: #c6f54a;
  --acc2-tx: #1d2606;
  --coral: #ff6b5e;
  --amber: #ffb454;
  --rad: 16px;
  --rad-btn: 12px;
  --font-d: 'Unbounded', sans-serif;
  --font-b: 'Onest', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

::selection { background: var(--acc); color: var(--acc-tx); }

.kd-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(rgba(178, 160, 225, 0.2) 1px, transparent 1.5px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 18%, #000, transparent);
          mask-image: radial-gradient(80% 70% at 60% 18%, #000, transparent);
  animation: kd-dots 80s linear infinite;
}
.kd-bg::before {
  content: ''; position: absolute; width: 760px; height: 560px; left: 52%; top: -180px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.32), transparent 70%);
  filter: blur(40px);
  animation: kd-aurora1 18s ease-in-out infinite alternate;
}
.kd-bg::after {
  content: ''; position: absolute; width: 520px; height: 420px; left: 6%; top: 32%;
  background: radial-gradient(closest-side, rgba(198, 245, 74, 0.09), transparent 70%);
  filter: blur(50px);
  animation: kd-aurora2 24s ease-in-out infinite alternate;
}
.kd-bg--login {
  -webkit-mask-image: radial-gradient(85% 75% at 50% 25%, #000, transparent);
          mask-image: radial-gradient(85% 75% at 50% 25%, #000, transparent);
}
.kd-bg--login::before { left: 30%; top: -220px; }
.kd-bg--login::after { left: 12%; top: 50%; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(12, 10, 19, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-container {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.kd-logo {
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.nav-links { display: flex; gap: 26px; align-items: center; margin-left: auto; font-size: 14.5px; color: var(--tx2); }
.nav-link { position: relative; transition: color 0.2s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--acc2); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: var(--tx); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  background: var(--acc); color: var(--acc-tx);
  padding: 9px 18px; border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 28px var(--acc-soft); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; color: var(--tx); font-size: 1.4rem; cursor: pointer; padding: 6px;
}

.nav-user-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--acc-soft); border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.4rem 0.85rem 0.4rem 0.4rem; border-radius: 50px;
  color: var(--tx); font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s ease;
}
.nav-user-chip:hover { background: rgba(139, 92, 246, 0.24); border-color: rgba(139, 92, 246, 0.55); transform: translateY(-1px); }
.nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-user-avatar-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-chip .avatar-ears-wrap { width: 28px; height: 28px; align-items: center; justify-content: center; overflow: visible; }
.nav-avatar-core { position: relative; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.nav-avatar-core.kodari-connected { overflow: visible; }
.nav-avatar-core.kodari-connected::after {
  content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
  border-radius: 50%; border: 2px dashed #8b5cf6;
  animation: kd-rotate-dashed 20s linear infinite, kd-color-cycle 4s linear infinite;
  pointer-events: none; z-index: 1;
}
.nav-user-chip .avatar-ears-wrap.has-cat-ears::before,
.nav-user-chip .avatar-ears-wrap.has-cat-ears::after { z-index: 2; }

.kd-hero {
  position: relative; z-index: 1;
  padding: 150px 48px 64px;
}
.kd-hero-in {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.kd-eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tx2);
  display: inline-flex; align-items: center; gap: 0; margin-bottom: 22px;
  min-height: 1.6em;
}
.kd-eyebrow b { color: var(--acc); font-weight: 500; }
.kd-hero h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 46px; line-height: 1.14; max-width: 13ch; text-wrap: balance;
}
.kd-hero h1 .kd-w { display: inline-block; }
.kd-hero h1 em {
  background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 0 / 100% 100%;
  color: var(--acc-tx); border-radius: 12px; padding: 0 14px;
  display: inline-block; transform: rotate(-1.5deg);
}
.kd-greet {
  display: none; font-family: var(--mono); font-size: 13px; color: var(--acc2); margin-bottom: 10px;
}
.kd-greet.visible { display: block; animation: kd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.kd-sub { color: var(--tx2); font-size: 17.5px; max-width: 46ch; margin-top: 20px; text-wrap: pretty; }
.kd-sub a { color: var(--tx); border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.kd-sub a:hover { border-bottom-color: var(--acc2); }

.kd-ctas { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.kd-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-b); font-weight: 700; font-size: 15.5px;
  background: var(--acc); color: var(--acc-tx);
  padding: 13px 26px; border-radius: var(--rad-btn);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.kd-btn::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.kd-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 32px var(--acc-soft); }
.kd-btn:hover::after { animation: kd-shine 0.7s ease forwards; }
.kd-btn--ghost { background: transparent; color: var(--tx); border-color: var(--line); }
.kd-btn--ghost:hover { border-color: var(--tx2); box-shadow: none; filter: none; }
.kd-btn--ghost img { display: block; }

.kd-btn .slider-btn-text { display: inline-grid; text-align: left; }
.kd-btn .slider-item {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  opacity: 0; transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.kd-btn .slider-item svg { flex-shrink: 0; }
.kd-btn .slider-item.active { opacity: 1; transform: translateY(0); }
.kd-btn .slider-item.exit { opacity: 0; transform: translateY(-110%); }

.kd-stats { display: flex; gap: 36px; margin-top: 44px; }
.kd-stat b { font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--tx); display: block; font-variant-numeric: tabular-nums; }
.kd-stat span { font-size: 13px; color: var(--tx2); }
.kd-stat--live b i { font-style: normal; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc2); margin-right: 6px; box-shadow: 0 0 10px var(--acc2); animation: kd-live 2s ease-in-out infinite; }
a.kd-stat b, a.kd-stat span { transition: color 0.2s; }
a.kd-stat:hover span { color: var(--tx); }
a.kd-stat:hover b { color: var(--acc2); }

.kd-phone-wrap { display: flex; justify-content: center; perspective: 900px; }
.kd-phone {
  width: 280px; height: 580px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 40px;
  background: var(--panel); padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.02);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.kd-phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 31px; overflow: hidden; background: #0a0812;
}
.kd-phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.5s ease;
}
.kd-phone-screen img.active { opacity: 1; }
.kd-section { padding: 72px 48px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.kd-section-in { max-width: 1180px; margin: 0 auto; }
.kd-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 14px; min-height: 1.6em;
}
.kd-h2 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 27px; line-height: 1.15; max-width: 24ch; text-wrap: balance;
}

.kd-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.kd-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, background 0.25s;
}
.kd-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), var(--acc-soft), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.kd-card:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: rgba(139, 92, 246, 0.45); background: var(--panel2); }
.kd-card:hover::before { opacity: 1; }
.kd-card .kd-num { font-family: var(--mono); font-size: 12px; color: var(--acc); display: block; margin-bottom: 16px; }
.kd-card h3 { font-family: var(--font-d); font-weight: 700; font-size: 16px; margin-bottom: 9px; }
.kd-card p { color: var(--tx2); font-size: 14.5px; }

.kd-marquee { margin-top: 26px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.kd-marquee-track { display: flex; width: max-content; animation: kd-marquee 40s linear infinite; }
.kd-marquee .kd-chip { margin-right: 10px; }
.kd-chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--tx2); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.kd-chip:hover { color: var(--acc2-tx); border-color: var(--acc2); background: var(--acc2); }

.kd-pros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.kd-pro {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.25s;
}
.kd-pro:hover {
  transform: translateY(-4px);
  border-color: var(--pa);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.kd-pro-viz {
  height: 128px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--pa) 10%, var(--bg)), color-mix(in oklab, var(--pa) 3%, var(--bg)));
}
.kd-pro-body { padding: 18px 20px 20px; }
.kd-pro-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--pa); display: block; margin-bottom: 8px; }
.kd-pro h3 { font-family: var(--font-d); font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.kd-pro p { color: var(--tx2); font-size: 13.5px; line-height: 1.55; }

.kd-viz-code { position: absolute; inset: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 2.1; white-space: nowrap; }
.kd-viz-code i { font-style: normal; }
.kd-viz-code .ln { color: rgba(255, 255, 255, 0.18); margin-right: 10px; }
.kd-viz-code .c1 { color: var(--pa); }
.kd-viz-code .c2 { color: #7dd3fc; }
.kd-viz-code .c3 { color: var(--acc2); }
.kd-viz-code .cx { color: var(--tx2); }
.kd-code-line { overflow: hidden; }
html.js .kd-code-line { max-width: 0; }
.in-view .kd-code-line { animation: kd-typeline 0.7s steps(18, end) forwards; }
.in-view .kd-code-line:nth-child(2) { animation-delay: 0.75s; }
.in-view .kd-code-line:nth-child(3) { animation-delay: 1.5s; }
.kd-code-caret { display: inline-block; width: 7px; height: 13px; background: var(--pa); vertical-align: -2px; animation: kd-blink 1.1s steps(1, end) infinite; }
.kd-pro:hover .kd-code-caret { animation-duration: 0.35s; }
.kd-code-extra { display: inline-block; overflow: hidden; max-width: 0; white-space: nowrap; vertical-align: bottom; }
.kd-pro:hover .kd-code-extra { animation: kd-typeline 0.55s steps(10, end) 0.15s forwards; }

.kd-viz-design { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.kd-frame {
  position: relative; border: 1px solid var(--pa); padding: 5px 18px;
  font-family: var(--font-d); font-weight: 700; font-size: 19px; color: var(--tx);
}
html.js .kd-frame { clip-path: inset(0 100% 0 0); }
.in-view .kd-frame { animation: kd-draw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.kd-frame i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--pa); animation: kd-pulse 2.4s ease-in-out infinite; }
.kd-frame i:nth-child(1) { top: -4px; left: -4px; }
.kd-frame i:nth-child(2) { top: -4px; right: -4px; animation-delay: 0.6s; }
.kd-frame i:nth-child(3) { bottom: -4px; left: -4px; animation-delay: 1.2s; }
.kd-frame i:nth-child(4) { bottom: -4px; right: -4px; animation-delay: 1.8s; }
.kd-swatches { display: flex; gap: 8px; }
.kd-swatches i { width: 16px; height: 16px; border-radius: 5px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kd-swatches i:nth-child(2) { transition-delay: 0.05s; }
.kd-swatches i:nth-child(3) { transition-delay: 0.1s; }
.kd-swatches i:nth-child(4) { transition-delay: 0.15s; }
.kd-pro:hover .kd-swatches i { transform: translateY(-4px) rotate(8deg); }

.kd-viz-chart { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 8px; padding: 34px 22px 0; }
.kd-viz-chart i {
  flex: 1; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--pa), color-mix(in oklab, var(--pa) 30%, transparent));
  transform-origin: bottom;
}
html.js .kd-viz-chart i { transform: scaleY(0); }
.in-view .kd-viz-chart i { animation: kd-grow 0.9s cubic-bezier(0.34, 1.3, 0.5, 1) forwards; }
.in-view .kd-viz-chart i:nth-child(1) { animation-delay: 0.25s; }
.in-view .kd-viz-chart i:nth-child(2) { animation-delay: 0.37s; }
.in-view .kd-viz-chart i:nth-child(3) { animation-delay: 0.49s; }
.in-view .kd-viz-chart i:nth-child(4) { animation-delay: 0.61s; }
.in-view .kd-viz-chart i:nth-child(5) { animation-delay: 0.73s; }
.kd-pro:hover .kd-viz-chart i { transform: scaleY(1); animation: kd-bounce 0.5s ease; }
.kd-pro:hover .kd-viz-chart i:nth-child(2) { animation-delay: 0.05s; }
.kd-pro:hover .kd-viz-chart i:nth-child(3) { animation-delay: 0.1s; }
.kd-pro:hover .kd-viz-chart i:nth-child(4) { animation-delay: 0.15s; }
.kd-pro:hover .kd-viz-chart i:nth-child(5) { animation-delay: 0.2s; }
.kd-chart-up { position: absolute; top: 12px; right: 16px; font-family: var(--mono); font-size: 12px; color: var(--pa); font-variant-numeric: tabular-nums; }
html.js .kd-chart-up { opacity: 0; }
.in-view .kd-chart-up { animation: kd-rise 0.5s ease-out 0.9s forwards; }

.kd-viz-sec { position: absolute; inset: 0; padding: 14px 18px; font-family: var(--mono); font-size: 11.5px; line-height: 2.2; color: var(--tx2); }
html.js .kd-viz-sec > div:not(.kd-scan) { opacity: 0; }
.in-view .kd-viz-sec > div:not(.kd-scan) { animation: kd-rise 0.4s ease-out forwards; }
.in-view .kd-viz-sec > div:nth-child(2) { animation-delay: 0.2s; }
.in-view .kd-viz-sec > div:nth-child(3) { animation-delay: 0.65s; }
.in-view .kd-viz-sec > div:nth-child(4) { animation-delay: 1.1s; }
.kd-viz-sec .ok { color: var(--pa); }
.kd-redact { display: inline-block; width: 64px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); vertical-align: 1px; }
.kd-pro:hover .kd-redact { animation: kd-glitch 0.4s steps(2, end) 2; }
.kd-scan {
  position: absolute; left: 0; right: 0; top: 48px; height: 14px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--pa) 26%, transparent), transparent);
  animation: kd-scan 3.2s ease-in-out infinite;
}
.kd-pro:hover .kd-scan { animation-duration: 1.2s; }

.kd-pros-more {
  margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--tx2);
  border: 1px dashed var(--line); border-radius: 999px; padding: 9px 18px; display: table;
  transition: color 0.2s, border-color 0.2s;
}
.kd-pros-more:hover { color: var(--tx); border-color: var(--acc2); }

.kd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.kd-step { border-top: 2px solid var(--line); padding-top: 20px; position: relative; cursor: pointer; }
.kd-step::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 44px; height: 2px;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
}
.in-view.kd-step::before, .kd-step.in-view::before { animation: kd-line 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.kd-step:hover::before { background: var(--acc2); }
.kd-step b { font-family: var(--mono); font-size: 13px; color: var(--acc); display: block; margin-bottom: 12px; font-weight: 500; }
.kd-step h3 { font-family: var(--font-d); font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.kd-step p { color: var(--tx2); font-size: 14.5px; }
.kd-step.active-step::before { transform: scaleX(1); background: var(--acc2); }

.kd-faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 760px; }
.kd-faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  transition: border-color 0.25s;
}
.kd-faq-item[open] { border-color: rgba(139, 92, 246, 0.45); }
.kd-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; font-weight: 600; font-size: 15.5px;
}
.kd-faq-item summary::-webkit-details-marker { display: none; }
.kd-faq-item summary::before {
  content: '>'; font-family: var(--mono); color: var(--acc2); flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kd-faq-item[open] summary::before { transform: rotate(90deg); }
.kd-faq-answer { padding: 0 22px 18px 46px; color: var(--tx2); font-size: 14.5px; }
.kd-faq-answer a { color: var(--tx); border-bottom: 1px solid var(--line); }
.kd-faq-answer a:hover { border-bottom-color: var(--acc2); }
.kd-faq-lede { color: var(--tx2); margin-top: 12px; font-size: 15px; }
.kd-faq-lede a { color: var(--tx); border-bottom: 1px solid var(--line); }
.kd-faq-lede a:hover { border-bottom-color: var(--acc2); }

.kd-cta { text-align: center; overflow: hidden; }
.kd-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 50% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
  animation: kd-breathe 7s ease-in-out infinite;
}
.kd-cta > * { position: relative; z-index: 1; }
.kd-cta .kd-h2 { margin: 0 auto; }
.kd-cta .kd-btn { margin-top: 30px; }
.kd-cta .kd-kicker { text-align: center; }

.kd-footer {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 48px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--tx2); position: relative; z-index: 1;
  flex-wrap: wrap;
}
.kd-footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.kd-footer a { transition: color 0.2s; }
.kd-footer a:hover { color: var(--tx); }

.kd-login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 28px; position: relative; z-index: 1;
}
.kd-login .kd-logo { justify-content: center; margin-bottom: 26px; font-size: 17px; }
.login-card {
  width: 100%; max-width: 392px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 34px 30px;
  position: relative; z-index: 1;
}
.login-header { text-align: center; }
.login-header .logo,
.login-card h1 {
  font-family: var(--font-d); font-weight: 700; font-size: 19px; text-align: center; color: var(--tx);
}
.logo-subtitle, .kv-hint {
  text-align: center; color: var(--tx2); font-size: 14px; margin-top: 8px; margin-bottom: 26px;
  display: block;
}
.logo-subtitle a { color: var(--tx); border-bottom: 1px solid var(--line); }
.logo-subtitle a:hover { border-bottom-color: var(--acc2); }
.logo-subtitle-main { display: block; }
.logo-subtitle-note { display: block; font-size: 13px; margin-top: 2px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--tx2); margin-bottom: 7px;
}
.form-group input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 15px; font-size: 15px; color: var(--tx); font-family: var(--font-b);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: var(--tx2); opacity: 0.7; }
.form-group input:hover { border-color: var(--tx2); }
.form-group input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }

.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--tx2); cursor: pointer;
  padding: 8px; border-radius: 8px; display: inline-flex;
  transition: color 0.2s, background 0.2s;
}
.password-toggle:hover { color: var(--tx); background: var(--acc-soft); }

.login-btn {
  position: relative; overflow: hidden;
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-b); font-weight: 700; font-size: 15.5px;
  background: var(--acc); color: var(--acc-tx);
  padding: 13px 26px; border-radius: var(--rad-btn);
  border: 1px solid transparent; cursor: pointer; margin-top: 6px;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.login-btn::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.login-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 28px var(--acc-soft); }
.login-btn:hover::after { animation: kd-shine 0.7s ease forwards; }
.login-btn:disabled { cursor: default; transform: none; }
.login-btn .btn-icon { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.login-btn:hover .btn-icon { transform: translateX(4px); }

.agreement-text { font-size: 12px; color: var(--tx2); text-align: center; margin-top: 14px; }
.agreement-text a { color: var(--tx); border-bottom: 1px solid var(--line); }
.agreement-text a:hover { border-bottom-color: var(--acc2); }

.divider {
  display: flex; align-items: center; gap: 12px; color: var(--tx2);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 20px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.divider span { flex-shrink: 0; }

.kodari-login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; font-family: var(--font-b); font-weight: 700; font-size: 15px;
  background: transparent; color: var(--tx);
  padding: 12px 24px; border-radius: var(--rad-btn);
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.kodari-login-btn:hover { border-color: var(--tx2); transform: translateY(-1px); background: rgba(255, 255, 255, 0.02); }
.kd-badge-id { font-family: var(--mono); font-size: 11px; background: var(--acc-soft); color: var(--acc); border-radius: 5px; padding: 2px 7px; }

.kd-login-foot { margin-top: 24px; display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--tx2); position: relative; z-index: 1; }
.kd-login-foot a { transition: color 0.2s; }
.kd-login-foot a:hover { color: var(--tx); }

.login-footer { margin-top: 18px; text-align: center; }
.app-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx2); transition: color 0.2s; }
.app-link:hover { color: var(--tx); }

.message {
  border-radius: 12px; padding: 11px 15px; margin-bottom: 16px;
  font-size: 14px; border: 1px solid;
  animation: kd-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.message.error { background: rgba(255, 107, 94, 0.1); border-color: rgba(255, 107, 94, 0.4); color: #ffb4ac; }
.message.warning { background: rgba(255, 180, 84, 0.1); border-color: rgba(255, 180, 84, 0.4); color: #ffd29b; }
.message.success { background: rgba(198, 245, 74, 0.08); border-color: rgba(198, 245, 74, 0.35); color: #def5a8; }

html.js [data-animate] { opacity: 0; transform: translateY(22px); }
html.js [data-animate].in-view {
  opacity: 1; transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 90ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 90ms);
}
html.js [data-animate="tilt"] { transform: translateY(26px) rotate(1.2deg) scale(0.98); }
html.js [data-animate="pop"] { transform: scale(0.6) rotate(-4deg); }
html.js [data-animate="pop"].in-view {
  transition:
    opacity 0.45s ease calc(var(--i, 0) * 90ms),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 90ms);
}
html.js [data-animate="left"] { transform: translateX(-26px); }
html.js [data-animate="right"] { transform: translateX(26px); }
html:not(.js) [data-text]::after { content: attr(data-text); }

.kd-hero .kd-eyebrow { animation: kd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards; }
.kd-hero h1 .kd-w { animation: kd-rise-blur 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.kd-hero h1 .kd-w:nth-child(1) { animation-delay: 0.1s; }
.kd-hero h1 .kd-w:nth-child(2) { animation-delay: 0.18s; }
.kd-hero h1 .kd-w:nth-child(3) { animation-delay: 0.26s; }
.kd-hero h1 .kd-w:nth-child(4) { animation-delay: 0.34s; }
.kd-hero h1 em { animation: kd-marker 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s backwards; }
.kd-hero .kd-sub { animation: kd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards; }
.kd-hero .kd-ctas { animation: kd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards; }
.kd-hero .kd-stats { animation: kd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards; }
.kd-hero .kd-phone-wrap { animation: kd-phone-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards; }
.kd-phone-idle { animation: kd-float 7s ease-in-out 1.5s infinite; }

.kd-login .kd-logo { animation: kd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards; }
.kd-login .login-card { animation: kd-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
.kd-login .login-card h1 { animation: kd-rise 0.5s ease 0.25s backwards; }
.kd-login .login-card .kv-hint { animation: kd-rise 0.5s ease 0.33s backwards; }
.kd-login .form-group:nth-of-type(1) { animation: kd-rise 0.5s ease 0.41s backwards; }
.kd-login .form-group:nth-of-type(2) { animation: kd-rise 0.5s ease 0.49s backwards; }
.kd-login .login-btn { animation: kd-rise 0.5s ease 0.57s backwards; }
.kd-login .agreement-text { animation: kd-rise 0.5s ease 0.63s backwards; }
.kd-login .divider { animation: kd-rise 0.5s ease 0.69s backwards; }
.kd-login .kodari-login-btn { animation: kd-rise 0.5s ease 0.75s backwards; }
.kd-login-foot { animation: kd-rise 0.6s ease 0.9s backwards; }

@keyframes kd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes kd-rise-blur {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes kd-marker {
  0% { background-size: 0% 100%; color: var(--tx); transform: rotate(0deg); }
  45% { color: var(--tx); }
  60% { color: var(--acc-tx); }
  100% { background-size: 100% 100%; color: var(--acc-tx); transform: rotate(-1.5deg); }
}
@keyframes kd-stamp {
  0% { opacity: 0; transform: rotate(-18deg) scale(0.3); }
  60% { opacity: 1; transform: rotate(-3deg) scale(1.12); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@keyframes kd-wobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(-1deg); }
}
@keyframes kd-phone-in {
  from { opacity: 0; transform: translateY(46px) rotate(4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes kd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes kd-card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes kd-blink {
  50% { opacity: 0; }
}
@keyframes kd-scan {
  0% { transform: translateY(-36px); }
  50% { transform: translateY(70px); }
  100% { transform: translateY(-36px); }
}
@keyframes kd-grow {
  to { transform: scaleY(1); }
}
@keyframes kd-bounce {
  0%, 100% { transform: scaleY(1); }
  40% { transform: scaleY(1.08); }
}
@keyframes kd-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}
@keyframes kd-draw {
  to { clip-path: inset(0 0 0 0); }
}
@keyframes kd-typeline {
  from { max-width: 0; }
  to { max-width: 100%; }
}
@keyframes kd-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes kd-marquee {
  to { transform: translateX(-50%); }
}
@keyframes kd-shine {
  0% { opacity: 1; left: -80%; }
  100% { opacity: 0; left: 130%; }
}
@keyframes kd-dots {
  to { background-position: 600px 300px; }
}
@keyframes kd-aurora1 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to { transform: translate(-130px, 70px) scale(1.15) rotate(8deg); }
}
@keyframes kd-aurora2 {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to { transform: translate(150px, -90px) scale(1.2); opacity: 1; }
}
@keyframes kd-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}
@keyframes kd-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}
@keyframes kd-glitch {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); background: rgba(255, 107, 94, 0.4); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); background: rgba(198, 245, 74, 0.35); }
  100% { transform: translate(0, 0); }
}
@keyframes kd-rotate-dashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes kd-color-cycle {
  0% { border-color: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); }
  25% { border-color: #ec4899; box-shadow: 0 0 8px rgba(236, 72, 153, 0.3); }
  50% { border-color: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }
  75% { border-color: #06b6d4; box-shadow: 0 0 8px rgba(6, 182, 212, 0.3); }
  100% { border-color: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); }
}

@media (max-width: 960px) {
  .kd-hero-in { grid-template-columns: 1fr; }
  .kd-pros { grid-template-columns: repeat(2, 1fr); }
  .kd-feats, .kd-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .nav { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad);
    padding: 12px; margin-left: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
  .nav-links.mobile-open { display: flex; animation: kd-card-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .nav-links .nav-link { padding: 10px 12px; border-radius: 10px; }
  .nav-links .nav-link:hover { background: var(--acc-soft); }
  .nav-links .nav-link::after { display: none; }
  .nav-links .nav-cta { text-align: center; margin-top: 4px; }
  .kd-hero { padding: 110px 20px 44px; }
  .kd-hero h1 { font-size: 29px; }
  .kd-sub { font-size: 15.5px; }
  .kd-ctas { width: 100%; }
  .kd-ctas .kd-btn { flex: 1 1 auto; justify-content: center; }
  .kd-btn .slider-item { font-size: 14px; gap: 7px; }
  .kd-stats { gap: 24px; margin-top: 36px; flex-wrap: wrap; }
  .kd-stat b { font-size: 17px; }
  .kd-phone-wrap { margin-top: 44px; width: 100%; }
  .kd-phone { width: 240px; height: 500px; }
  .kd-section { padding: 52px 20px; }
  .kd-h2 { font-size: 21px; }
  .kd-pros { grid-template-columns: 1fr; }
  .kd-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .kd-footer nav { margin-left: 0; }
  .kd-faq-item summary { padding: 15px 16px; font-size: 14.5px; }
  .kd-faq-answer { padding: 0 16px 15px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-animate] { opacity: 1; transform: none; }
  html.js .kd-code-line { max-width: none; }
  html.js .kd-frame { clip-path: none; }
  html.js .kd-viz-chart i { transform: scaleY(1); }
  html.js .kd-viz-sec > div:not(.kd-scan) { opacity: 1; }
  html.js .kd-chart-up { opacity: 1; }
  .kd-marquee-track { animation: none; flex-wrap: wrap; }
}

.kd-login-row { position: relative; display: flex; justify-content: center; width: 100%; }
.qr-login-aside {
  display: none;
  width: 220px; text-align: center; z-index: 1;
  position: absolute; top: 0; bottom: 0;
  right: calc(50% + 196px + 44px);
}
@media (min-width: 920px) and (hover: hover) and (pointer: fine) {
  .qr-login-aside { display: flex; flex-direction: column; align-items: center; justify-content: center; }
}
.qr-login-title {
  margin-bottom: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx2);
}
.qr-login-canvas {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 200px; margin: 0 auto;
  background: #fff; border-radius: 14px;
}
.qr-login-canvas img { width: 184px !important; height: 184px !important; display: block; image-rendering: pixelated; }
.qr-login-status { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--tx2); min-height: 16px; }

/* ── Подтверждение входа по QR (телефон) ──────────────────────────── */
.qr-confirm-card { text-align: center; }
.qr-confirm-device { margin: 8px 0 18px; min-height: 60px; }
.qr-confirm-device-card { padding: 16px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; }
.qr-confirm-device-name { font-size: 16px; font-weight: 600; color: var(--tx); }
.qr-confirm-device-ip { margin-top: 4px; font-size: 13px; color: var(--tx2); }
.qr-confirm-spinner { color: var(--tx2); font-size: 14px; padding: 18px 0; }
.qr-confirm-untrusted { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 0 0 18px; font-size: 13px; color: var(--tx2); cursor: pointer; }
.qr-confirm-untrusted input { margin-top: 2px; flex-shrink: 0; }
.qr-confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.qr-confirm-deny {
  width: 100%; padding: 13px; cursor: pointer; font: inherit; font-size: 15px;
  background: transparent; color: var(--tx2);
  border: 1px solid var(--line); border-radius: var(--rad-btn, 12px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.qr-confirm-deny:hover { color: var(--coral, #ff6b5e); border-color: var(--coral, #ff6b5e); }
.qr-confirm-deny:disabled { opacity: 0.5; cursor: default; }
.qr-confirm-result { margin: 14px 0 0; font-size: 14px; color: var(--tx2); }
